Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
alauda.c File Reference
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/kref.h>
#include <linux/usb.h>
#include <linux/mutex.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/nand_ecc.h>

Go to the source code of this file.

Data Structures

struct  alauda_card
 
struct  alauda
 
struct  alauda_sg_request
 

Macros

#define ALAUDA_GET_XD_MEDIA_STATUS   0x08
 
#define ALAUDA_ACK_XD_MEDIA_CHANGE   0x0a
 
#define ALAUDA_GET_XD_MEDIA_SIG   0x86
 
#define ALAUDA_BULK_CMD   0x40
 
#define ALAUDA_PORT_XD   0x00
 
#define ALAUDA_PORT_SM   0x01
 
#define ALAUDA_BULK_READ_PAGE   0x84
 
#define ALAUDA_BULK_READ_OOB   0x85 /* don't use, there's a chip bug */
 
#define ALAUDA_BULK_READ_BLOCK   0x94
 
#define ALAUDA_BULK_ERASE_BLOCK   0xa3
 
#define ALAUDA_BULK_WRITE_PAGE   0xa4
 
#define ALAUDA_BULK_WRITE_BLOCK   0xb4
 
#define ALAUDA_BULK_RESET_MEDIA   0xe0
 
#define PBA_LO(pba)   ((pba & 0xF) << 5)
 
#define PBA_HI(pba)   (pba >> 3)
 
#define PBA_ZONE(pba)   (pba >> 11)
 
#define TIMEOUT   HZ
 

Functions

 MODULE_DEVICE_TABLE (usb, alauda_table)
 
 module_usb_driver (alauda_driver)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define ALAUDA_ACK_XD_MEDIA_CHANGE   0x0a

Definition at line 26 of file alauda.c.

#define ALAUDA_BULK_CMD   0x40

Definition at line 30 of file alauda.c.

#define ALAUDA_BULK_ERASE_BLOCK   0xa3

Definition at line 40 of file alauda.c.

#define ALAUDA_BULK_READ_BLOCK   0x94

Definition at line 39 of file alauda.c.

#define ALAUDA_BULK_READ_OOB   0x85 /* don't use, there's a chip bug */

Definition at line 38 of file alauda.c.

#define ALAUDA_BULK_READ_PAGE   0x84

Definition at line 37 of file alauda.c.

#define ALAUDA_BULK_RESET_MEDIA   0xe0

Definition at line 43 of file alauda.c.

#define ALAUDA_BULK_WRITE_BLOCK   0xb4

Definition at line 42 of file alauda.c.

#define ALAUDA_BULK_WRITE_PAGE   0xa4

Definition at line 41 of file alauda.c.

#define ALAUDA_GET_XD_MEDIA_SIG   0x86

Definition at line 27 of file alauda.c.

#define ALAUDA_GET_XD_MEDIA_STATUS   0x08

Definition at line 25 of file alauda.c.

#define ALAUDA_PORT_SM   0x01

Definition at line 34 of file alauda.c.

#define ALAUDA_PORT_XD   0x00

Definition at line 33 of file alauda.c.

#define PBA_HI (   pba)    (pba >> 3)

Definition at line 47 of file alauda.c.

#define PBA_LO (   pba)    ((pba & 0xF) << 5)

Definition at line 46 of file alauda.c.

#define PBA_ZONE (   pba)    (pba >> 11)

Definition at line 48 of file alauda.c.

#define TIMEOUT   HZ

Definition at line 50 of file alauda.c.

Function Documentation

MODULE_DEVICE_TABLE ( usb  ,
alauda_table   
)
MODULE_LICENSE ( "GPL"  )
module_usb_driver ( alauda_driver  )