Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
r852.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/jiffies.h>
#include <linux/workqueue.h>
#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/pci_ids.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <asm/byteorder.h>
#include <linux/sched.h>
#include "sm_common.h"
#include "r852.h"

Go to the source code of this file.

Macros

#define r852_suspend   NULL
 
#define r852_resume   NULL
 

Functions

 module_param (r852_enable_dma, bool, S_IRUGO)
 
 MODULE_PARM_DESC (r852_enable_dma,"Enable usage of the DMA (default)")
 
 module_param (debug, int, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (debug,"Debug level (0-2)")
 
void r852_write_buf (struct mtd_info *mtd, const uint8_t *buf, int len)
 
void r852_read_buf (struct mtd_info *mtd, uint8_t *buf, int len)
 
void r852_cmdctl (struct mtd_info *mtd, int dat, unsigned int ctrl)
 
int r852_wait (struct mtd_info *mtd, struct nand_chip *chip)
 
int r852_ready (struct mtd_info *mtd)
 
void r852_ecc_hwctl (struct mtd_info *mtd, int mode)
 
int r852_ecc_calculate (struct mtd_info *mtd, const uint8_t *dat, uint8_t *ecc_code)
 
int r852_ecc_correct (struct mtd_info *mtd, uint8_t *dat, uint8_t *read_ecc, uint8_t *calc_ecc)
 
void r852_engine_enable (struct r852_device *dev)
 
void r852_engine_disable (struct r852_device *dev)
 
void r852_card_update_present (struct r852_device *dev)
 
void r852_update_card_detect (struct r852_device *dev)
 
ssize_t r852_media_type_show (struct device *sys_dev, struct device_attribute *attr, char *buf)
 
 DEVICE_ATTR (media_type, S_IRUGO, r852_media_type_show, NULL)
 
void r852_update_media_status (struct r852_device *dev)
 
int r852_register_nand_device (struct r852_device *dev)
 
void r852_unregister_nand_device (struct r852_device *dev)
 
void r852_card_detect_work (struct work_struct *work)
 
int r852_probe (struct pci_dev *pci_dev, const struct pci_device_id *id)
 
void r852_remove (struct pci_dev *pci_dev)
 
void r852_shutdown (struct pci_dev *pci_dev)
 
 MODULE_DEVICE_TABLE (pci, r852_pci_id_tbl)
 
 module_pci_driver (r852_pci_driver)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Maxim Levitsky <[email protected]>")
 
 MODULE_DESCRIPTION ("Ricoh 85xx xD/smartmedia card reader driver")
 

Macro Definition Documentation

#define r852_resume   NULL

Definition at line 1060 of file r852.c.

#define r852_suspend   NULL

Definition at line 1059 of file r852.c.

Function Documentation

DEVICE_ATTR ( media_type  ,
S_IRUGO  ,
r852_media_type_show  ,
NULL   
)
MODULE_AUTHOR ( "Maxim Levitsky <[email protected]>"  )
MODULE_DESCRIPTION ( "Ricoh 85xx xD/smartmedia card reader driver"  )
MODULE_DEVICE_TABLE ( pci  ,
r852_pci_id_tbl   
)
MODULE_LICENSE ( "GPL"  )
module_param ( r852_enable_dma  ,
bool  ,
S_IRUGO   
)
module_param ( debug  ,
int  ,
S_IRUGO S_IWUSR 
)
MODULE_PARM_DESC ( r852_enable_dma  ,
"Enable usage of the DMA (default)"   
)
MODULE_PARM_DESC ( debug  ,
"Debug level (0-2)"   
)
module_pci_driver ( r852_pci_driver  )
void r852_card_detect_work ( struct work_struct work)

Definition at line 685 of file r852.c.

void r852_card_update_present ( struct r852_device dev)

Definition at line 560 of file r852.c.

void r852_cmdctl ( struct mtd_info mtd,
int  dat,
unsigned int  ctrl 
)

Definition at line 315 of file r852.c.

int r852_ecc_calculate ( struct mtd_info mtd,
const uint8_t dat,
uint8_t ecc_code 
)

Definition at line 432 of file r852.c.

int r852_ecc_correct ( struct mtd_info mtd,
uint8_t dat,
uint8_t read_ecc,
uint8_t calc_ecc 
)

Definition at line 464 of file r852.c.

void r852_ecc_hwctl ( struct mtd_info mtd,
int  mode 
)

Definition at line 400 of file r852.c.

void r852_engine_disable ( struct r852_device dev)

Definition at line 550 of file r852.c.

void r852_engine_enable ( struct r852_device dev)

Definition at line 532 of file r852.c.

ssize_t r852_media_type_show ( struct device sys_dev,
struct device_attribute attr,
char buf 
)

Definition at line 589 of file r852.c.

int r852_probe ( struct pci_dev pci_dev,
const struct pci_device_id id 
)

Definition at line 824 of file r852.c.

void r852_read_buf ( struct mtd_info mtd,
uint8_t buf,
int  len 
)

Definition at line 264 of file r852.c.

int r852_ready ( struct mtd_info mtd)

Definition at line 389 of file r852.c.

int r852_register_nand_device ( struct r852_device dev)

Definition at line 633 of file r852.c.

void r852_remove ( struct pci_dev pci_dev)

Definition at line 964 of file r852.c.

void r852_shutdown ( struct pci_dev pci_dev)

Definition at line 995 of file r852.c.

void r852_unregister_nand_device ( struct r852_device dev)

Definition at line 671 of file r852.c.

void r852_update_card_detect ( struct r852_device dev)

Definition at line 575 of file r852.c.

void r852_update_media_status ( struct r852_device dev)

Definition at line 604 of file r852.c.

int r852_wait ( struct mtd_info mtd,
struct nand_chip chip 
)

Definition at line 360 of file r852.c.

void r852_write_buf ( struct mtd_info mtd,
const uint8_t buf,
int  len 
)

Definition at line 232 of file r852.c.