'\" te .\" Copyright (c) 2006, Sun Microsystems, Inc. .TH ddi_dma_htoc 9F "16 Jan 2006" "SunOS 5.11" "Kernel Functions for Drivers" .SH NAME ddi_dma_htoc \- convert a DMA handle to a DMA address cookie .SH SYNOPSIS .LP .nf #include #include #include \fBint\fR \fBddi_dma_htoc\fR(\fBddi_dma_handle_t\fR \fIhandle\fR, \fBoff_t\fR \fIoff\fR, \fBddi_dma_cookie_t *\fR\fIcookiep\fR); .fi .SH INTERFACE LEVEL .sp .LP This interface is obsolete. \fBddi_dma_addr_bind_handle\fR(9F) or \fBddi_dma_buf_bind_handle\fR(9F) should be used instead. .SH PARAMETERS .sp .ne 2 .mk .na \fB\fIhandle\fR\fR .ad .RS 11n .rt The handle filled in by a call to \fBddi_dma_setup\fR(9F). .RE .sp .ne 2 .mk .na \fB\fIoff\fR\fR .ad .RS 11n .rt An offset into the object that \fIhandle\fR maps. .RE .sp .ne 2 .mk .na \fB\fIcookiep\fR\fR .ad .RS 11n .rt A pointer to a \fBddi_dma_cookie\fR(9S) structure. .RE .SH DESCRIPTION .sp .LP The \fBddi_dma_htoc()\fR function takes a \fBDMA\fR handle (established by \fBddi_dma_setup\fR(9F)), and fills in the cookie pointed to by \fIcookiep\fR with the appropriate address, length, and bus type to be used to program the \fBDMA\fR engine. .SH RETURN VALUES .sp .LP The \fBddi_dma_htoc()\fR function returns: .sp .ne 2 .mk .na \fB\fBDDI_SUCCESS\fR\fR .ad .RS 15n .rt Successfully filled in the cookie pointed to by \fIcookiep\fR. .RE .sp .ne 2 .mk .na \fB\fBDDI_FAILURE\fR\fR .ad .RS 15n .rt Failed to successfully fill in the cookie. .RE .SH CONTEXT .sp .LP The \fBddi_dma_htoc()\fR function can be called from user, interrupt, or kernel context. .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for a description of the following attributes: .sp .sp .TS tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . \fBATTRIBUTE TYPE\fR\fBATTRIBUTE VALUE\fR _ Stability LevelObsolete .TE .SH SEE ALSO .sp .LP \fBattributes\fR(5), \fBddi_dma_addr_bind_handle\fR(9F), \fBddi_dma_addr_setup\fR(9F), \fBddi_dma_buf_bind_handle\fR(9F), \fBddi_dma_buf_setup\fR(9F), \fBddi_dma_setup\fR(9F), \fBddi_dma_sync\fR(9F), \fBddi_dma_cookie\fR(9S) .sp .LP \fIWriting Device Drivers for Oracle Solaris 11.2\fR