ddi_dma_coff - convert a DMA cookie to an offset within a DMA handle.
#include <sys/conf.h> #include <sys/ddi.h> #include <sys/sunddi.h> int ddi_dma_coff(ddi_dma_handle_t handle, ddi_dma_cookie_t *cookiep, off_t *offp);
Solaris SPARC DDI (Solaris SPARC DDI). This interface is obsolete.
handle
cookiep
offp
The ddi_dma_coff() function converts the values in DMA cookie pointed to by cookiep to an offset (in bytes) from the beginning of the object that the DMAhandle has mapped.
The ddi_dma_coff() function allows a driver to update a DMA cookie with values it reads from its device's DMA engine after a transfer completes and convert that value into an offset into the object that is mapped for DMA.
The ddi_dma_coff() function returns:
DDI_SUCCESS
DDI_FAILURE
The ddi_dma_coff() function can be called from user, interrupt, or kernel context.
See attributes(5) for descriptions of the following attributes:
|
ddi_dma_setup(9F), ddi_dma_sync(9F), ddi_dma_cookie(9S)
Writing Device Drivers
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |