Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
docg3.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/platform_device.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/io.h>
#include <linux/delay.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
#include <linux/bitmap.h>
#include <linux/bitrev.h>
#include <linux/bch.h>
#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include "docg3.h"

Go to the source code of this file.

Macros

#define CREATE_TRACE_POINTS
 
#define FLOOR_SYSFS(id)
 

Functions

 module_param (reliable_mode, uint, 0)
 
 MODULE_PARM_DESC (reliable_mode,"Set the docg3 mode (0=normal MLC, 1=fast, ""2=reliable) : MLC normal operations are in normal mode")
 
 DEBUGFS_RO_ATTR (flashcontrol, dbg_flashctrl_show)
 
 DEBUGFS_RO_ATTR (asic_mode, dbg_asicmode_show)
 
 DEBUGFS_RO_ATTR (device_id, dbg_device_id_show)
 
 DEBUGFS_RO_ATTR (protection, dbg_protection_show)
 
 module_init (docg3_init)
 
 module_exit (docg3_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Robert Jarzmik <[email protected]>")
 
 MODULE_DESCRIPTION ("MTD driver for DiskOnChip G3")
 

Macro Definition Documentation

#define CREATE_TRACE_POINTS

Definition at line 39 of file docg3.c.

#define FLOOR_SYSFS (   id)
Value:
{ \
__ATTR(f##id##_dps0_is_keylocked, S_IRUGO, dps0_is_key_locked, NULL), \
__ATTR(f##id##_dps1_is_keylocked, S_IRUGO, dps1_is_key_locked, NULL), \
__ATTR(f##id##_dps0_protection_key, S_IWUGO, NULL, dps0_insert_key), \
__ATTR(f##id##_dps1_protection_key, S_IWUGO, NULL, dps1_insert_key), \
}

Definition at line 1608 of file docg3.c.

Function Documentation

DEBUGFS_RO_ATTR ( flashcontrol  ,
dbg_flashctrl_show   
)
DEBUGFS_RO_ATTR ( asic_mode  ,
dbg_asicmode_show   
)
DEBUGFS_RO_ATTR ( device_id  ,
dbg_device_id_show   
)
DEBUGFS_RO_ATTR ( protection  ,
dbg_protection_show   
)
MODULE_AUTHOR ( "Robert Jarzmik <[email protected]>"  )
MODULE_DESCRIPTION ( "MTD driver for DiskOnChip G3 )
module_exit ( docg3_exit  )
module_init ( docg3_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( reliable_mode  ,
uint  ,
 
)
MODULE_PARM_DESC ( reliable_mode  ,
"Set the docg3 mode (0=normal MLC, 1=fast, ""2=reliable) : MLC normal operations are in normal mode  
)