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

Go to the source code of this file.

Data Structures

struct  freecom_cb_wrap
 
struct  freecom_xfer_wrap
 
struct  freecom_ide_out
 
struct  freecom_ide_in
 
struct  freecom_status
 

Macros

#define ERR_STAT   0x01
 
#define DRQ_STAT   0x08
 
#define FCM_INT_STATUS   0x02 /* INDEX_STAT */
 
#define FCM_STATUS_BUSY   0x80
 
#define FCM_PACKET_ATAPI   0x21
 
#define FCM_PACKET_STATUS   0x20
 
#define FCM_PACKET_INPUT   0x81
 
#define FCM_PACKET_OUTPUT   0x01
 
#define FCM_PACKET_IDE_WRITE   0x40
 
#define FCM_PACKET_IDE_READ   0xC0
 
#define FCM_PACKET_LENGTH   64
 
#define FCM_STATUS_PACKET_LENGTH   4
 
#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 Freecom USB/IDE adaptor")
 
 MODULE_AUTHOR ("David Brown <usb[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
struct freecom_xfer_wrap __attribute__ ((packed))
 
 MODULE_DEVICE_TABLE (usb, freecom_usb_ids)
 
 module_usb_driver (freecom_driver)
 

Variables

u8 Type
 
u8 Timeout
 
__le32 Count
 
u8 Pad [58]
 
struct freecom_ide_out __attribute__
 

Macro Definition Documentation

#define DRQ_STAT   0x08

Definition at line 48 of file freecom.c.

#define ERR_STAT   0x01

Definition at line 47 of file freecom.c.

#define FCM_INT_STATUS   0x02 /* INDEX_STAT */

Definition at line 86 of file freecom.c.

#define FCM_PACKET_ATAPI   0x21

Definition at line 91 of file freecom.c.

#define FCM_PACKET_IDE_READ   0xC0

Definition at line 104 of file freecom.c.

#define FCM_PACKET_IDE_WRITE   0x40

Definition at line 103 of file freecom.c.

#define FCM_PACKET_INPUT   0x81

Definition at line 96 of file freecom.c.

#define FCM_PACKET_LENGTH   64

Definition at line 107 of file freecom.c.

#define FCM_PACKET_OUTPUT   0x01

Definition at line 99 of file freecom.c.

#define FCM_PACKET_STATUS   0x20

Definition at line 92 of file freecom.c.

#define FCM_STATUS_BUSY   0x80

Definition at line 87 of file freecom.c.

#define FCM_STATUS_PACKET_LENGTH   4

Definition at line 108 of file freecom.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 133 of file freecom.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 133 of file freecom.c.

Function Documentation

struct freecom_xfer_wrap __attribute__ ( (packed)  )
read

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

MODULE_AUTHOR ( "David Brown <usb[email protected]>"  )
MODULE_DESCRIPTION ( "Driver for Freecom USB/IDE adaptor"  )
MODULE_DEVICE_TABLE ( usb  ,
freecom_usb_ids   
)
MODULE_LICENSE ( "GPL"  )
module_usb_driver ( freecom_driver  )

Variable Documentation

__le32 Count

Definition at line 66 of file freecom.c.

__u8 Pad

Definition at line 67 of file freecom.c.

__le32 Timeout

Definition at line 65 of file freecom.c.

Definition at line 64 of file freecom.c.