Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ */
0002 /*
0003  * Driver for USB Mass Storage compliant devices
0004  * SCSI Connecting Glue Header File
0005  *
0006  * Current development and maintenance by:
0007  *   (c) 1999, 2000 Matthew Dharm (mdharm-usb@one-eyed-alien.net)
0008  *
0009  * This driver is based on the 'USB Mass Storage Class' document. This
0010  * describes in detail the protocol used to communicate with such
0011  * devices.  Clearly, the designers had SCSI and ATAPI commands in
0012  * mind when they created this document.  The commands are all very
0013  * similar to commands in the SCSI-II and ATAPI specifications.
0014  *
0015  * It is important to note that in a number of cases this class
0016  * exhibits class-specific exemptions from the USB specification.
0017  * Notably the usage of NAK, STALL and ACK differs from the norm, in
0018  * that they are used to communicate wait, failed and OK on commands.
0019  *
0020  * Also, for certain devices, the interrupt endpoint is used to convey
0021  * status of a command.
0022  */
0023 
0024 #ifndef _SCSIGLUE_H_
0025 #define _SCSIGLUE_H_
0026 
0027 extern void usb_stor_report_device_reset(struct us_data *us);
0028 extern void usb_stor_report_bus_reset(struct us_data *us);
0029 extern void usb_stor_host_template_init(struct scsi_host_template *sht,
0030                     const char *name, struct module *owner);
0031 
0032 extern unsigned char usb_stor_sense_invalidCDB[18];
0033 
0034 #endif