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

Go to the source code of this file.

Macros

#define ORION5X_REGS_PHYS_BASE   0xf1000000
 
#define ORION5X_REGS_VIRT_BASE   IOMEM(0xfe000000)
 
#define ORION5X_REGS_SIZE   SZ_1M
 
#define ORION5X_PCIE_IO_PHYS_BASE   0xf2000000
 
#define ORION5X_PCIE_IO_BUS_BASE   0x00000000
 
#define ORION5X_PCIE_IO_SIZE   SZ_64K
 
#define ORION5X_PCI_IO_PHYS_BASE   0xf2100000
 
#define ORION5X_PCI_IO_BUS_BASE   0x00010000
 
#define ORION5X_PCI_IO_SIZE   SZ_64K
 
#define ORION5X_SRAM_PHYS_BASE   (0xf2200000)
 
#define ORION5X_SRAM_SIZE   SZ_8K
 
#define ORION5X_PCIE_WA_PHYS_BASE   0xf0000000
 
#define ORION5X_PCIE_WA_VIRT_BASE   IOMEM(0xfd000000)
 
#define ORION5X_PCIE_WA_SIZE   SZ_16M
 
#define ORION5X_PCIE_MEM_PHYS_BASE   0xe0000000
 
#define ORION5X_PCIE_MEM_SIZE   SZ_128M
 
#define ORION5X_PCI_MEM_PHYS_BASE   0xe8000000
 
#define ORION5X_PCI_MEM_SIZE   SZ_128M
 
#define ORION5X_DDR_VIRT_BASE   (ORION5X_REGS_VIRT_BASE + 0x00000)
 
#define ORION5X_DDR_WINDOW_CPU_BASE   (ORION5X_DDR_VIRT_BASE + 0x1500)
 
#define ORION5X_DEV_BUS_PHYS_BASE   (ORION5X_REGS_PHYS_BASE + 0x10000)
 
#define ORION5X_DEV_BUS_VIRT_BASE   (ORION5X_REGS_VIRT_BASE + 0x10000)
 
#define ORION5X_DEV_BUS_REG(x)   (ORION5X_DEV_BUS_VIRT_BASE + (x))
 
#define GPIO_VIRT_BASE   ORION5X_DEV_BUS_REG(0x0100)
 
#define SPI_PHYS_BASE   (ORION5X_DEV_BUS_PHYS_BASE + 0x0600)
 
#define I2C_PHYS_BASE   (ORION5X_DEV_BUS_PHYS_BASE + 0x1000)
 
#define UART0_PHYS_BASE   (ORION5X_DEV_BUS_PHYS_BASE + 0x2000)
 
#define UART0_VIRT_BASE   (ORION5X_DEV_BUS_VIRT_BASE + 0x2000)
 
#define UART1_PHYS_BASE   (ORION5X_DEV_BUS_PHYS_BASE + 0x2100)
 
#define UART1_VIRT_BASE   (ORION5X_DEV_BUS_VIRT_BASE + 0x2100)
 
#define ORION5X_BRIDGE_VIRT_BASE   (ORION5X_REGS_VIRT_BASE + 0x20000)
 
#define ORION5X_BRIDGE_PHYS_BASE   (ORION5X_REGS_PHYS_BASE + 0x20000)
 
#define ORION5X_PCI_VIRT_BASE   (ORION5X_REGS_VIRT_BASE + 0x30000)
 
#define ORION5X_PCIE_VIRT_BASE   (ORION5X_REGS_VIRT_BASE + 0x40000)
 
#define ORION5X_USB0_PHYS_BASE   (ORION5X_REGS_PHYS_BASE + 0x50000)
 
#define ORION5X_USB0_VIRT_BASE   (ORION5X_REGS_VIRT_BASE + 0x50000)
 
#define ORION5X_XOR_PHYS_BASE   (ORION5X_REGS_PHYS_BASE + 0x60900)
 
#define ORION5X_XOR_VIRT_BASE   (ORION5X_REGS_VIRT_BASE + 0x60900)
 
