Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ dma_resid(K) — System V/386 Software Development System 3.2.2b

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     DMA_RESID(K)              UNIX System V              DMA_RESID(K)



     Name
          dma_resid - returns the number of bytes not transferred
          during a DMA request

     Syntax
          #include "sys/dma.h"

          long
          dma_resid(chan)
          unsigned chan;

     Description
          This routine returns the number of bytes not transferred by
          the DMA request.

     Parameters
          The chan argument specifies the DMA channel to be queried.
          Possible values are:

          8-Bit Channels:    DMA_CH0, DMA_CH1, DMA_CH2, DMA_CH3

          16-Bit Channels:   DMA_CH5, DMA_CH6, DMA_CH7

          Channel 4 is not available.  Other channels may be
          permanently allocated by system drivers.  Consult the
          /usr/adm/messages file for which channels are in use.  Use
          printcfg in your driver initialization routine to display
          the DMA channel that you select.

     Return Value
          The dma_resid routine returns the number of bytes that were
          not transferred.

     See Also
          dma_enable(K), dma_start(K), dma_param(K), dma_alloc(K),
          dma_relse(K), printcfg(K)

                                                      (printed 7/6/89)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026