2 .\" Copyright (c) 1997, Sun Microsystems, Inc.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH DDI_DMA_SET_SBUS64 9F "Jan 1, 1997"
8 ddi_dma_set_sbus64 \- allow 64-bit transfers on SBus
13 #include <sys/sunddi.h>
17 \fBint\fR \fBddi_dma_set_sbus64\fR(\fBddi_dma_handle_t\fR \fIhandle\fR, \fBuint_t\fR \fIburstsizes\fR);
23 Solaris DDI specific (Solaris DDI).
31 The handle filled in by a call to \fBddi_dma_alloc_handle\fR(9F).
37 \fB\fIburstsizes\fR \fR
40 The possible burst sizes the device's \fBDMA\fR engine can accept in 64-bit
47 \fBddi_dma_set_sbus64()\fR informs the system that the device wishes to perform
48 64-bit data transfers on the SBus. The driver must first allocate a \fBDMA\fR
49 handle using \fBddi_dma_alloc_handle\fR(9F) with a \fBddi_dma_attr\fR(9S)
50 structure describing the \fBDMA\fR attributes for a 32-bit transfer mode.
53 \fIburstsizes\fR describes the possible burst sizes the device's \fBDMA\fR
54 engine can accept in 64-bit mode. It may be distinct from the burst sizes for
55 32-bit mode set in the \fBddi_dma_attr\fR(9S) structure. The system will
56 activate 64-bit SBus transfers if the SBus supports them. Otherwise, the SBus
57 will operate in 32-bit mode.
60 After \fBDMA\fR resources have been allocated (see
61 \fBddi_dma_addr_bind_handle\fR(9F) or \fBddi_dma_buf_bind_handle\fR(9F)), the
62 driver should retrieve the available burst sizes by calling
63 \fBddi_dma_burstsizes\fR(9F). This function will return the burst sizes in
64 64-bit mode if the system was able to activate 64-bit transfers. Otherwise
65 burst sizes will be returned in 32-bit mode.
69 \fBddi_dma_set_sbus64()\fR returns:
73 \fB\fBDDI_SUCCESS\fR \fR
76 Successfully set the SBus to 64-bit mode.
82 \fB\fBDDI_FAILURE\fR \fR
85 64-bit mode could not be set.
91 \fBddi_dma_set_sbus64()\fR can be called from user, kernel, or interrupt
96 See \fBattributes\fR(5) for descriptions of the following attributes:
104 ATTRIBUTE TYPE ATTRIBUTE VALUE
112 \fBattributes\fR(5), \fBddi_dma_addr_bind_handle\fR(9F),
113 \fBddi_dma_alloc_handle\fR(9F), \fBddi_dma_buf_bind_handle\fR(9F),
114 \fBddi_dma_burstsizes\fR(9F), \fBddi_dma_attr\fR(9S)
118 64-bit SBus mode is activated on a per SBus slot basis. If there are multiple
119 SBus cards in one slot, they all must operate in 64-bit mode or they all must
120 operate in 32-bit mode.