'\" te .\" Copyright (c) 2006, Sun Microsystems, Inc. .TH ddi_dma_curwin 9F "16 Jan 2006" "SunOS 5.11" "Kernel Functions for Drivers" .SH NAME ddi_dma_curwin \- report current DMA window offset and size .SH SYNOPSIS .LP .nf #include #include #include \fBint\fR \fBddi_dma_curwin\fR(\fBddi_dma_handle_t\fR \fIhandle\fR, \fBoff_t *\fR\fIoffp\fR, \fBuint_t *\fR\fIlenp\fR); .fi .SH INTERFACE LEVEL .sp .LP This interface is obsolete. \fBddi_dma_getwin\fR(9F) should be used instead. .SH PARAMETERS .sp .ne 2 .mk .na \fB\fIhandle\fR\fR .ad .RS 10n .rt The \fBDMA\fR handle filled in by a call to \fBddi_dma_setup\fR(9F). .RE .sp .ne 2 .mk .na \fB\fIoffp\fR\fR .ad .RS 10n .rt A pointer to a value which will be filled in with the current offset from the beginning of the object that is mapped for \fBDMA\fR. .RE .sp .ne 2 .mk .na \fB\fIlenp\fR\fR .ad .RS 10n .rt A pointer to a value which will be filled in with the size, in bytes, of the current window onto the object that is mapped for \fBDMA\fR. .RE .SH DESCRIPTION .sp .LP The \fBddi_dma_curwin()\fR function reports the current \fBDMA\fR window offset and size. If a \fBDMA\fR mapping allows partial mapping, that is if the \fBDDI_DMA_PARTIAL\fR flag in the \fBddi_dma_req\fR(9S) structure is set, its current (effective) \fBDMA\fR window offset and size can be obtained by a call to \fBddi_dma_curwin()\fR. .SH RETURN VALUES .sp .LP The \fBddi_dma_curwin()\fR function returns: .sp .ne 2 .mk .na \fB\fBDDI_SUCCESS\fR\fR .ad .RS 15n .rt The current length and offset can be established. .RE .sp .ne 2 .mk .na \fB\fBDDI_FAILURE\fR\fR .ad .RS 15n .rt Otherwise. .RE .SH CONTEXT .sp .LP The \fBddi_dma_curwin()\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_getwin\fR(9F), \fBddi_dma_movwin\fR(9F), \fBddi_dma_setup\fR(9F), \fBddi_dma_req\fR(9S) .sp .LP \fIWriting Device Drivers for Oracle Solaris 11.2\fR