Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
tifm_ms.c File Reference
#include <linux/tifm.h>
#include <linux/memstick.h>
#include <linux/highmem.h>
#include <linux/scatterlist.h>
#include <linux/log2.h>
#include <linux/module.h>
#include <asm/io.h>

Go to the source code of this file.

Data Structures

struct  tifm_ms
 

Macros

#define DRIVER_NAME   "tifm_ms"
 
#define TIFM_MS_STAT_DRQ   0x04000
 
#define TIFM_MS_STAT_MSINT   0x02000
 
#define TIFM_MS_STAT_RDY   0x01000
 
#define TIFM_MS_STAT_CRC   0x00200
 
#define TIFM_MS_STAT_TOE   0x00100
 
#define TIFM_MS_STAT_EMP   0x00020
 
#define TIFM_MS_STAT_FUL   0x00010
 
#define TIFM_MS_STAT_CED   0x00008
 
#define TIFM_MS_STAT_ERR   0x00004
 
#define TIFM_MS_STAT_BRQ   0x00002
 
#define TIFM_MS_STAT_CNK   0x00001
 
#define TIFM_MS_SYS_DMA   0x10000
 
#define TIFM_MS_SYS_RESET   0x08000
 
#define TIFM_MS_SYS_SRAC   0x04000
 
#define TIFM_MS_SYS_INTEN   0x02000
 
#define TIFM_MS_SYS_NOCRC   0x01000
 
#define TIFM_MS_SYS_INTCLR   0x00800
 
#define TIFM_MS_SYS_MSIEN   0x00400
 
#define TIFM_MS_SYS_FCLR   0x00200
 
#define TIFM_MS_SYS_FDIR   0x00100
 
#define TIFM_MS_SYS_DAM   0x00080
 
#define TIFM_MS_SYS_DRM   0x00040
 
#define TIFM_MS_SYS_DRQSL   0x00020
 
#define TIFM_MS_SYS_REI   0x00010
 
#define TIFM_MS_SYS_REO   0x00008
 
#define TIFM_MS_SYS_BSY_MASK   0x00007
 
#define TIFM_MS_SYS_FIFO
 
#define tifm_ms_suspend   NULL
 
#define tifm_ms_resume   NULL
 

Enumerations

enum  { CMD_READY = 0x01, FIFO_READY = 0x02, CARD_INT = 0x04 }
 

Functions

 module_param (no_dma, bool, 0644)
 
 MODULE_AUTHOR ("Alex Dubov")
 
 MODULE_DESCRIPTION ("TI FlashMedia MemoryStick driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (tifm, tifm_ms_id_tbl)
 
 module_init (tifm_ms_init)
 
 module_exit (tifm_ms_exit)
 

Macro Definition Documentation

#define DRIVER_NAME   "tifm_ms"

Definition at line 23 of file tifm_ms.c.

#define tifm_ms_resume   NULL

Definition at line 652 of file tifm_ms.c.

#define TIFM_MS_STAT_BRQ   0x00002

Definition at line 42 of file tifm_ms.c.

#define TIFM_MS_STAT_CED   0x00008

Definition at line 40 of file tifm_ms.c.

#define TIFM_MS_STAT_CNK   0x00001

Definition at line 43 of file tifm_ms.c.

#define TIFM_MS_STAT_CRC   0x00200

Definition at line 36 of file tifm_ms.c.

#define TIFM_MS_STAT_DRQ   0x04000

Definition at line 33 of file tifm_ms.c.

#define TIFM_MS_STAT_EMP   0x00020

Definition at line 38 of file tifm_ms.c.

#define TIFM_MS_STAT_ERR   0x00004

Definition at line 41 of file tifm_ms.c.

#define TIFM_MS_STAT_FUL   0x00010

Definition at line 39 of file tifm_ms.c.

#define TIFM_MS_STAT_MSINT   0x02000

Definition at line 34 of file tifm_ms.c.

#define TIFM_MS_STAT_RDY   0x01000

Definition at line 35 of file tifm_ms.c.

#define TIFM_MS_STAT_TOE   0x00100

Definition at line 37 of file tifm_ms.c.

#define tifm_ms_suspend   NULL

Definition at line 651 of file tifm_ms.c.

#define TIFM_MS_SYS_BSY_MASK   0x00007

Definition at line 59 of file tifm_ms.c.

#define TIFM_MS_SYS_DAM   0x00080

Definition at line 54 of file tifm_ms.c.

#define TIFM_MS_SYS_DMA   0x10000

Definition at line 45 of file tifm_ms.c.

#define TIFM_MS_SYS_DRM   0x00040

Definition at line 55 of file tifm_ms.c.

#define TIFM_MS_SYS_DRQSL   0x00020

Definition at line 56 of file tifm_ms.c.

#define TIFM_MS_SYS_FCLR   0x00200

Definition at line 52 of file tifm_ms.c.

#define TIFM_MS_SYS_FDIR   0x00100

Definition at line 53 of file tifm_ms.c.

#define TIFM_MS_SYS_FIFO
#define TIFM_MS_SYS_INTCLR   0x00800

Definition at line 50 of file tifm_ms.c.

#define TIFM_MS_SYS_INTEN   0x02000

Definition at line 48 of file tifm_ms.c.

#define TIFM_MS_SYS_MSIEN   0x00400

Definition at line 51 of file tifm_ms.c.

#define TIFM_MS_SYS_NOCRC   0x01000

Definition at line 49 of file tifm_ms.c.

#define TIFM_MS_SYS_REI   0x00010

Definition at line 57 of file tifm_ms.c.

#define TIFM_MS_SYS_REO   0x00008

Definition at line 58 of file tifm_ms.c.

#define TIFM_MS_SYS_RESET   0x08000

Definition at line 46 of file tifm_ms.c.

#define TIFM_MS_SYS_SRAC   0x04000

Definition at line 47 of file tifm_ms.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
CMD_READY 
FIFO_READY 
CARD_INT 

Definition at line 65 of file tifm_ms.c.

Function Documentation

MODULE_AUTHOR ( "Alex Dubov"  )
MODULE_DESCRIPTION ( "TI FlashMedia MemoryStick driver )
MODULE_DEVICE_TABLE ( tifm  ,
tifm_ms_id_tbl   
)
module_exit ( tifm_ms_exit  )
module_init ( tifm_ms_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( no_dma  ,
bool  ,
0644   
)