#define ORION5X_ETH_PHYS_BASE   (ORION5X_REGS_PHYS_BASE + 0x70000)
 
#define ORION5X_ETH_VIRT_BASE   (ORION5X_REGS_VIRT_BASE + 0x70000)
 
#define ORION5X_SATA_PHYS_BASE   (ORION5X_REGS_PHYS_BASE + 0x80000)
 
#define ORION5X_SATA_VIRT_BASE   (ORION5X_REGS_VIRT_BASE + 0x80000)
 
#define ORION5X_CRYPTO_PHYS_BASE   (ORION5X_REGS_PHYS_BASE + 0x90000)
 
#define ORION5X_USB1_PHYS_BASE   (ORION5X_REGS_PHYS_BASE + 0xa0000)
 
#define ORION5X_USB1_VIRT_BASE   (ORION5X_REGS_VIRT_BASE + 0xa0000)
 
#define MPP_0_7_CTRL   ORION5X_DEV_BUS_REG(0x000)
 
#define MPP_8_15_CTRL   ORION5X_DEV_BUS_REG(0x004)
 
#define MPP_16_19_CTRL   ORION5X_DEV_BUS_REG(0x050)
 
#define MPP_DEV_CTRL   ORION5X_DEV_BUS_REG(0x008)
 
#define MPP_RESET_SAMPLE   ORION5X_DEV_BUS_REG(0x010)
 
#define DEV_BANK_0_PARAM   ORION5X_DEV_BUS_REG(0x45c)
 
#define DEV_BANK_1_PARAM   ORION5X_DEV_BUS_REG(0x460)
 
#define DEV_BANK_2_PARAM   ORION5X_DEV_BUS_REG(0x464)
 
#define DEV_BANK_BOOT_PARAM   ORION5X_DEV_BUS_REG(0x46c)
 
#define DEV_BUS_CTRL   ORION5X_DEV_BUS_REG(0x4c0)
 
#define DEV_BUS_INT_CAUSE   ORION5X_DEV_BUS_REG(0x4d0)
 
#define DEV_BUS_INT_MASK   ORION5X_DEV_BUS_REG(0x4d4)
 
#define MV88F5181_DEV_ID   0x5181
 
#define MV88F5181_REV_B1   3
 
#define MV88F5181L_REV_A0   8
 
#define MV88F5181L_REV_A1   9
 
#define MV88F5182_DEV_ID   0x5182
 
#define MV88F5182_REV_A2   2
 
#define MV88F5281_DEV_ID   0x5281
 
#define MV88F5281_REV_D0   4
 
#define MV88F5281_REV_D1   5
 
#define MV88F5281_REV_D2   6
 
#define MV88F6183_DEV_ID   0x6183
 
#define MV88F6183_REV_B0   3
 

Macro Definition Documentation

#define DEV_BANK_0_PARAM   ORION5X_DEV_BUS_REG(0x45c)

Definition at line 114 of file orion5x.h.

#define DEV_BANK_1_PARAM   ORION5X_DEV_BUS_REG(0x460)

Definition at line 115 of file orion5x.h.

#define DEV_BANK_2_PARAM   ORION5X_DEV_BUS_REG(0x464)

Definition at line 116 of file orion5x.h.

#define DEV_BANK_BOOT_PARAM   ORION5X_DEV_BUS_REG(0x46c)

Definition at line 117 of file orion5x.h.

#define DEV_BUS_CTRL   ORION5X_DEV_BUS_REG(0x4c0)

Definition at line 118 of file orion5x.h.

#define DEV_BUS_INT_CAUSE   ORION5X_DEV_BUS_REG(0x4d0)

Definition at line 119 of file orion5x.h.

#define DEV_BUS_INT_MASK   ORION5X_DEV_BUS_REG(0x4d4)

Definition at line 120 of file orion5x.h.

#define GPIO_VIRT_BASE   ORION5X_DEV_BUS_REG(0x0100)

Definition at line 74 of file orion5x.h.

#define I2C_PHYS_BASE   (ORION5X_DEV_BUS_PHYS_BASE + 0x1000)

Definition at line 76 of file orion5x.h.

