#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 "protocol.h"
#include "debug.h"
#include "unusual_alauda.h"
Go to the source code of this file.
|
#define | ALAUDA_STATUS_ERROR 0x01 |
|
#define | ALAUDA_STATUS_READY 0x40 |
|
#define | ALAUDA_GET_XD_MEDIA_STATUS 0x08 |
|
#define | ALAUDA_GET_SM_MEDIA_STATUS 0x98 |
|
#define | ALAUDA_ACK_XD_MEDIA_CHANGE 0x0a |
|
#define | ALAUDA_ACK_SM_MEDIA_CHANGE 0x9a |
|
#define | ALAUDA_GET_XD_MEDIA_SIG 0x86 |
|
#define | ALAUDA_GET_SM_MEDIA_SIG 0x96 |
|
#define | ALAUDA_BULK_CMD 0x40 |
|
#define | ALAUDA_BULK_GET_REDU_DATA 0x85 |
|
#define | ALAUDA_BULK_READ_BLOCK 0x94 |
|
#define | ALAUDA_BULK_ERASE_BLOCK 0xa3 |
|
#define | ALAUDA_BULK_WRITE_BLOCK 0xb4 |
|
#define | ALAUDA_BULK_GET_STATUS2 0xb7 |
|
#define | ALAUDA_BULK_RESET_MEDIA 0xe0 |
|
#define | ALAUDA_PORT_XD 0x00 |
|
#define | ALAUDA_PORT_SM 0x01 |
|
#define | UNDEF 0xffff |
|
#define | SPARE 0xfffe |
|
#define | UNUSABLE 0xfffd |
|
#define | short_pack(lsb, msb) ( ((u16)(lsb)) | ( ((u16)(msb))<<8 ) ) |
|
#define | LSB_of(s) ((s)&0xFF) |
|
#define | MSB_of(s) ((s)>>8) |
|
#define | MEDIA_PORT(us) us->srb->device->lun |
|
#define | MEDIA_INFO(us) ((struct alauda_info *)us->extra)->port[MEDIA_PORT(us)] |
|
#define | PBA_LO(pba) ((pba & 0xF) << 5) |
|
#define | PBA_HI(pba) (pba >> 3) |
|
#define | PBA_ZONE(pba) (pba >> 11) |
|
#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) |
|
#define ALAUDA_ACK_SM_MEDIA_CHANGE 0x9a |
#define ALAUDA_ACK_XD_MEDIA_CHANGE 0x0a |
#define ALAUDA_BULK_CMD 0x40 |
#define ALAUDA_BULK_ERASE_BLOCK 0xa3 |
#define ALAUDA_BULK_GET_REDU_DATA 0x85 |
#define ALAUDA_BULK_GET_STATUS2 0xb7 |
#define ALAUDA_BULK_READ_BLOCK 0x94 |
#define ALAUDA_BULK_RESET_MEDIA 0xe0 |
#define ALAUDA_BULK_WRITE_BLOCK 0xb4 |
#define ALAUDA_GET_SM_MEDIA_SIG 0x96 |
#define ALAUDA_GET_SM_MEDIA_STATUS 0x98 |
#define ALAUDA_GET_XD_MEDIA_SIG 0x86 |
#define ALAUDA_GET_XD_MEDIA_STATUS 0x08 |
#define ALAUDA_PORT_SM 0x01 |
#define ALAUDA_PORT_XD 0x00 |
#define ALAUDA_STATUS_ERROR 0x01 |
#define ALAUDA_STATUS_READY 0x40 |
#define LSB_of |
( |
|
s | ) |
((s)&0xFF) |
#define MSB_of |
( |
|
s | ) |
((s)>>8) |
#define PBA_HI |
( |
|
pba | ) |
(pba >> 3) |
#define PBA_LO |
( |
|
pba | ) |
((pba & 0xF) << 5) |
#define PBA_ZONE |
( |
|
pba | ) |
(pba >> 11) |
#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), \
Definition at line 153 of file alauda.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 153 of file alauda.c.
MODULE_DESCRIPTION |
( |
"Driver for Alauda-based card readers" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
usb |
, |
|
|
alauda_usb_ids |
|
|
) |
| |
module_usb_driver |
( |
alauda_driver |
| ) |
|