Description

The ddi_dma_segtocookie() function takes a DMA segment and fills in the cookie
pointed to by cookiep with the appropriate address, length, and bus type
to be used to program the DMA engine. ddi_dma_segtocookie() also fills in *offp
and *lenp, which specify the range within the object.

Return Values

The ddi_dma_segtocookie() function returns:

DDI_SUCCESS

Successfully filled in all values.

DDI_FAILURE

Failed to successfully fill in all values.

Context

The ddi_dma_segtocookie() function can be called from user, interrupt, or kernel context.