#ifndef _USB_H_
#define _USB_H_
#include <linux/usb.h>
#include <linux/usb_usual.h>
#include <linux/blkdev.h>
#include <linux/completion.h>
#include <linux/mutex.h>
#include <linux/workqueue.h>
#include <scsi/scsi_host.h>
struct us_data;
struct scsi_cmnd;
struct us_unusual_dev { … };
#define US_FLIDX_URB_ACTIVE …
#define US_FLIDX_SG_ACTIVE …
#define US_FLIDX_ABORTING …
#define US_FLIDX_DISCONNECTING …
#define US_FLIDX_RESETTING …
#define US_FLIDX_TIMED_OUT …
#define US_FLIDX_SCAN_PENDING …
#define US_FLIDX_REDO_READ10 …
#define US_FLIDX_READ10_WORKED …
#define USB_STOR_STRING_LEN …
#define US_IOBUF_SIZE …
#define US_SENSE_SIZE …
trans_cmnd;
trans_reset;
proto_cmnd;
extra_data_destructor;
pm_hook;
#define US_SUSPEND …
#define US_RESUME …
struct us_data { … };
static inline struct Scsi_Host *us_to_host(struct us_data *us) { … }
static inline struct us_data *host_to_us(struct Scsi_Host *host) { … }
extern void fill_inquiry_response(struct us_data *us,
unsigned char *data, unsigned int data_len);
#define scsi_unlock(host) …
#define scsi_lock(host) …
#ifdef CONFIG_PM
extern int usb_stor_suspend(struct usb_interface *iface, pm_message_t message);
extern int usb_stor_resume(struct usb_interface *iface);
extern int usb_stor_reset_resume(struct usb_interface *iface);
#else
#define usb_stor_suspend …
#define usb_stor_resume …
#define usb_stor_reset_resume …
#endif
extern int usb_stor_pre_reset(struct usb_interface *iface);
extern int usb_stor_post_reset(struct usb_interface *iface);
extern int usb_stor_probe1(struct us_data **pus,
struct usb_interface *intf,
const struct usb_device_id *id,
const struct us_unusual_dev *unusual_dev,
const struct scsi_host_template *sht);
extern int usb_stor_probe2(struct us_data *us);
extern void usb_stor_disconnect(struct usb_interface *intf);
extern void usb_stor_adjust_quirks(struct usb_device *dev,
u64 *fflags);
#define module_usb_stor_driver(__driver, __sht, __name) …
#endif