Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
cdb89712.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/ioport.h>
#include <linux/init.h>
#include <asm/io.h>
#include <mach/hardware.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/map.h>
#include <linux/mtd/partitions.h>

Go to the source code of this file.

Macros

#define FLASH_START   0x00000000
 
#define FLASH_SIZE   0x800000
 
#define FLASH_WIDTH   4
 
#define SRAM_START   0x60000000
 
#define SRAM_SIZE   0xc000
 
#define SRAM_WIDTH   4
 
#define BOOTROM_START   0x70000000
 
#define BOOTROM_SIZE   0x80
 
#define BOOTROM_WIDTH   4
 

Functions

 module_init (init_cdb89712_maps)
 
 module_exit (cleanup_cdb89712_maps)
 
 MODULE_AUTHOR ("Ray L")
 
 MODULE_DESCRIPTION ("ARM CDB89712 map driver")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct map_info cdb89712_flash_map
 
struct resource cdb89712_flash_resource
 
struct map_info cdb89712_sram_map
 
struct resource cdb89712_sram_resource
 
struct map_info cdb89712_bootrom_map
 
struct resource cdb89712_bootrom_resource
 

Macro Definition Documentation

#define BOOTROM_SIZE   0x80

Definition at line 27 of file cdb89712.c.

#define BOOTROM_START   0x70000000

Definition at line 26 of file cdb89712.c.

#define BOOTROM_WIDTH   4

Definition at line 28 of file cdb89712.c.

#define FLASH_SIZE   0x800000

Definition at line 19 of file cdb89712.c.

#define FLASH_START   0x00000000

Definition at line 18 of file cdb89712.c.

#define FLASH_WIDTH   4

Definition at line 20 of file cdb89712.c.

#define SRAM_SIZE   0xc000

Definition at line 23 of file cdb89712.c.

#define SRAM_START   0x60000000

Definition at line 22 of file cdb89712.c.

#define SRAM_WIDTH   4

Definition at line 24 of file cdb89712.c.

Function Documentation

MODULE_AUTHOR ( "Ray L )
MODULE_DESCRIPTION ( "ARM CDB89712 map driver )
module_exit ( cleanup_cdb89712_maps  )
module_init ( init_cdb89712_maps  )
MODULE_LICENSE ( "GPL"  )

Variable Documentation

struct map_info cdb89712_bootrom_map
Initial value:
= {
.name = "BootROM",
.size = BOOTROM_SIZE,
.bankwidth = BOOTROM_WIDTH,
.phys = BOOTROM_START,
}

Definition at line 171 of file cdb89712.c.

struct resource cdb89712_bootrom_resource
Initial value:
= {
.name = "BootROM",
.start = BOOTROM_START,
}

Definition at line 178 of file cdb89712.c.

struct map_info cdb89712_flash_map
Initial value:
= {
.name = "flash",
.size = FLASH_SIZE,
.bankwidth = FLASH_WIDTH,
.phys = FLASH_START,
}

Definition at line 33 of file cdb89712.c.

struct resource cdb89712_flash_resource
Initial value:
= {
.name = "Flash",
.start = FLASH_START,
.end = FLASH_START + FLASH_SIZE - 1,
}

Definition at line 40 of file cdb89712.c.

struct map_info cdb89712_sram_map
Initial value:
= {
.name = "SRAM",
.size = SRAM_SIZE,
.bankwidth = SRAM_WIDTH,
.phys = SRAM_START,
}

Definition at line 103 of file cdb89712.c.

struct resource cdb89712_sram_resource
Initial value:
= {
.name = "SRAM",
.start = SRAM_START,
.end = SRAM_START + SRAM_SIZE - 1,
}

Definition at line 110 of file cdb89712.c.