.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "NET2280_SET_FIFO_MODE" "" "06 October 2005" "" "" .SH NAME net2280_set_fifo_mode \- change allocation of fifo buffers .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int net2280_set_fifo_mode (struct usb_gadget * \fIgadget\fB, int \fImode\fB); \fR .SH "ARGUMENTS" .TP \fB\fIgadget\fB\fR access to the net2280 device that will be updated .TP \fB\fImode\fB\fR 0 for default, four 1kB buffers (ep-a through ep-d); 1 for two 2kB buffers (ep-a and ep-b only); 2 for one 2kB buffer (ep-a) and two 1kB ones (ep-b, ep-c). .SH "DESCRIPTION" .PP returns zero on success, else negative errno. when this succeeds, the contents of gadget->ep_list may have changed. .PP you may only call this function when endpoints a-d are all disabled. use it whenever extra hardware buffering can help performance, such as before enabling ``high bandwidth'' interrupt endpoints that use maxpacket bigger than 512 (when double buffering would otherwise be unavailable).