Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
platform.h File Reference
#include <asm/types.h>

Go to the source code of this file.

Data Structures

struct  ixp4xx_pata_data
 
struct  eth_plat_info
 
struct  hss_plat_info
 

Macros

#define REG_OFFSET   0
 
#define IXP4XX_EXP_BUS_BASE_PHYS   (0x50000000)
 
#define IXP4XX_EXP_BUS_BASE(region)   (IXP4XX_EXP_BUS_BASE_PHYS + ((region) * ixp4xx_exp_bus_size))
 
#define IXP4XX_EXP_BUS_END(region)   (IXP4XX_EXP_BUS_BASE(region) + ixp4xx_exp_bus_size - 1)
 
#define IXP4XX_EXP_BUS_RECOVERY_T(x)   (((x) & 0x0f) << 16)
 
#define IXP4XX_EXP_BUS_HOLD_T(x)   (((x) & 0x03) << 20)
 
#define IXP4XX_EXP_BUS_STROBE_T(x)   (((x) & 0x0f) << 22)
 
#define IXP4XX_EXP_BUS_SETUP_T(x)   (((x) & 0x03) << 26)
 
#define IXP4XX_EXP_BUS_ADDR_T(x)   (((x) & 0x03) << 28)
 
#define IXP4XX_EXP_BUS_SIZE(x)   (((x) & 0x0f) << 10)
 
#define IXP4XX_EXP_BUS_CYCLES(x)   (((x) & 0x03) << 14)
 
#define IXP4XX_EXP_BUS_CS_EN   (1L << 31)
 
#define IXP4XX_EXP_BUS_BYTE_RD16   (1L << 6)
 
#define IXP4XX_EXP_BUS_HRDY_POL   (1L << 5)
 
#define IXP4XX_EXP_BUS_MUX_EN   (1L << 4)
 
#define IXP4XX_EXP_BUS_SPLT_EN   (1L << 3)
 
#define IXP4XX_EXP_BUS_WR_EN   (1L << 1)
 
#define IXP4XX_EXP_BUS_BYTE_EN   (1L << 0)
 
#define IXP4XX_EXP_BUS_CYCLES_INTEL   0x00
 
#define IXP4XX_EXP_BUS_CYCLES_MOTOROLA   0x01
 
#define IXP4XX_EXP_BUS_CYCLES_HPI   0x02
 
#define IXP4XX_FLASH_WRITABLE   (0x2)
 
#define IXP4XX_FLASH_DEFAULT   (0xbcd23c40)
 
#define IXP4XX_FLASH_WRITE   (0xbcd23c42)
 
#define IXP4XX_PERIPHERAL_BUS_CLOCK   (66) /* 66Mhzi APB BUS */
 
#define IXP4XX_UART_XTAL   14745600
 
#define IXP4XX_ETH_NPEA   0x00
 
#define IXP4XX_ETH_NPEB   0x10
 
#define IXP4XX_ETH_NPEC   0x20
 
#define IXP4XX_GPIO_OUT   0x1
 
#define IXP4XX_GPIO_IN   0x2
 
#define IXP4XX_GPIO_LOW   0
 
#define IXP4XX_GPIO_HIGH   1
 
#define IXP4XX_GPIO_CLK_0   14
 
#define IXP4XX_GPIO_CLK_1   15
 

Functions

void ixp4xx_map_io (void)
 
void ixp4xx_init_early (void)
 
void ixp4xx_init_irq (void)
 
void ixp4xx_sys_init (void)
 
void ixp4xx_timer_init (void)
 
void ixp4xx_restart (char, const char *)
 
void ixp4xx_pci_preinit (void)
 
int ixp4xx_setup (int nr, struct pci_sys_data *sys)
 

Variables

unsigned long ixp4xx_exp_bus_size
 
unsigned long ixp4xx_timer_freq
 
struct sys_timer ixp4xx_timer
 
struct pci_ops ixp4xx_ops
 

Macro Definition Documentation

#define IXP4XX_ETH_NPEA   0x00

Definition at line 94 of file platform.h.

#define IXP4XX_ETH_NPEB   0x10

Definition at line 95 of file platform.h.

#define IXP4XX_ETH_NPEC   0x20

Definition at line 96 of file platform.h.

#define IXP4XX_EXP_BUS_ADDR_T (   x)    (((x) & 0x03) << 28)

Definition at line 52 of file platform.h.

#define IXP4XX_EXP_BUS_BASE (   region)    (IXP4XX_EXP_BUS_BASE_PHYS + ((region) * ixp4xx_exp_bus_size))

Definition at line 38 of file platform.h.

#define IXP4XX_EXP_BUS_BASE_PHYS   (0x50000000)

