Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
nettel.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/map.h>
#include <linux/mtd/partitions.h>
#include <linux/mtd/cfi.h>
#include <linux/reboot.h>
#include <linux/err.h>
#include <linux/kdev_t.h>
#include <linux/root_dev.h>
#include <asm/io.h>

Go to the source code of this file.

Macros

#define INTEL_BUSWIDTH   1
 
#define AMD_WINDOW_MAXSIZE   0x00200000
 
#define AMD_BUSWIDTH   1
 
#define SC520_PAR_ADDR_MASK   0x00003fff
 
#define SC520_PAR_ADDR_SHIFT   16
 
#define SC520_PAR_TO_ADDR(par)   (((par)&SC520_PAR_ADDR_MASK) << SC520_PAR_ADDR_SHIFT)
 
#define SC520_PAR_SIZE_MASK   0x01ffc000
 
#define SC520_PAR_SIZE_SHIFT   2
 
#define SC520_PAR_TO_SIZE(par)   ((((par)&SC520_PAR_SIZE_MASK) << SC520_PAR_SIZE_SHIFT) + (64*1024))
 
#define SC520_PAR(cs, addr, size)
 
#define SC520_PAR_BOOTCS   0x8a000000
 
#define SC520_PAR_ROMCS1   0xaa000000
 
#define SC520_PAR_ROMCS2   0xca000000 /* Cache disabled, 64K page */
 
#define NUM_AMD_PARTITIONS   ARRAY_SIZE(nettel_amd_partitions)
 

Functions

 module_init (nettel_init)
 
 module_exit (nettel_cleanup)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Greg Ungerer <[email protected]>")
 
 MODULE_DESCRIPTION ("SnapGear/SecureEdge FLASH support")
 

Macro Definition Documentation

#define AMD_BUSWIDTH   1

Definition at line 30 of file nettel.c.

#define AMD_WINDOW_MAXSIZE   0x00200000

Definition at line 29 of file nettel.c.

#define INTEL_BUSWIDTH   1

Definition at line 28 of file nettel.c.

#define NUM_AMD_PARTITIONS   ARRAY_SIZE(nettel_amd_partitions)

Definition at line 132 of file nettel.c.

#define SC520_PAR (   cs,
  addr,
  size 
)
Value:

Definition at line 45 of file nettel.c.

#define SC520_PAR_ADDR_MASK   0x00003fff

Definition at line 35 of file nettel.c.

#define SC520_PAR_ADDR_SHIFT   16

Definition at line 36 of file nettel.c.

#define SC520_PAR_BOOTCS   0x8a000000

Definition at line 50 of file nettel.c.

#define SC520_PAR_ROMCS1   0xaa000000

Definition at line 51 of file nettel.c.

#define SC520_PAR_ROMCS2   0xca000000 /* Cache disabled, 64K page */

Definition at line 52 of file nettel.c.

#define SC520_PAR_SIZE_MASK   0x01ffc000

Definition at line 40 of file nettel.c.

#define SC520_PAR_SIZE_SHIFT   2

Definition at line 41 of file nettel.c.

#define SC520_PAR_TO_ADDR (   par)    (((par)&SC520_PAR_ADDR_MASK) << SC520_PAR_ADDR_SHIFT)

Definition at line 37 of file nettel.c.

#define SC520_PAR_TO_SIZE (   par)    ((((par)&SC520_PAR_SIZE_MASK) << SC520_PAR_SIZE_SHIFT) + (64*1024))

Definition at line 42 of file nettel.c.

Function Documentation

MODULE_AUTHOR ( "Greg Ungerer <[email protected]>"  )
MODULE_DESCRIPTION ( "SnapGear/SecureEdge FLASH support )
module_exit ( nettel_cleanup  )
module_init ( nettel_init  )
MODULE_LICENSE ( "GPL"  )