xref: /linux/drivers/usb/storage/initializers.h (revision f0183a338e4f90e59a4b4daa10cba0fae8e3fca7)
1*f0183a33SFelipe Balbi /*
2*f0183a33SFelipe Balbi  * Header file for Special Initializers for certain USB Mass Storage devices
31da177e4SLinus Torvalds  *
41da177e4SLinus Torvalds  * Current development and maintenance by:
51da177e4SLinus Torvalds  *   (c) 1999, 2000 Matthew Dharm (mdharm-usb@one-eyed-alien.net)
61da177e4SLinus Torvalds  *
71da177e4SLinus Torvalds  * This driver is based on the 'USB Mass Storage Class' document. This
81da177e4SLinus Torvalds  * describes in detail the protocol used to communicate with such
91da177e4SLinus Torvalds  * devices.  Clearly, the designers had SCSI and ATAPI commands in
101da177e4SLinus Torvalds  * mind when they created this document.  The commands are all very
111da177e4SLinus Torvalds  * similar to commands in the SCSI-II and ATAPI specifications.
121da177e4SLinus Torvalds  *
131da177e4SLinus Torvalds  * It is important to note that in a number of cases this class
141da177e4SLinus Torvalds  * exhibits class-specific exemptions from the USB specification.
151da177e4SLinus Torvalds  * Notably the usage of NAK, STALL and ACK differs from the norm, in
161da177e4SLinus Torvalds  * that they are used to communicate wait, failed and OK on commands.
171da177e4SLinus Torvalds  *
181da177e4SLinus Torvalds  * Also, for certain devices, the interrupt endpoint is used to convey
191da177e4SLinus Torvalds  * status of a command.
201da177e4SLinus Torvalds  *
211da177e4SLinus Torvalds  * Please see http://www.one-eyed-alien.net/~mdharm/linux-usb for more
221da177e4SLinus Torvalds  * information about this driver.
231da177e4SLinus Torvalds  *
241da177e4SLinus Torvalds  * This program is free software; you can redistribute it and/or modify it
251da177e4SLinus Torvalds  * under the terms of the GNU General Public License as published by the
261da177e4SLinus Torvalds  * Free Software Foundation; either version 2, or (at your option) any
271da177e4SLinus Torvalds  * later version.
281da177e4SLinus Torvalds  *
291da177e4SLinus Torvalds  * This program is distributed in the hope that it will be useful, but
301da177e4SLinus Torvalds  * WITHOUT ANY WARRANTY; without even the implied warranty of
311da177e4SLinus Torvalds  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
321da177e4SLinus Torvalds  * General Public License for more details.
331da177e4SLinus Torvalds  *
341da177e4SLinus Torvalds  * You should have received a copy of the GNU General Public License along
351da177e4SLinus Torvalds  * with this program; if not, write to the Free Software Foundation, Inc.,
361da177e4SLinus Torvalds  * 675 Mass Ave, Cambridge, MA 02139, USA.
371da177e4SLinus Torvalds  */
381da177e4SLinus Torvalds 
391da177e4SLinus Torvalds #include "usb.h"
401da177e4SLinus Torvalds #include "transport.h"
411da177e4SLinus Torvalds 
42*f0183a33SFelipe Balbi /*
43*f0183a33SFelipe Balbi  * This places the Shuttle/SCM USB<->SCSI bridge devices in multi-target
44*f0183a33SFelipe Balbi  * mode
45*f0183a33SFelipe Balbi  */
461da177e4SLinus Torvalds int usb_stor_euscsi_init(struct us_data *us);
471da177e4SLinus Torvalds 
48*f0183a33SFelipe Balbi /*
49*f0183a33SFelipe Balbi  * This function is required to activate all four slots on the UCR-61S2B
50*f0183a33SFelipe Balbi  * flash reader
51*f0183a33SFelipe Balbi  */
521da177e4SLinus Torvalds int usb_stor_ucr61s2b_init(struct us_data *us);
53d853d872SJohann Wilhelm 
54ab4b7164SBjørn Mork /* This places the HUAWEI E220 devices in multi-port mode */
55ab4b7164SBjørn Mork int usb_stor_huawei_e220_init(struct us_data *us);
56