#define MPP_0_7_CTRL   ORION5X_DEV_BUS_REG(0x000)

Definition at line 109 of file orion5x.h.

#define MPP_16_19_CTRL   ORION5X_DEV_BUS_REG(0x050)

Definition at line 111 of file orion5x.h.

#define MPP_8_15_CTRL   ORION5X_DEV_BUS_REG(0x004)

Definition at line 110 of file orion5x.h.

#define MPP_DEV_CTRL   ORION5X_DEV_BUS_REG(0x008)

Definition at line 112 of file orion5x.h.

#define MPP_RESET_SAMPLE   ORION5X_DEV_BUS_REG(0x010)

Definition at line 113 of file orion5x.h.

#define MV88F5181_DEV_ID   0x5181

Definition at line 126 of file orion5x.h.

#define MV88F5181_REV_B1   3

Definition at line 127 of file orion5x.h.

#define MV88F5181L_REV_A0   8

Definition at line 128 of file orion5x.h.

#define MV88F5181L_REV_A1   9

Definition at line 129 of file orion5x.h.

#define MV88F5182_DEV_ID   0x5182

Definition at line 131 of file orion5x.h.

#define MV88F5182_REV_A2   2

Definition at line 132 of file orion5x.h.

#define MV88F5281_DEV_ID   0x5281

Definition at line 134 of file orion5x.h.

#define MV88F5281_REV_D0   4

Definition at line 135 of file orion5x.h.

#define MV88F5281_REV_D1   5

Definition at line 136 of file orion5x.h.

#define MV88F5281_REV_D2   6

Definition at line 137 of file orion5x.h.

#define MV88F6183_DEV_ID   0x6183

Definition at line 139 of file orion5x.h.

#define MV88F6183_REV_B0   3

Definition at line 140 of file orion5x.h.

#define ORION5X_BRIDGE_PHYS_BASE   (ORION5X_REGS_PHYS_BASE + 0x20000)

Definition at line 83 of file orion5x.h.

#define ORION5X_BRIDGE_VIRT_BASE   (ORION5X_REGS_VIRT_BASE + 0x20000)

Definition at line 82 of file orion5x.h.

#define ORION5X_CRYPTO_PHYS_BASE   (ORION5X_REGS_PHYS_BASE + 0x90000)

Definition at line 101 of file orion5x.h.

#define ORION5X_DDR_VIRT_BASE   (ORION5X_REGS_VIRT_BASE + 0x00000)

Definition at line 69 of file orion5x.h.

#define ORION5X_DDR_WINDOW_CPU_BASE   (ORION5X_DDR_VIRT_BASE + 0x1500)

Definition at line 70 of file orion5x.h.

#define ORION5X_DEV_BUS_PHYS_BASE   (ORION5X_REGS_PHYS_BASE + 0x10000)

Definition at line 71 of file orion5x.h.

#define ORION5X_DEV_BUS_REG (   x)    (ORION5X_DEV_BUS_VIRT_BASE + (x))

Definition at line 73 of file orion5x.h.

#define ORION5X_DEV_BUS_VIRT_BASE   (ORION5X_REGS_VIRT_BASE + 0x10000)

Definition at line 72 of file orion5x.h.

#define ORION5X_ETH_PHYS_BASE   (ORION5X_REGS_PHYS_BASE + 0x70000)

Definition at line 95 of file orion5x.h.

#define ORION5X_ETH_VIRT_BASE   (ORION5X_REGS_VIRT_BASE + 0x70000)

Definition at line 96 of file orion5x.h.

#define ORION5X_PCI_IO_BUS_BASE   0x00010000

Definition at line 48 of file orion5x.h.

#define ORION5X_PCI_IO_PHYS_BASE   0xf2100000

Definition at line 47 of file orion5x.h.

#define ORION5X_PCI_IO_SIZE   SZ_64K

Definition at line 49 of file orion5x.h.

#define ORION5X_PCI_MEM_PHYS_BASE   0xe8000000

Definition at line 62 of file orion5x.h.

#define ORION5X_PCI_MEM_SIZE   SZ_128M

