Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
intel_vr_nor.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/map.h>
#include <linux/mtd/partitions.h>
#include <linux/mtd/cfi.h>
#include <linux/mtd/flashchip.h>

Go to the source code of this file.

Data Structures

struct  vr_nor_mtd
 

Macros

#define DRV_NAME   "vr_nor"
 
#define EXP_CSR_MBAR   0
 
#define EXP_WIN_MBAR   1
 
#define CS0_SIZE   0x04000000
 
#define CS0_START   0x0
 
#define EXP_TIMING_CS0   0x00
 
#define TIMING_CS_EN   (1 << 31) /* Chip Select Enable */
 
#define TIMING_BOOT_ACCEL_DIS   (1 << 8) /* Boot Acceleration Disable */
 
#define TIMING_WR_EN   (1 << 1) /* Write Enable */
 
#define TIMING_BYTE_EN   (1 << 0) /* 8-bit vs 16-bit bus */
 
#define TIMING_MASK   0x3FFF0000
 

Functions

 module_pci_driver (vr_nor_pci_driver)
 
 MODULE_AUTHOR ("Andy Lowe")
 
 MODULE_DESCRIPTION ("MTD map driver for NOR flash on Intel Vermilion Range")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (pci, vr_nor_pci_ids)
 

Macro Definition Documentation

#define CS0_SIZE   0x04000000

Definition at line 55 of file intel_vr_nor.c.

#define CS0_START   0x0

Definition at line 57 of file intel_vr_nor.c.

#define DRV_NAME   "vr_nor"

Definition at line 41 of file intel_vr_nor.c.

#define EXP_CSR_MBAR   0

Definition at line 51 of file intel_vr_nor.c.

#define EXP_TIMING_CS0   0x00

Definition at line 59 of file intel_vr_nor.c.

#define EXP_WIN_MBAR   1

Definition at line 53 of file intel_vr_nor.c.

#define TIMING_BOOT_ACCEL_DIS   (1 << 8) /* Boot Acceleration Disable */

Definition at line 61 of file intel_vr_nor.c.

#define TIMING_BYTE_EN   (1 << 0) /* 8-bit vs 16-bit bus */

Definition at line 63 of file intel_vr_nor.c.

#define TIMING_CS_EN   (1 << 31) /* Chip Select Enable */

Definition at line 60 of file intel_vr_nor.c.

#define TIMING_MASK   0x3FFF0000

Definition at line 64 of file intel_vr_nor.c.

#define TIMING_WR_EN   (1 << 1) /* Write Enable */

Definition at line 62 of file intel_vr_nor.c.

Function Documentation

MODULE_AUTHOR ( "Andy Lowe"  )
MODULE_DESCRIPTION ( "MTD map driver for NOR flash on Intel Vermilion Range"  )
MODULE_DEVICE_TABLE ( pci  ,
vr_nor_pci_ids   
)
MODULE_LICENSE ( "GPL"  )
module_pci_driver ( vr_nor_pci_driver  )