Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
karma.c File Reference
#include <linux/module.h>
#include <linux/slab.h>
#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_device.h>
#include "usb.h"
#include "transport.h"
#include "debug.h"
#include "unusual_karma.h"

Go to the source code of this file.

Data Structures

struct  karma_data
 

Macros

#define RIO_PREFIX   "RIOP\x00"
 
#define RIO_PREFIX_LEN   5
 
#define RIO_SEND_LEN   40
 
#define RIO_RECV_LEN   0x200
 
#define RIO_ENTER_STORAGE   0x1
 
#define RIO_LEAVE_STORAGE   0x2
 
#define RIO_RESET   0xC
 
#define UNUSUAL_DEV(id_vendor, id_product, bcdDeviceMin, bcdDeviceMax, vendorName, productName, useProtocol, useTransport, initFunction, flags)
 
#define UNUSUAL_DEV(idVendor, idProduct, bcdDeviceMin, bcdDeviceMax, vendor_name, product_name, use_protocol, use_transport, init_function, Flags)
 

Functions

 MODULE_DESCRIPTION ("Driver for Rio Karma")
 
 MODULE_AUTHOR ("Bob Copeland <[email protected]>, Keith Bennett <keith@mcs.st-and.ac.uk>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (usb, karma_usb_ids)
 
 module_usb_driver (karma_driver)
 

Macro Definition Documentation

#define RIO_ENTER_STORAGE   0x1

Definition at line 41 of file karma.c.

#define RIO_LEAVE_STORAGE   0x2

Definition at line 42 of file karma.c.

#define RIO_PREFIX   "RIOP\x00"

Definition at line 36 of file karma.c.

#define RIO_PREFIX_LEN   5

Definition at line 37 of file karma.c.

#define RIO_RECV_LEN   0x200

Definition at line 39 of file karma.c.

#define RIO_RESET   0xC

Definition at line 43 of file karma.c.

#define RIO_SEND_LEN   40

Definition at line 38 of file karma.c.

#define UNUSUAL_DEV (   id_vendor,
  id_product,
  bcdDeviceMin,
  bcdDeviceMax,
  vendorName,
  productName,
  useProtocol,
  useTransport,
  initFunction,
  flags 
)
Value:
{ USB_DEVICE_VER(id_vendor, id_product, bcdDeviceMin, bcdDeviceMax), \
.driver_info = (flags) }

Definition at line 73 of file karma.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 73 of file karma.c.

Function Documentation

MODULE_AUTHOR ( "Bob Copeland <[email protected] ,
Keith Bennett< keith @mcs.st-and.ac.uk >"   
)
MODULE_DESCRIPTION ( "Driver for Rio Karma"  )
MODULE_DEVICE_TABLE ( usb  ,
karma_usb_ids   
)
MODULE_LICENSE ( "GPL"  )
module_usb_driver ( karma_driver  )