18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0+ */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Header file for Special Initializers for certain USB Mass Storage devices 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Current development and maintenance by: 68c2ecf20Sopenharmony_ci * (c) 1999, 2000 Matthew Dharm (mdharm-usb@one-eyed-alien.net) 78c2ecf20Sopenharmony_ci * 88c2ecf20Sopenharmony_ci * This driver is based on the 'USB Mass Storage Class' document. This 98c2ecf20Sopenharmony_ci * describes in detail the protocol used to communicate with such 108c2ecf20Sopenharmony_ci * devices. Clearly, the designers had SCSI and ATAPI commands in 118c2ecf20Sopenharmony_ci * mind when they created this document. The commands are all very 128c2ecf20Sopenharmony_ci * similar to commands in the SCSI-II and ATAPI specifications. 138c2ecf20Sopenharmony_ci * 148c2ecf20Sopenharmony_ci * It is important to note that in a number of cases this class 158c2ecf20Sopenharmony_ci * exhibits class-specific exemptions from the USB specification. 168c2ecf20Sopenharmony_ci * Notably the usage of NAK, STALL and ACK differs from the norm, in 178c2ecf20Sopenharmony_ci * that they are used to communicate wait, failed and OK on commands. 188c2ecf20Sopenharmony_ci * 198c2ecf20Sopenharmony_ci * Also, for certain devices, the interrupt endpoint is used to convey 208c2ecf20Sopenharmony_ci * status of a command. 218c2ecf20Sopenharmony_ci */ 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci#include "usb.h" 248c2ecf20Sopenharmony_ci#include "transport.h" 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci/* 278c2ecf20Sopenharmony_ci * This places the Shuttle/SCM USB<->SCSI bridge devices in multi-target 288c2ecf20Sopenharmony_ci * mode 298c2ecf20Sopenharmony_ci */ 308c2ecf20Sopenharmony_ciint usb_stor_euscsi_init(struct us_data *us); 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci/* 338c2ecf20Sopenharmony_ci * This function is required to activate all four slots on the UCR-61S2B 348c2ecf20Sopenharmony_ci * flash reader 358c2ecf20Sopenharmony_ci */ 368c2ecf20Sopenharmony_ciint usb_stor_ucr61s2b_init(struct us_data *us); 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci/* This places the HUAWEI E220 devices in multi-port mode */ 398c2ecf20Sopenharmony_ciint usb_stor_huawei_e220_init(struct us_data *us); 40