Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
pegasos_eth.c File Reference
#include <linux/types.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/device.h>
#include <linux/platform_device.h>
#include <linux/mv643xx.h>
#include <linux/pci.h>

Go to the source code of this file.

Macros

#define PEGASOS2_MARVELL_REGBASE   (0xf1000000)
 
#define PEGASOS2_MARVELL_REGSIZE   (0x00004000)
 
#define PEGASOS2_SRAM_BASE   (0xf2000000)
 
#define PEGASOS2_SRAM_SIZE   (256*1024)
 
#define PEGASOS2_SRAM_BASE_ETH_PORT0   (PEGASOS2_SRAM_BASE)
 
#define PEGASOS2_SRAM_BASE_ETH_PORT1   (PEGASOS2_SRAM_BASE_ETH_PORT0 + (PEGASOS2_SRAM_SIZE / 2) )
 
#define PEGASOS2_SRAM_RXRING_SIZE   (PEGASOS2_SRAM_SIZE/4)
 
#define PEGASOS2_SRAM_TXRING_SIZE   (PEGASOS2_SRAM_SIZE/4)
 
#define MV_READ(offset, val)   { val = readl(mv643xx_reg_base + offset); }
 
#define MV_WRITE(offset, data)   writel(data, mv643xx_reg_base + offset)
 

Functions

 device_initcall (mv643xx_eth_add_pds)
 

Macro Definition Documentation

#define MV_READ (   offset,
  val 
)    { val = readl(mv643xx_reg_base + offset); }

Definition at line 90 of file pegasos_eth.c.

#define MV_WRITE (   offset,
  data 
)    writel(data, mv643xx_reg_base + offset)

Definition at line 91 of file pegasos_eth.c.

#define PEGASOS2_MARVELL_REGBASE   (0xf1000000)

Definition at line 19 of file pegasos_eth.c.

#define PEGASOS2_MARVELL_REGSIZE   (0x00004000)

Definition at line 20 of file pegasos_eth.c.

#define PEGASOS2_SRAM_BASE   (0xf2000000)

Definition at line 21 of file pegasos_eth.c.

#define PEGASOS2_SRAM_BASE_ETH_PORT0   (PEGASOS2_SRAM_BASE)

Definition at line 24 of file pegasos_eth.c.

#define PEGASOS2_SRAM_BASE_ETH_PORT1   (PEGASOS2_SRAM_BASE_ETH_PORT0 + (PEGASOS2_SRAM_SIZE / 2) )

Definition at line 25 of file pegasos_eth.c.

#define PEGASOS2_SRAM_RXRING_SIZE   (PEGASOS2_SRAM_SIZE/4)

Definition at line 28 of file pegasos_eth.c.

#define PEGASOS2_SRAM_SIZE   (256*1024)

Definition at line 22 of file pegasos_eth.c.

#define PEGASOS2_SRAM_TXRING_SIZE   (PEGASOS2_SRAM_SIZE/4)

Definition at line 29 of file pegasos_eth.c.

Function Documentation

device_initcall ( mv643xx_eth_add_pds  )