Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
usb.c File Reference
#include <linux/sched.h>
#include <linux/errno.h>
#include <linux/freezer.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/kthread.h>
#include <linux/mutex.h>
#include <linux/utsname.h>
#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_device.h>
#include "usb.h"
#include "scsiglue.h"
#include "transport.h"
#include "protocol.h"
#include "debug.h"
#include "initializers.h"
#include "sierra_ms.h"
#include "option_ms.h"
#include "unusual_devs.h"

Go to the source code of this file.

Macros

#define UNUSUAL_DEV(idVendor, idProduct, bcdDeviceMin, bcdDeviceMax, vendor_name, product_name, use_protocol, use_transport, init_function, Flags)
 
#define COMPLIANT_DEV   UNUSUAL_DEV
 
#define USUAL_DEV(use_protocol, use_transport)
 
#define TOLOWER(x)   ((x) | 0x20)
 

Functions

 MODULE_AUTHOR ("Matthew Dharm <mdharm-usb@one-eyed-alien.net>")
 
 MODULE_DESCRIPTION ("USB Mass Storage driver for Linux")
 
 MODULE_LICENSE ("GPL")
 
 module_param (delay_use, uint, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (delay_use,"seconds to delay before using a new device")
 
 module_param_string (quirks, quirks, sizeof(quirks), S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (quirks,"supplemental list of device IDs and their quirks")
 
int usb_stor_pre_reset (struct usb_interface *iface)
 
 EXPORT_SYMBOL_GPL (usb_stor_pre_reset)
 
int usb_stor_post_reset (struct usb_interface *iface)
 
 EXPORT_SYMBOL_GPL (usb_stor_post_reset)
 
void fill_inquiry_response (struct us_data *us, unsigned char *data, unsigned int data_len)
 
 EXPORT_SYMBOL_GPL (fill_inquiry_response)
 
int usb_stor_probe1 (struct us_data **pus, struct usb_interface *intf, const struct usb_device_id *id, struct us_unusual_dev *unusual_dev)
 
 EXPORT_SYMBOL_GPL (usb_stor_probe1)
 
int usb_stor_probe2 (struct us_data *us)
 
 EXPORT_SYMBOL_GPL (usb_stor_probe2)
 
void usb_stor_disconnect (struct usb_interface *intf)
 
 EXPORT_SYMBOL_GPL (usb_stor_disconnect)
 
 module_init (usb_stor_init)
 
 module_exit (usb_stor_exit)
 

Macro Definition Documentation

#define COMPLIANT_DEV   UNUSUAL_DEV

Definition at line 115 of file usb.c.

#define TOLOWER (   x)    ((x) | 0x20)

Definition at line 460 of file usb.c.

#define UNUSUAL_DEV (   idVendor,
  idProduct,
  bcdDeviceMin,
  bcdDeviceMax,
  vendor_name,
  product_name,
  use_protocol,
  use_transport,
  init_function,
  Flags 
)
Value:
{ \
.vendorName = vendor_name, \
.productName = product_name, \
.useProtocol = use_protocol, \
.useTransport = use_transport, \
.initFunction = init_function, \
}

Definition at line 104 of file usb.c.

#define USUAL_DEV (   use_protocol,
  use_transport 
)
Value:
{ \
.useProtocol = use_protocol, \
.useTransport = use_transport, \
}

Definition at line 117 of file usb.c.

Function Documentation

EXPORT_SYMBOL_GPL ( usb_stor_pre_reset  )
EXPORT_SYMBOL_GPL ( usb_stor_post_reset  )
EXPORT_SYMBOL_GPL ( fill_inquiry_response  )
EXPORT_SYMBOL_GPL ( usb_stor_probe1  )
EXPORT_SYMBOL_GPL ( usb_stor_probe2  )
EXPORT_SYMBOL_GPL ( usb_stor_disconnect  )
void fill_inquiry_response ( struct us_data us,
unsigned char data,
unsigned int  data_len 
)

Definition at line 261 of file usb.c.

MODULE_AUTHOR ( "Matthew Dharm <mdharm-usb@one-eyed-alien.net>"  )
MODULE_DESCRIPTION ( "USB Mass Storage driver for Linux"  )
module_exit ( usb_stor_exit  )
module_init ( usb_stor_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( delay_use  ,
uint  ,
S_IRUGO S_IWUSR 
)
module_param_string ( quirks  ,
quirks  ,
sizeof(quirks)  ,
S_IRUGO S_IWUSR 
)
MODULE_PARM_DESC ( delay_use  ,
"seconds to delay before using a new device  
)
MODULE_PARM_DESC ( quirks  ,
"supplemental list of device IDs and their quirks"   
)
void usb_stor_disconnect ( struct usb_interface intf)

Definition at line 1024 of file usb.c.

int usb_stor_post_reset ( struct usb_interface iface)

Definition at line 235 of file usb.c.

int usb_stor_pre_reset ( struct usb_interface iface)

Definition at line 223 of file usb.c.

int usb_stor_probe1 ( struct us_data **  pus,
struct usb_interface intf,
const struct usb_device_id id,
struct us_unusual_dev unusual_dev 
)

Definition at line 900 of file usb.c.

int usb_stor_probe2 ( struct us_data us)

Definition at line 963 of file usb.c.