Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
cfi_flagadm.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <asm/io.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_PHYS_ADDR   0x40000000
 
#define FLASH_SIZE   0x400000
 
#define FLASH_PARTITION0_ADDR   0x00000000
 
#define FLASH_PARTITION0_SIZE   0x00020000
 
#define FLASH_PARTITION1_ADDR   0x00020000
 
#define FLASH_PARTITION1_SIZE   0x000A0000
 
#define FLASH_PARTITION2_ADDR   0x000C0000
 
#define FLASH_PARTITION2_SIZE   0x00180000
 
#define FLASH_PARTITION3_ADDR   0x00240000
 
#define FLASH_PARTITION3_SIZE   0x001C0000
 
#define PARTITION_COUNT   ARRAY_SIZE(flagadm_parts)
 

Functions

 module_init (init_flagadm)
 
 module_exit (cleanup_flagadm)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Kári Davíðsson <kd@flaga.is>")
 
 MODULE_DESCRIPTION ("MTD map driver for Flaga digital module")
 

Variables

struct map_info flagadm_map
 
struct mtd_partition flagadm_parts []
 

Macro Definition Documentation

#define FLASH_PARTITION0_ADDR   0x00000000

Definition at line 45 of file cfi_flagadm.c.

#define FLASH_PARTITION0_SIZE   0x00020000

Definition at line 46 of file cfi_flagadm.c.

#define FLASH_PARTITION1_ADDR   0x00020000

Definition at line 48 of file cfi_flagadm.c.

#define FLASH_PARTITION1_SIZE   0x000A0000

Definition at line 49 of file cfi_flagadm.c.

#define FLASH_PARTITION2_ADDR   0x000C0000

Definition at line 51 of file cfi_flagadm.c.

#define FLASH_PARTITION2_SIZE   0x00180000

Definition at line 52 of file cfi_flagadm.c.

#define FLASH_PARTITION3_ADDR   0x00240000

Definition at line 54 of file cfi_flagadm.c.

#define FLASH_PARTITION3_SIZE   0x001C0000

Definition at line 55 of file cfi_flagadm.c.

#define FLASH_PHYS_ADDR   0x40000000

Definition at line 42 of file cfi_flagadm.c.

#define FLASH_SIZE   0x400000

Definition at line 43 of file cfi_flagadm.c.

#define PARTITION_COUNT   ARRAY_SIZE(flagadm_parts)

Definition at line 87 of file cfi_flagadm.c.

Function Documentation

MODULE_AUTHOR ( "Kári Davíðsson <kd@flaga.is>"  )
MODULE_DESCRIPTION ( "MTD map driver for Flaga digital module )
module_exit ( cleanup_flagadm  )
module_init ( init_flagadm  )
MODULE_LICENSE ( "GPL"  )

Variable Documentation

struct map_info flagadm_map
Initial value:
= {
.name = "FlagaDM flash device",
.size = FLASH_SIZE,
.bankwidth = 2,
}

Definition at line 58 of file cfi_flagadm.c.

struct mtd_partition flagadm_parts[]
Initial value:
= {
{
.name = "Bootloader",
},
{
.name = "Kernel image",
},
{
.name = "Initial ramdisk image",
},
{
.name = "Persistent storage",
}
}

Definition at line 64 of file cfi_flagadm.c.