Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
viper.h File Reference

Go to the source code of this file.

Macros

#define VIPER_BOOT_PHYS   PXA_CS0_PHYS
 
#define VIPER_FLASH_PHYS   PXA_CS1_PHYS
 
#define VIPER_ETH_PHYS   PXA_CS2_PHYS
 
#define VIPER_USB_PHYS   PXA_CS3_PHYS
 
#define VIPER_ETH_DATA_PHYS   PXA_CS4_PHYS
 
#define VIPER_CPLD_PHYS   PXA_CS5_PHYS
 
#define VIPER_CPLD_BASE   (0xf0000000)
 
#define VIPER_PC104IO_BASE   (0xf1000000)
 
#define VIPER_USB_BASE   (0xf1800000)
 
#define VIPER_ETH_GPIO   (0)
 
#define VIPER_CPLD_GPIO   (1)
 
#define VIPER_USB_GPIO   (2)
 
#define VIPER_UARTA_GPIO   (4)
 
#define VIPER_UARTB_GPIO   (3)
 
#define VIPER_CF_CD_GPIO   (32)
 
#define VIPER_CF_RDY_GPIO   (8)
 
#define VIPER_BCKLIGHT_EN_GPIO   (9)
 
#define VIPER_LCD_EN_GPIO   (10)
 
#define VIPER_PSU_DATA_GPIO   (6)
 
#define VIPER_PSU_CLK_GPIO   (11)
 
#define VIPER_UART_SHDN_GPIO   (12)
 
#define VIPER_BRIGHTNESS_GPIO   (16)
 
#define VIPER_PSU_nCS_LD_GPIO   (19)
 
#define VIPER_UPS_GPIO   (20)
 
#define VIPER_CF_POWER_GPIO   (82)
 
#define VIPER_TPM_I2C_SDA_GPIO   (26)
 
#define VIPER_TPM_I2C_SCL_GPIO   (27)
 
#define VIPER_RTC_I2C_SDA_GPIO   (83)
 
#define VIPER_RTC_I2C_SCL_GPIO   (84)
 
#define VIPER_CPLD_P2V(x)   ((x) - VIPER_CPLD_PHYS + VIPER_CPLD_BASE)
 
#define VIPER_CPLD_V2P(x)   ((x) - VIPER_CPLD_BASE + VIPER_CPLD_PHYS)
 
#define __VIPER_CPLD_REG(x)   (*((volatile u16 *)VIPER_CPLD_P2V(x)))
 
#define _VIPER_LO_IRQ_STATUS   (VIPER_CPLD_PHYS + 0x100000)
 
#define _VIPER_ICR_PHYS   (VIPER_CPLD_PHYS + 0x100002)
 
#define _VIPER_HI_IRQ_STATUS   (VIPER_CPLD_PHYS + 0x100004)
 
#define _VIPER_VERSION_PHYS   (VIPER_CPLD_PHYS + 0x100006)
 
#define VIPER_UARTA_PHYS   (VIPER_CPLD_PHYS + 0x300010)
 
#define VIPER_UARTB_PHYS   (VIPER_CPLD_PHYS + 0x300000)
 
#define _VIPER_SRAM_BASE   (VIPER_CPLD_PHYS + 0x800000)
 
#define VIPER_LO_IRQ_STATUS   __VIPER_CPLD_REG(_VIPER_LO_IRQ_STATUS)
 
#define VIPER_HI_IRQ_STATUS   __VIPER_CPLD_REG(_VIPER_HI_IRQ_STATUS)
 
#define VIPER_VERSION   __VIPER_CPLD_REG(_VIPER_VERSION_PHYS)
 
#define VIPER_ICR   __VIPER_CPLD_REG(_VIPER_ICR_PHYS)
 
#define VIPER_CPLD_REVISION(x)   (((x) >> 5) & 0x7)
 
#define VIPER_BOARD_VERSION(x)   (((x) >> 3) & 0x3)
 
#define VIPER_BOARD_ISSUE(x)   (((x) >> 0) & 0x7)
 
#define VIPER_ICR_RETRIG   (1 << 0)
 
#define VIPER_ICR_AUTO_CLR   (1 << 1)
 
#define VIPER_ICR_R_DIS   (1 << 2)
 
#define VIPER_ICR_CF_RST   (1 << 3)
 

Macro Definition Documentation

#define __VIPER_CPLD_REG (   x)    (*((volatile u16 *)VIPER_CPLD_P2V(x)))

Definition at line 60 of file viper.h.

#define _VIPER_HI_IRQ_STATUS   (VIPER_CPLD_PHYS + 0x100004)

Definition at line 68 of file viper.h.

#define _VIPER_ICR_PHYS   (VIPER_CPLD_PHYS + 0x100002)

Definition at line 67 of file viper.h.

#define _VIPER_LO_IRQ_STATUS   (VIPER_CPLD_PHYS + 0x100000)

Definition at line 66 of file viper.h.

#define _VIPER_SRAM_BASE   (VIPER_CPLD_PHYS + 0x800000)

Definition at line 72 of file viper.h.

#define _VIPER_VERSION_PHYS   (VIPER_CPLD_PHYS + 0x100006)

