Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
sc520cdp.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/concat.h>

Go to the source code of this file.

Data Structures

struct  sc520_par_table
 

Macros

#define REPROGRAM_PAR
 
#define WINDOW_ADDR_0   0x08800000
 
#define WINDOW_ADDR_1   0x09000000
 
#define WINDOW_ADDR_2   0x09800000
 
#define WINDOW_ADDR_0_BIOS   0x08400000
 
#define WINDOW_ADDR_1_BIOS   0x08c00000
 
#define WINDOW_ADDR_2_BIOS   0x09400000
 
#define WINDOW_SIZE_0   0x00800000
 
#define WINDOW_SIZE_1   0x00800000
 
#define WINDOW_SIZE_2   0x00080000
 
#define NUM_FLASH_BANKS   ARRAY_SIZE(sc520cdp_map)
 
#define SC520_MMCR_BASE   0xFFFEF000
 
#define SC520_MMCR_EXTENT   0x1000
 
#define SC520_PAR(x)   ((0x88/sizeof(unsigned long)) + (x))
 
#define NUM_SC520_PAR   16 /* total number of PAR registers */
 
#define SC520_PAR_BOOTCS   (0x4<<29)
 
#define SC520_PAR_ROMCS0   (0x5<<29)
 
#define SC520_PAR_ROMCS1   (0x6<<29)
 
#define SC520_PAR_TRGDEV   (0x7<<29)
 
#define SC520_PAR_WRPROT   (1<<26) /* write protected */
 
#define SC520_PAR_NOCACHE   (1<<27) /* non-cacheable */
 
#define SC520_PAR_NOEXEC   (1<<28) /* code execution denied */
 
#define SC520_PAR_PG_SIZ4   (0<<25)
 
#define SC520_PAR_PG_SIZ64   (1<<25)
 
#define SC520_PAR_ENTRY(trgdev, address, size)
 

Functions

 module_init (init_sc520cdp)
 
 module_exit (cleanup_sc520cdp)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Sysgo Real-Time Solutions GmbH")
 
 MODULE_DESCRIPTION ("MTD map driver for AMD SC520 Customer Development Platform")
 

Macro Definition Documentation

#define NUM_FLASH_BANKS   ARRAY_SIZE(sc520cdp_map)

Definition at line 107 of file sc520cdp.c.

#define NUM_SC520_PAR   16 /* total number of PAR registers */

Definition at line 122 of file sc520cdp.c.

#define REPROGRAM_PAR

Definition at line 57 of file sc520cdp.c.

#define SC520_MMCR_BASE   0xFFFEF000

Definition at line 119 of file sc520cdp.c.

#define SC520_MMCR_EXTENT   0x1000

Definition at line 120 of file sc520cdp.c.

#define SC520_PAR (   x)    ((0x88/sizeof(unsigned long)) + (x))

Definition at line 121 of file sc520cdp.c.

#define SC520_PAR_BOOTCS   (0x4<<29)

Definition at line 129 of file sc520cdp.c.

#define SC520_PAR_ENTRY (   trgdev,
  address,
  size 
)
Value:
(address) >> 16 | (((size) >> 16) - 1) << 14)

Definition at line 153 of file sc520cdp.c.

#define SC520_PAR_NOCACHE   (1<<27) /* non-cacheable */

Definition at line 139 of file sc520cdp.c.

#define SC520_PAR_NOEXEC   (1<<28) /* code execution denied */

Definition at line 140 of file sc520cdp.c.

#define SC520_PAR_PG_SIZ4   (0<<25)

Definition at line 146 of file sc520cdp.c.

#define SC520_PAR_PG_SIZ64   (1<<25)

Definition at line 147 of file sc520cdp.c.

#define SC520_PAR_ROMCS0   (0x5<<29)

Definition at line 130 of file sc520cdp.c.

#define SC520_PAR_ROMCS1   (0x6<<29)

Definition at line 131 of file sc520cdp.c.

#define SC520_PAR_TRGDEV   (0x7<<29)

Definition at line 132 of file sc520cdp.c.

#define SC520_PAR_WRPROT   (1<<26) /* write protected */

Definition at line 138 of file sc520cdp.c.

#define WINDOW_ADDR_0   0x08800000

Definition at line 64 of file sc520cdp.c.

#define WINDOW_ADDR_0_BIOS   0x08400000

Definition at line 69 of file sc520cdp.c.

#define WINDOW_ADDR_1   0x09000000

Definition at line 65 of file sc520cdp.c.

#define WINDOW_ADDR_1_BIOS   0x08c00000

Definition at line 70 of file sc520cdp.c.

#define WINDOW_ADDR_2   0x09800000

Definition at line 66 of file sc520cdp.c.

#define WINDOW_ADDR_2_BIOS   0x09400000

Definition at line 71 of file sc520cdp.c.

#define WINDOW_SIZE_0   0x00800000

Definition at line 81 of file sc520cdp.c.

#define WINDOW_SIZE_1   0x00800000

Definition at line 82 of file sc520cdp.c.

#define WINDOW_SIZE_2   0x00080000

Definition at line 83 of file sc520cdp.c.

Function Documentation

MODULE_AUTHOR ( "Sysgo Real-Time Solutions GmbH"  )
MODULE_DESCRIPTION ( "MTD map driver for AMD SC520 Customer Development Platform"  )
module_exit ( cleanup_sc520cdp  )
module_init ( init_sc520cdp  )
MODULE_LICENSE ( "GPL"  )