Definition at line 63 of file orion5x.h.

#define ORION5X_PCI_VIRT_BASE   (ORION5X_REGS_VIRT_BASE + 0x30000)

Definition at line 85 of file orion5x.h.

#define ORION5X_PCIE_IO_BUS_BASE   0x00000000

Definition at line 44 of file orion5x.h.

#define ORION5X_PCIE_IO_PHYS_BASE   0xf2000000

Definition at line 43 of file orion5x.h.

#define ORION5X_PCIE_IO_SIZE   SZ_64K

Definition at line 45 of file orion5x.h.

#define ORION5X_PCIE_MEM_PHYS_BASE   0xe0000000

Definition at line 59 of file orion5x.h.

#define ORION5X_PCIE_MEM_SIZE   SZ_128M

Definition at line 60 of file orion5x.h.

#define ORION5X_PCIE_VIRT_BASE   (ORION5X_REGS_VIRT_BASE + 0x40000)

Definition at line 87 of file orion5x.h.

#define ORION5X_PCIE_WA_PHYS_BASE   0xf0000000

Definition at line 55 of file orion5x.h.

#define ORION5X_PCIE_WA_SIZE   SZ_16M

Definition at line 57 of file orion5x.h.

#define ORION5X_PCIE_WA_VIRT_BASE   IOMEM(0xfd000000)

Definition at line 56 of file orion5x.h.

#define ORION5X_REGS_PHYS_BASE   0xf1000000

Definition at line 39 of file orion5x.h.

#define ORION5X_REGS_SIZE   SZ_1M

Definition at line 41 of file orion5x.h.

#define ORION5X_REGS_VIRT_BASE   IOMEM(0xfe000000)

Definition at line 40 of file orion5x.h.

#define ORION5X_SATA_PHYS_BASE   (ORION5X_REGS_PHYS_BASE + 0x80000)

Definition at line 98 of file orion5x.h.

#define ORION5X_SATA_VIRT_BASE   (ORION5X_REGS_VIRT_BASE + 0x80000)

Definition at line 99 of file orion5x.h.

#define ORION5X_SRAM_PHYS_BASE   (0xf2200000)

Definition at line 51 of file orion5x.h.

#define ORION5X_SRAM_SIZE   SZ_8K

Definition at line 52 of file orion5x.h.

#define ORION5X_USB0_PHYS_BASE   (ORION5X_REGS_PHYS_BASE + 0x50000)

Definition at line 89 of file orion5x.h.

#define ORION5X_USB0_VIRT_BASE   (ORION5X_REGS_VIRT_BASE + 0x50000)

Definition at line 90 of file orion5x.h.

#define ORION5X_USB1_PHYS_BASE   (ORION5X_REGS_PHYS_BASE + 0xa0000)

Definition at line 103 of file orion5x.h.

#define ORION5X_USB1_VIRT_BASE   (ORION5X_REGS_VIRT_BASE + 0xa0000)

Definition at line 104 of file orion5x.h.

#define ORION5X_XOR_PHYS_BASE   (ORION5X_REGS_PHYS_BASE + 0x60900)

Definition at line 92 of file orion5x.h.

#define ORION5X_XOR_VIRT_BASE   (ORION5X_REGS_VIRT_BASE + 0x60900)

Definition at line 93 of file orion5x.h.

#define SPI_PHYS_BASE   (ORION5X_DEV_BUS_PHYS_BASE + 0x0600)

Definition at line 75 of file orion5x.h.

#define UART0_PHYS_BASE   (ORION5X_DEV_BUS_PHYS_BASE + 0x2000)

Definition at line 77 of file orion5x.h.

#define UART0_VIRT_BASE   (ORION5X_DEV_BUS_VIRT_BASE + 0x2000)

Definition at line 78 of file orion5x.h.

#define UART1_PHYS_BASE   (ORION5X_DEV_BUS_PHYS_BASE + 0x2100)

Definition at line 79 of file orion5x.h.

#define UART1_VIRT_BASE   (ORION5X_DEV_BUS_VIRT_BASE + 0x2100)

Definition at line 80 of file orion5x.h.