usb.h (cb5629b10d64a8006622ce3a52bc887d91057d69) | usb.h (e6e244b6cb1f70e7109381626293cd40a8334ed3) |
---|---|
1/* Driver for USB Mass Storage compliant devices 2 * Main Header File 3 * 4 * Current development and maintenance by: 5 * (c) 1999-2002 Matthew Dharm (mdharm-usb@one-eyed-alien.net) 6 * 7 * Initial work by: 8 * (c) 1999 Michael Gee (michael@linuxspecific.com) --- 163 unchanged lines hidden (view full) --- 172extern void fill_inquiry_response(struct us_data *us, 173 unsigned char *data, unsigned int data_len); 174 175/* The scsi_lock() and scsi_unlock() macros protect the sm_state and the 176 * single queue element srb for write access */ 177#define scsi_unlock(host) spin_unlock_irq(host->host_lock) 178#define scsi_lock(host) spin_lock_irq(host->host_lock) 179 | 1/* Driver for USB Mass Storage compliant devices 2 * Main Header File 3 * 4 * Current development and maintenance by: 5 * (c) 1999-2002 Matthew Dharm (mdharm-usb@one-eyed-alien.net) 6 * 7 * Initial work by: 8 * (c) 1999 Michael Gee (michael@linuxspecific.com) --- 163 unchanged lines hidden (view full) --- 172extern void fill_inquiry_response(struct us_data *us, 173 unsigned char *data, unsigned int data_len); 174 175/* The scsi_lock() and scsi_unlock() macros protect the sm_state and the 176 * single queue element srb for write access */ 177#define scsi_unlock(host) spin_unlock_irq(host->host_lock) 178#define scsi_lock(host) spin_lock_irq(host->host_lock) 179 |
180/* General routines provided by the usb-storage standard core */ 181#ifdef CONFIG_PM 182extern int usb_stor_suspend(struct usb_interface *iface, pm_message_t message); 183extern int usb_stor_resume(struct usb_interface *iface); 184extern int usb_stor_reset_resume(struct usb_interface *iface); 185#else 186#define usb_stor_suspend NULL 187#define usb_stor_resume NULL 188#define usb_stor_reset_resume NULL |
|
180#endif | 189#endif |
190 191extern int usb_stor_pre_reset(struct usb_interface *iface); 192extern int usb_stor_post_reset(struct usb_interface *iface); 193 194extern int usb_stor_probe1(struct us_data **pus, 195 struct usb_interface *intf, 196 const struct usb_device_id *id, 197 struct us_unusual_dev *unusual_dev); 198extern int usb_stor_probe2(struct us_data *us); 199extern void usb_stor_disconnect(struct usb_interface *intf); 200 201#endif |
|