18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0+ */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Driver for USB Mass Storage compliant devices
48c2ecf20Sopenharmony_ci * SCSI Connecting Glue Header File
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * Current development and maintenance by:
78c2ecf20Sopenharmony_ci *   (c) 1999, 2000 Matthew Dharm (mdharm-usb@one-eyed-alien.net)
88c2ecf20Sopenharmony_ci *
98c2ecf20Sopenharmony_ci * This driver is based on the 'USB Mass Storage Class' document. This
108c2ecf20Sopenharmony_ci * describes in detail the protocol used to communicate with such
118c2ecf20Sopenharmony_ci * devices.  Clearly, the designers had SCSI and ATAPI commands in
128c2ecf20Sopenharmony_ci * mind when they created this document.  The commands are all very
138c2ecf20Sopenharmony_ci * similar to commands in the SCSI-II and ATAPI specifications.
148c2ecf20Sopenharmony_ci *
158c2ecf20Sopenharmony_ci * It is important to note that in a number of cases this class
168c2ecf20Sopenharmony_ci * exhibits class-specific exemptions from the USB specification.
178c2ecf20Sopenharmony_ci * Notably the usage of NAK, STALL and ACK differs from the norm, in
188c2ecf20Sopenharmony_ci * that they are used to communicate wait, failed and OK on commands.
198c2ecf20Sopenharmony_ci *
208c2ecf20Sopenharmony_ci * Also, for certain devices, the interrupt endpoint is used to convey
218c2ecf20Sopenharmony_ci * status of a command.
228c2ecf20Sopenharmony_ci */
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci#ifndef _SCSIGLUE_H_
258c2ecf20Sopenharmony_ci#define _SCSIGLUE_H_
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ciextern void usb_stor_report_device_reset(struct us_data *us);
288c2ecf20Sopenharmony_ciextern void usb_stor_report_bus_reset(struct us_data *us);
298c2ecf20Sopenharmony_ciextern void usb_stor_host_template_init(struct scsi_host_template *sht,
308c2ecf20Sopenharmony_ci					const char *name, struct module *owner);
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ciextern unsigned char usb_stor_sense_invalidCDB[18];
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci#endif
35