Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
diskonchip.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/delay.h>
#include <linux/rslib.h>
#include <linux/moduleparam.h>
#include <linux/slab.h>
#include <asm/io.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/nand.h>
#include <linux/mtd/doc2000.h>
#include <linux/mtd/partitions.h>
#include <linux/mtd/inftl.h>
#include <linux/module.h>

Go to the source code of this file.

Data Structures

struct  doc_priv
 

Macros

#define CONFIG_MTD_NAND_DISKONCHIP_PROBE_ADDRESS   0
 
#define INFTL_BBT_RESERVED_BLOCKS   4
 
#define DoC_is_MillenniumPlus(doc)   ((doc)->ChipID == DOC_ChipID_DocMilPlus16 || (doc)->ChipID == DOC_ChipID_DocMilPlus32)
 
#define DoC_is_Millennium(doc)   ((doc)->ChipID == DOC_ChipID_DocMil)
 
#define DoC_is_2000(doc)   ((doc)->ChipID == DOC_ChipID_Doc2k)
 
#define SECTOR_SIZE   512
 
#define NB_DATA   (((SECTOR_SIZE + 1) * 8 + 6) / 10)
 
#define NROOTS   4
 
#define FCR   510
 
#define NN   1023
 
#define CDSN_CTRL_FR_B_MASK   (CDSN_CTRL_FR_B0 | CDSN_CTRL_FR_B1)
 
#define CDSN_CTRL_MSK   (CDSN_CTRL_CE | CDSN_CTRL_CLE | CDSN_CTRL_ALE)
 

Functions

 module_param (debug, int, 0)
 
 module_param (try_dword, int, 0)
 
 module_param (no_ecc_failures, int, 0)
 
 module_param (no_autopart, int, 0)
 
 module_param (show_firmware_partition, int, 0)
 
 module_param (inftl_bbt_write, int, 0)
 
 module_param (doc_config_location, ulong, 0)
 
 MODULE_PARM_DESC (doc_config_location,"Physical memory address at which to probe for DiskOnChip")
 
 module_init (init_nanddoc)
 
 module_exit (cleanup_nanddoc)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("David Woodhouse <[email protected]>")
 
 MODULE_DESCRIPTION ("M-Systems DiskOnChip 2000, Millennium and Millennium Plus device driver")
 

Macro Definition Documentation

#define CDSN_CTRL_FR_B_MASK   (CDSN_CTRL_FR_B0 | CDSN_CTRL_FR_B1)

Definition at line 240 of file diskonchip.c.

#define CDSN_CTRL_MSK   (CDSN_CTRL_CE | CDSN_CTRL_CLE | CDSN_CTRL_ALE)

Definition at line 635 of file diskonchip.c.

#define CONFIG_MTD_NAND_DISKONCHIP_PROBE_ADDRESS   0

Definition at line 38 of file diskonchip.c.

#define DoC_is_2000 (   doc)    ((doc)->ChipID == DOC_ChipID_Doc2k)

Definition at line 88 of file diskonchip.c.

#define DoC_is_Millennium (   doc)    ((doc)->ChipID == DOC_ChipID_DocMil)

Definition at line 87 of file diskonchip.c.

#define DoC_is_MillenniumPlus (   doc)    ((doc)->ChipID == DOC_ChipID_DocMilPlus16 || (doc)->ChipID == DOC_ChipID_DocMilPlus32)

Definition at line 86 of file diskonchip.c.

#define FCR   510

Definition at line 127 of file diskonchip.c.

#define INFTL_BBT_RESERVED_BLOCKS   4

Definition at line 84 of file diskonchip.c.

#define NB_DATA   (((SECTOR_SIZE + 1) * 8 + 6) / 10)

Definition at line 123 of file diskonchip.c.

#define NN   1023

Definition at line 129 of file diskonchip.c.

#define NROOTS   4

Definition at line 125 of file diskonchip.c.

#define SECTOR_SIZE   512

Definition at line 121 of file diskonchip.c.

Function Documentation

MODULE_AUTHOR ( "David Woodhouse <[email protected]>"  )
MODULE_DESCRIPTION ( "M-Systems DiskOnChip  2000,
Millennium and Millennium Plus device driver  
)
module_exit ( cleanup_nanddoc  )
module_init ( init_nanddoc  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
 
)
module_param ( try_dword  ,
int  ,
 
)
module_param ( no_ecc_failures  ,
int  ,
 
)
module_param ( no_autopart  ,
int  ,
 
)
module_param ( show_firmware_partition  ,
int  ,
 
)
module_param ( inftl_bbt_write  ,
int  ,
 
)
module_param ( doc_config_location  ,
ulong  ,
 
)
MODULE_PARM_DESC ( doc_config_location  ,
"Physical memory address at which to probe for DiskOnChip  
)