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

Go to the source code of this file.

Data Structures

struct  esb2rom_window
 
struct  esb2rom_map_info
 

Macros

#define MOD_NAME   KBUILD_BASENAME
 
#define ADDRESS_NAME_LEN   18
 
#define ROM_PROBE_STEP_SIZE   (64*1024) /* 64KiB */
 
#define BIOS_CNTL   0xDC
 
#define BIOS_LOCK_ENABLE   0x02
 
#define BIOS_WRITE_ENABLE   0x01
 
#define FWH_DEC_EN1   0xD8
 
#define FWH_F8_EN   0x8000
 
#define FWH_F0_EN   0x4000
 
#define FWH_E8_EN   0x2000
 
#define FWH_E0_EN   0x1000
 
#define FWH_D8_EN   0x0800
 
#define FWH_D0_EN   0x0400
 
#define FWH_C8_EN   0x0200
 
#define FWH_C0_EN   0x0100
 
#define FWH_LEGACY_F_EN   0x0080
 
#define FWH_LEGACY_E_EN   0x0040
 
#define FWH_70_EN   0x0008
 
#define FWH_60_EN   0x0004
 
#define FWH_50_EN   0x0002
 
#define FWH_40_EN   0x0001
 
#define FWH_SEL1   0xD0
 
#define FWH_SEL2   0xD4
 
#define FWH_8MiB
 
#define FWH_7MiB
 
#define FWH_6MiB
 
#define FWH_5MiB
 
#define FWH_4MiB
 
#define FWH_3_5MiB
 
#define FWH_3MiB
 
#define FWH_2_5MiB
 
#define FWH_2MiB   (FWH_F8_EN | FWH_F0_EN | FWH_E8_EN | FWH_E0_EN)
 
#define FWH_1_5MiB   (FWH_F8_EN | FWH_F0_EN | FWH_E8_EN)
 
#define FWH_1MiB   (FWH_F8_EN | FWH_F0_EN)
 
#define FWH_0_5MiB   (FWH_F8_EN)
 

Functions

 module_init (init_esb2rom)
 
 module_exit (cleanup_esb2rom)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Lew Glendenning <[email protected]>")
 
 MODULE_DESCRIPTION ("MTD map driver for BIOS chips on the ESB2 southbridge")
 

Macro Definition Documentation

#define ADDRESS_NAME_LEN   18

Definition at line 29 of file esb2rom.c.

#define BIOS_CNTL   0xDC

Definition at line 33 of file esb2rom.c.

#define BIOS_LOCK_ENABLE   0x02

Definition at line 34 of file esb2rom.c.

#define BIOS_WRITE_ENABLE   0x01

Definition at line 35 of file esb2rom.c.

#define FWH_0_5MiB   (FWH_F8_EN)

Definition at line 93 of file esb2rom.c.

#define FWH_1_5MiB   (FWH_F8_EN | FWH_F0_EN | FWH_E8_EN)

Definition at line 89 of file esb2rom.c.

#define FWH_1MiB   (FWH_F8_EN | FWH_F0_EN)

Definition at line 91 of file esb2rom.c.

#define FWH_2_5MiB
Value:
FWH_D8_EN)

Definition at line 84 of file esb2rom.c.

#define FWH_2MiB   (FWH_F8_EN | FWH_F0_EN | FWH_E8_EN | FWH_E0_EN)

Definition at line 87 of file esb2rom.c.

#define FWH_3_5MiB
Value:

Definition at line 78 of file esb2rom.c.

#define FWH_3MiB
Value:

Definition at line 81 of file esb2rom.c.

#define FWH_40_EN   0x0001

Definition at line 53 of file esb2rom.c.

#define FWH_4MiB
Value:

Definition at line 75 of file esb2rom.c.

#define FWH_50_EN   0x0002

Definition at line 52 of file esb2rom.c.

#define FWH_5MiB
Value:
FWH_D8_EN | FWH_D0_EN | FWH_C8_EN | FWH_C0_EN | \
FWH_70_EN)

Definition at line 71 of file esb2rom.c.

#define FWH_60_EN   0x0004

Definition at line 51 of file esb2rom.c.

#define FWH_6MiB
Value:
FWH_D8_EN | FWH_D0_EN | FWH_C8_EN | FWH_C0_EN | \
FWH_70_EN | FWH_60_EN)

Definition at line 67 of file esb2rom.c.

#define FWH_70_EN   0x0008

Definition at line 50 of file esb2rom.c.

#define FWH_7MiB
Value:
FWH_D8_EN | FWH_D0_EN | FWH_C8_EN | FWH_C0_EN | \
FWH_70_EN | FWH_60_EN | FWH_50_EN)

Definition at line 63 of file esb2rom.c.

#define FWH_8MiB
Value:

Definition at line 59 of file esb2rom.c.

#define FWH_C0_EN   0x0100

Definition at line 46 of file esb2rom.c.

#define FWH_C8_EN   0x0200

Definition at line 45 of file esb2rom.c.

#define FWH_D0_EN   0x0400

Definition at line 44 of file esb2rom.c.

#define FWH_D8_EN   0x0800

Definition at line 43 of file esb2rom.c.

#define FWH_DEC_EN1   0xD8

Definition at line 38 of file esb2rom.c.

#define FWH_E0_EN   0x1000

Definition at line 42 of file esb2rom.c.

#define FWH_E8_EN   0x2000

Definition at line 41 of file esb2rom.c.

#define FWH_F0_EN   0x4000

Definition at line 40 of file esb2rom.c.

#define FWH_F8_EN   0x8000

Definition at line 39 of file esb2rom.c.

#define FWH_LEGACY_E_EN   0x0040

Definition at line 48 of file esb2rom.c.

#define FWH_LEGACY_F_EN   0x0080

Definition at line 47 of file esb2rom.c.

#define FWH_SEL1   0xD0

Definition at line 56 of file esb2rom.c.

#define FWH_SEL2   0xD4

Definition at line 57 of file esb2rom.c.

#define MOD_NAME   KBUILD_BASENAME

Definition at line 27 of file esb2rom.c.

#define ROM_PROBE_STEP_SIZE   (64*1024) /* 64KiB */

Definition at line 31 of file esb2rom.c.

Function Documentation

MODULE_AUTHOR ( "Lew Glendenning <[email protected]>"  )
MODULE_DESCRIPTION ( "MTD map driver for BIOS chips on the ESB2 southbridge"  )
module_exit ( cleanup_esb2rom  )
module_init ( init_esb2rom  )
MODULE_LICENSE ( "GPL"  )