162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0+ */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Driver for USB Mass Storage compliant devices 462306a36Sopenharmony_ci * SCSI Connecting Glue Header File 562306a36Sopenharmony_ci * 662306a36Sopenharmony_ci * Current development and maintenance by: 762306a36Sopenharmony_ci * (c) 1999, 2000 Matthew Dharm (mdharm-usb@one-eyed-alien.net) 862306a36Sopenharmony_ci * 962306a36Sopenharmony_ci * This driver is based on the 'USB Mass Storage Class' document. This 1062306a36Sopenharmony_ci * describes in detail the protocol used to communicate with such 1162306a36Sopenharmony_ci * devices. Clearly, the designers had SCSI and ATAPI commands in 1262306a36Sopenharmony_ci * mind when they created this document. The commands are all very 1362306a36Sopenharmony_ci * similar to commands in the SCSI-II and ATAPI specifications. 1462306a36Sopenharmony_ci * 1562306a36Sopenharmony_ci * It is important to note that in a number of cases this class 1662306a36Sopenharmony_ci * exhibits class-specific exemptions from the USB specification. 1762306a36Sopenharmony_ci * Notably the usage of NAK, STALL and ACK differs from the norm, in 1862306a36Sopenharmony_ci * that they are used to communicate wait, failed and OK on commands. 1962306a36Sopenharmony_ci * 2062306a36Sopenharmony_ci * Also, for certain devices, the interrupt endpoint is used to convey 2162306a36Sopenharmony_ci * status of a command. 2262306a36Sopenharmony_ci */ 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ci#ifndef _SCSIGLUE_H_ 2562306a36Sopenharmony_ci#define _SCSIGLUE_H_ 2662306a36Sopenharmony_ci 2762306a36Sopenharmony_ciextern void usb_stor_report_device_reset(struct us_data *us); 2862306a36Sopenharmony_ciextern void usb_stor_report_bus_reset(struct us_data *us); 2962306a36Sopenharmony_ciextern void usb_stor_host_template_init(struct scsi_host_template *sht, 3062306a36Sopenharmony_ci const char *name, struct module *owner); 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_ciextern unsigned char usb_stor_sense_invalidCDB[18]; 3362306a36Sopenharmony_ci 3462306a36Sopenharmony_ci#endif 35