2 .\" Copyright (c) 2004, Sun Microsystems, Inc.,
3 .\" All Rights Reserved
4 .\" 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.
5 .\" 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.
6 .\" 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]
7 .TH USB_PIPE_GET_MAX_BULK_TRANSFER_SIZE 9F "Jan 5, 2004"
9 usb_pipe_get_max_bulk_transfer_size \- Get maximum bulk transfer size
13 #include <sys/usb/usba.h>
17 \fBint\fR \fBusb_pipe_get_max_bulk_transfer_size\fR(\fBdev_info_t\fR \fIdip\fR, \fBsize_t *\fR\fIsize\fR);
23 Solaris DDI specific (Solaris DDI)
31 Pointer to the device's dev_info structure.
40 Returns the bulk transfer size.
46 The \fBusb_pipe_get_max_bulk_transfer_size()\fR function returns the maximum
47 data transfer size in bytes that the host controller driver can support per
48 bulk request. This information can be used to limit or break down larger
49 requests to manageable sizes.
57 Size is returned in size argument.
63 \fBUSB_INVALID_ARGS\fR
66 \fIdip\fR and/or \fIsize\fR argument is \fBNULL\fR.
75 Size could not be returned. Zero is returned in \fIsize\fR arg.
81 May be called from user, kernel or interrupt context.
86 int xxx_attach(dev_info_t *dip, int command)
89 usb_pipe_get_max_bulk_transfer_size(dip, &state>max_xfer_size);
93 void xxx_minphys(struct buf bp)
96 if (bp->b_bcount > state->max_xfer_size) {
97 bp->b_bcount = state->max_xfer_size;
109 See \fBattributes\fR(5) for descriptions of the following attributes:
117 ATTRIBUTE TYPE ATTRIBUTE VALUE
119 Architecture PCI-based systems
121 Interface stability Committed
127 \fBattributes\fR(5), \fBusb_pipe_bulk_xfer\fR(9F), \fBusb_alloc_request\fR(9F),
128 \fBusb_bulk_request\fR(9S)