Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
pcmciamtd.c File Reference
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/timer.h>
#include <linux/init.h>
#include <asm/io.h>
#include <pcmcia/cistpl.h>
#include <pcmcia/ds.h>
#include <linux/mtd/map.h>
#include <linux/mtd/mtd.h>

Go to the source code of this file.

Data Structures

struct  pcmciamtd_dev
 

Macros

#define info(format, arg...)   printk(KERN_INFO "pcmciamtd: " format "\n" , ## arg)
 
#define DRIVER_DESC   "PCMCIA Flash memory card driver"
 
#define MAX_PCMCIA_ADDR   0x4000000
 
#define DEV_REMOVED(x)   (!(pcmcia_dev_present(((struct pcmciamtd_dev *)map->map_priv_1)->p_dev)))
 

Functions

 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Simon Evans <[email protected]>")
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 module_param (bankwidth, int, 0)
 
 MODULE_PARM_DESC (bankwidth,"Set bankwidth (1=8 bit, 2=16 bit, default=2)")
 
 module_param (mem_speed, int, 0)
 
 MODULE_PARM_DESC (mem_speed,"Set memory access speed in ns")
 
 module_param (force_size, int, 0)
 
 MODULE_PARM_DESC (force_size,"Force size of card in MiB (1-64)")
 
 module_param (setvpp, int, 0)
 
 MODULE_PARM_DESC (setvpp,"Set Vpp (0=Never, 1=On writes, 2=Always on, default=0)")
 
 module_param (vpp, int, 0)
 
 MODULE_PARM_DESC (vpp,"Vpp value in 1/10ths eg 33=3.3V 120=12V (Dangerous)")
 
 module_param (mem_type, int, 0)
 
 MODULE_PARM_DESC (mem_type,"Set Memory type (0=Flash, 1=RAM, 2=ROM, default=0)")
 
 MODULE_DEVICE_TABLE (pcmcia, pcmciamtd_ids)
 
 module_init (init_pcmciamtd)
 
 module_exit (exit_pcmciamtd)
 

Macro Definition Documentation

#define DEV_REMOVED (   x)    (!(pcmcia_dev_present(((struct pcmciamtd_dev *)map->map_priv_1)->p_dev)))

Definition at line 215 of file pcmciamtd.c.

#define DRIVER_DESC   "PCMCIA Flash memory card driver"

Definition at line 26 of file pcmciamtd.c.

#define info (   format,
  arg... 
)    printk(KERN_INFO "pcmciamtd: " format "\n" , ## arg)

Definition at line 24 of file pcmciamtd.c.

#define MAX_PCMCIA_ADDR   0x4000000

Definition at line 29 of file pcmciamtd.c.

Function Documentation

MODULE_AUTHOR ( "Simon Evans <[email protected]>"  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
MODULE_DEVICE_TABLE ( pcmcia  ,
pcmciamtd_ids   
)
module_exit ( exit_pcmciamtd  )
module_init ( init_pcmciamtd  )
MODULE_LICENSE ( "GPL"  )
module_param ( bankwidth  ,
int  ,
 
)
module_param ( mem_speed  ,
int  ,
 
)
module_param ( force_size  ,
int  ,
 
)
module_param ( setvpp  ,
int  ,
 
)
module_param ( vpp  ,
int  ,
 
)
module_param ( mem_type  ,
int  ,
 
)
MODULE_PARM_DESC ( bankwidth  ,
"Set bankwidth (1=8 bit, 2=16 bit, default=2)"   
)
MODULE_PARM_DESC ( mem_speed  ,
"Set memory access speed in ns  
)
MODULE_PARM_DESC ( force_size  ,
"Force size of card in MiB (1-64)"   
)
MODULE_PARM_DESC ( setvpp  ,
"Set Vpp (0=Never, 1=On writes, 2=Always on, default=0)"   
)
MODULE_PARM_DESC ( vpp  )
MODULE_PARM_DESC ( mem_type  ,
"Set Memory type (0=Flash, 1=RAM, 2=ROM, default=0)"   
)