Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
ms02-nv.h File Reference
#include <linux/ioport.h>
#include <linux/mtd/mtd.h>

Go to the source code of this file.

Data Structures

struct  ms02nv_private
 

Macros

#define MS02NV_CSR   0x400000 /* control & status register */
 
#define MS02NV_CSR_BATT_OK   0x01 /* battery OK */
 
#define MS02NV_CSR_BATT_OFF   0x02 /* battery disabled */
 
#define MS02NV_DIAG   0x0003f8 /* diagnostic status */
 
#define MS02NV_MAGIC   0x0003fc /* MS02-NV magic ID */
 
#define MS02NV_VALID   0x000400 /* valid data magic ID */
 
#define MS02NV_RAM   0x001000 /* user-exposed RAM start */
 
#define MS02NV_DIAG_TEST   0x01 /* SRAM test done (?) */
 
#define MS02NV_DIAG_RO   0x02 /* SRAM r/o test done */
 
#define MS02NV_DIAG_RW   0x04 /* SRAM r/w test done */
 
#define MS02NV_DIAG_FAIL   0x08 /* SRAM test failed */
 
#define MS02NV_DIAG_SIZE_MASK   0xf0 /* SRAM size mask */
 
#define MS02NV_DIAG_SIZE_SHIFT   0x10 /* SRAM size shift (left) */
 
#define MS02NV_ID   0x03021966 /* MS02-NV magic ID value */
 
#define MS02NV_VALID_ID   0xbd100248 /* valid data magic ID value */
 
#define MS02NV_SLOT_SIZE
 

Typedefs

typedef volatile u32 ms02nv_uint
 

Macro Definition Documentation

#define MS02NV_CSR   0x400000 /* control & status register */

Definition at line 64 of file ms02-nv.h.

#define MS02NV_CSR_BATT_OFF   0x02 /* battery disabled */

Definition at line 68 of file ms02-nv.h.

#define MS02NV_CSR_BATT_OK   0x01 /* battery OK */

Definition at line 67 of file ms02-nv.h.

#define MS02NV_DIAG   0x0003f8 /* diagnostic status */

Definition at line 72 of file ms02-nv.h.

#define MS02NV_DIAG_FAIL   0x08 /* SRAM test failed */

Definition at line 81 of file ms02-nv.h.

#define MS02NV_DIAG_RO   0x02 /* SRAM r/o test done */

Definition at line 79 of file ms02-nv.h.

#define MS02NV_DIAG_RW   0x04 /* SRAM r/w test done */

Definition at line 80 of file ms02-nv.h.

#define MS02NV_DIAG_SIZE_MASK   0xf0 /* SRAM size mask */

Definition at line 82 of file ms02-nv.h.

#define MS02NV_DIAG_SIZE_SHIFT   0x10 /* SRAM size shift (left) */

Definition at line 83 of file ms02-nv.h.

#define MS02NV_DIAG_TEST   0x01 /* SRAM test done (?) */

Definition at line 78 of file ms02-nv.h.

#define MS02NV_ID   0x03021966 /* MS02-NV magic ID value */

Definition at line 86 of file ms02-nv.h.

#define MS02NV_MAGIC   0x0003fc /* MS02-NV magic ID */

Definition at line 73 of file ms02-nv.h.

#define MS02NV_RAM   0x001000 /* user-exposed RAM start */

Definition at line 75 of file ms02-nv.h.

#define MS02NV_SLOT_SIZE
Value:
0x800000 /* size of the address space
decoded by the module */

Definition at line 88 of file ms02-nv.h.

#define MS02NV_VALID   0x000400 /* valid data magic ID */

Definition at line 74 of file ms02-nv.h.

#define MS02NV_VALID_ID   0xbd100248 /* valid data magic ID value */

Definition at line 87 of file ms02-nv.h.

Typedef Documentation

typedef volatile u32 ms02nv_uint

Definition at line 91 of file ms02-nv.h.