Definition at line 27 of file platform.h.

#define IXP4XX_EXP_BUS_BYTE_EN   (1L << 0)

Definition at line 62 of file platform.h.

#define IXP4XX_EXP_BUS_BYTE_RD16   (1L << 6)

Definition at line 57 of file platform.h.

#define IXP4XX_EXP_BUS_CS_EN   (1L << 31)

Definition at line 56 of file platform.h.

#define IXP4XX_EXP_BUS_CYCLES (   x)    (((x) & 0x03) << 14)

Definition at line 54 of file platform.h.

#define IXP4XX_EXP_BUS_CYCLES_HPI   0x02

Definition at line 66 of file platform.h.

#define IXP4XX_EXP_BUS_CYCLES_INTEL   0x00

Definition at line 64 of file platform.h.

#define IXP4XX_EXP_BUS_CYCLES_MOTOROLA   0x01

Definition at line 65 of file platform.h.

#define IXP4XX_EXP_BUS_END (   region)    (IXP4XX_EXP_BUS_BASE(region) + ixp4xx_exp_bus_size - 1)

Definition at line 41 of file platform.h.

#define IXP4XX_EXP_BUS_HOLD_T (   x)    (((x) & 0x03) << 20)

Definition at line 49 of file platform.h.

#define IXP4XX_EXP_BUS_HRDY_POL   (1L << 5)

Definition at line 58 of file platform.h.

#define IXP4XX_EXP_BUS_MUX_EN   (1L << 4)

Definition at line 59 of file platform.h.

#define IXP4XX_EXP_BUS_RECOVERY_T (   x)    (((x) & 0x0f) << 16)

Definition at line 48 of file platform.h.

#define IXP4XX_EXP_BUS_SETUP_T (   x)    (((x) & 0x03) << 26)

Definition at line 51 of file platform.h.

#define IXP4XX_EXP_BUS_SIZE (   x)    (((x) & 0x0f) << 10)

Definition at line 53 of file platform.h.

#define IXP4XX_EXP_BUS_SPLT_EN   (1L << 3)

Definition at line 60 of file platform.h.

#define IXP4XX_EXP_BUS_STROBE_T (   x)    (((x) & 0x0f) << 22)

Definition at line 50 of file platform.h.

#define IXP4XX_EXP_BUS_WR_EN   (1L << 1)

Definition at line 61 of file platform.h.

#define IXP4XX_FLASH_DEFAULT   (0xbcd23c40)

Definition at line 69 of file platform.h.

#define IXP4XX_FLASH_WRITABLE   (0x2)

Definition at line 68 of file platform.h.

#define IXP4XX_FLASH_WRITE   (0xbcd23c42)

Definition at line 70 of file platform.h.

#define IXP4XX_GPIO_CLK_0   14

Definition at line 150 of file platform.h.

#define IXP4XX_GPIO_CLK_1   15

Definition at line 151 of file platform.h.

#define IXP4XX_GPIO_HIGH   1

Definition at line 147 of file platform.h.

#define IXP4XX_GPIO_IN   0x2

Definition at line 143 of file platform.h.

#define IXP4XX_GPIO_LOW   0

Definition at line 146 of file platform.h.

#define IXP4XX_GPIO_OUT   0x1

Definition at line 142 of file platform.h.

#define IXP4XX_PERIPHERAL_BUS_CLOCK   (66) /* 66Mhzi APB BUS */

Definition at line 75 of file platform.h.

#define IXP4XX_UART_XTAL   14745600

Definition at line 76 of file platform.h.

#define REG_OFFSET   0

Definition at line 19 of file platform.h.

Function Documentation

void ixp4xx_init_early ( void  )

Definition at line 593 of file common.c.

void ixp4xx_init_irq ( void  )

Definition at line 234 of file common.c.

void ixp4xx_map_io ( void  )

Definition at line 78 of file common.c.

void ixp4xx_pci_preinit ( void  )

Definition at line 345 of file common-pci.c.

void ixp4xx_restart ( char  ,
const char  
)

Definition at line 544 of file common.c.

int ixp4xx_setup ( int  nr,
struct pci_sys_data sys 
)

Definition at line 444 of file common-pci.c.

void ixp4xx_sys_init ( void  )

Definition at line 425 of file common.c.

void ixp4xx_timer_init ( void  )

Definition at line 292 of file common.c.

Variable Documentation

unsigned long ixp4xx_exp_bus_size

Definition at line 380 of file common.c.

struct pci_ops ixp4xx_ops

Definition at line 286 of file common-pci.c.

struct sys_timer ixp4xx_timer

Definition at line 310 of file common.c.

unsigned long ixp4xx_timer_freq

Definition at line 468 of file common.c.