#include <linux/errno.h>
#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_sddr09.h"
Go to the source code of this file.
|
#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 | short_pack(lsb, msb) ( ((u16)(lsb)) | ( ((u16)(msb))<<8 ) ) |
|
#define | LSB_of(s) ((s)&0xFF) |
|
#define | MSB_of(s) ((s)>>8) |
|
#define | NAND_MFR_AMD 0x01 |
|
#define | NAND_MFR_NATSEMI 0x8f |
|
#define | NAND_MFR_TOSHIBA 0x98 |
|
#define | NAND_MFR_SAMSUNG 0xec |
|
#define | SDDR09_WP 1 /* write protected */ |
|
#define | CONTROL_SHIFT 6 |
|
#define | LUN 1 |
|
#define | LUNBITS (LUN << 5) |
|
#define | UNDEF 0xffffffff |
|
#define | SPARE 0xfffffffe |
|
#define | UNUSABLE 0xfffffffd |
|
#define | SDDR09_READ_MAP_BUFSZ 65536 |
|
#define LSB_of |
( |
|
s | ) |
((s)&0xFF) |
#define LUNBITS (LUN << 5) |
#define MSB_of |
( |
|
s | ) |
((s)>>8) |
#define NAND_MFR_AMD 0x01 |
#define NAND_MFR_NATSEMI 0x8f |
#define NAND_MFR_SAMSUNG 0xec |
#define NAND_MFR_TOSHIBA 0x98 |
#define SDDR09_READ_MAP_BUFSZ 65536 |
#define SDDR09_WP 1 /* write protected */ |
#define UNUSABLE 0xfffffffd |
#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 85 of file sddr09.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 85 of file sddr09.c.
MODULE_AUTHOR |
( |
"Andries Brouwer <[email protected]> |
, |
|
|
Robert Baruch< autophile @starband.net >" |
|
|
) |
| |
MODULE_DESCRIPTION |
( |
"Driver for SanDisk SDDR-09 SmartMedia reader" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
usb |
, |
|
|
sddr09_usb_ids |
|
|
) |
| |
module_usb_driver |
( |
sddr09_driver |
| ) |
|