Definition at line 69 of file viper.h.

#define VIPER_BCKLIGHT_EN_GPIO   (9)

Definition at line 42 of file viper.h.

#define VIPER_BOARD_ISSUE (   x)    (((x) >> 0) & 0x7)

Definition at line 83 of file viper.h.

#define VIPER_BOARD_VERSION (   x)    (((x) >> 3) & 0x3)

Definition at line 82 of file viper.h.

#define VIPER_BOOT_PHYS   PXA_CS0_PHYS

Definition at line 24 of file viper.h.

#define VIPER_BRIGHTNESS_GPIO   (16)

Definition at line 47 of file viper.h.

#define VIPER_CF_CD_GPIO   (32)

Definition at line 40 of file viper.h.

#define VIPER_CF_POWER_GPIO   (82)

Definition at line 50 of file viper.h.

#define VIPER_CF_RDY_GPIO   (8)

Definition at line 41 of file viper.h.

#define VIPER_CPLD_BASE   (0xf0000000)

Definition at line 31 of file viper.h.

#define VIPER_CPLD_GPIO   (1)

Definition at line 36 of file viper.h.

#define VIPER_CPLD_P2V (   x)    ((x) - VIPER_CPLD_PHYS + VIPER_CPLD_BASE)

Definition at line 56 of file viper.h.

#define VIPER_CPLD_PHYS   PXA_CS5_PHYS

Definition at line 29 of file viper.h.

#define VIPER_CPLD_REVISION (   x)    (((x) >> 5) & 0x7)

Definition at line 81 of file viper.h.

#define VIPER_CPLD_V2P (   x)    ((x) - VIPER_CPLD_BASE + VIPER_CPLD_PHYS)

Definition at line 57 of file viper.h.

#define VIPER_ETH_DATA_PHYS   PXA_CS4_PHYS

Definition at line 28 of file viper.h.

#define VIPER_ETH_GPIO   (0)

Definition at line 35 of file viper.h.

#define VIPER_ETH_PHYS   PXA_CS2_PHYS

Definition at line 26 of file viper.h.

#define VIPER_FLASH_PHYS   PXA_CS1_PHYS

Definition at line 25 of file viper.h.

#define VIPER_HI_IRQ_STATUS   __VIPER_CPLD_REG(_VIPER_HI_IRQ_STATUS)

Definition at line 76 of file viper.h.

#define VIPER_ICR   __VIPER_CPLD_REG(_VIPER_ICR_PHYS)

Definition at line 78 of file viper.h.

#define VIPER_ICR_AUTO_CLR   (1 << 1)

Definition at line 89 of file viper.h.

#define VIPER_ICR_CF_RST   (1 << 3)

Definition at line 91 of file viper.h.

#define VIPER_ICR_R_DIS   (1 << 2)

Definition at line 90 of file viper.h.

#define VIPER_ICR_RETRIG   (1 << 0)

Definition at line 88 of file viper.h.

#define VIPER_LCD_EN_GPIO   (10)

Definition at line 43 of file viper.h.

#define VIPER_LO_IRQ_STATUS   __VIPER_CPLD_REG(_VIPER_LO_IRQ_STATUS)

Definition at line 75 of file viper.h.

#define VIPER_PC104IO_BASE   (0xf1000000)

Definition at line 32 of file viper.h.

#define VIPER_PSU_CLK_GPIO   (11)

Definition at line 45 of file viper.h.

#define VIPER_PSU_DATA_GPIO   (6)

Definition at line 44 of file viper.h.

#define VIPER_PSU_nCS_LD_GPIO   (19)

Definition at line 48 of file viper.h.

#define VIPER_RTC_I2C_SCL_GPIO   (84)

Definition at line 54 of file viper.h.

#define VIPER_RTC_I2C_SDA_GPIO   (83)

Definition at line 53 of file viper.h.

#define VIPER_TPM_I2C_SCL_GPIO   (27)

Definition at line 52 of file viper.h.

#define VIPER_TPM_I2C_SDA_GPIO   (26)

Definition at line 51 of file viper.h.

#define VIPER_UART_SHDN_GPIO   (12)

Definition at line 46 of file viper.h.

#define VIPER_UARTA_GPIO   (4)

Definition at line 38 of file viper.h.

#define VIPER_UARTA_PHYS   (VIPER_CPLD_PHYS + 0x300010)

Definition at line 70 of file viper.h.

#define VIPER_UARTB_GPIO   (3)

Definition at line 39 of file viper.h.

#define VIPER_UARTB_PHYS   (VIPER_CPLD_PHYS + 0x300000)

Definition at line 71 of file viper.h.

#define VIPER_UPS_GPIO   (20)

Definition at line 49 of file viper.h.

#define VIPER_USB_BASE   (0xf1800000)

Definition at line 33 of file viper.h.

#define VIPER_USB_GPIO   (2)

Definition at line 37 of file viper.h.

#define VIPER_USB_PHYS   PXA_CS3_PHYS

Definition at line 27 of file viper.h.

#define VIPER_VERSION   __VIPER_CPLD_REG(_VIPER_VERSION_PHYS)

Definition at line 77 of file viper.h.