eisa_dma_get_cb(D3X)eisa_dma_get_cb(D3X)NAMEeisa_dma_get_cb - allocated a DMA command block
SYNOPSIS
#include <sys/types.h>
#include <sys/eisa.h>
struct dma_cb *eisa_dma_get_cb(uchar_t mode);
Arguments
mode Specifies whether the caller is willing to sleep waiting for memory.
If mode is set to EISA_DMA_SLEEP, the caller will sleep if necessary
until the memory for a eisa_dma_cb() is available. If mode is set to
EISA_DMA_NOSLEEP, the caller will not sleep, but eisa_dma_get_cb
will return NULL if memory for a eisa_dma_buf() is not immediately
available.
DESCRIPTIONeisa_dma_get_cb allocates memory for a DMA command block structure (see
eisa_dma_cb(), zeros it out, and returns a pointer to the structure.
Return Values
eisa_dma_get_cb returns a pointer to the allocated DMA control block. If
EISA_DMA_NOSLEEP is specified and memory for a eisa_dma_cb() is not
immediately available, eisa_dma_get_cb returns a NULL pointer.
Level
Base only if mode is set to EISA_DMA_SLEEP. Base or Interrupt if mode is
set to EISA_DMA_NOSLEEP.
Notes
Can sleep if mode is set to EISA_DMA_SLEEP.
Page 1