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

Go to the source code of this file.

Macros

#define NETX_OFS_SYSTEM   0x00000
 
#define NETX_OFS_MEMCR   0x00100
 
#define NETX_OFS_DPMAS   0x03000
 
#define NETX_OFS_GPIO   0x00800
 
#define NETX_OFS_PIO   0x00900
 
#define NETX_OFS_UART0   0x00a00
 
#define NETX_OFS_UART1   0x00a40
 
#define NETX_OFS_UART2   0x00a80
 
#define NETX_OF_MIIMU   0x00b00
 
#define NETX_OFS_SPI   0x00c00
 
#define NETX_OFS_I2C   0x00d00
 
#define NETX_OFS_SYSTIME   0x01100
 
#define NETX_OFS_RTC   0x01200
 
#define NETX_OFS_EXTBUS   0x03600
 
#define NETX_OFS_LCD   0x04000
 
#define NETX_OFS_USB   0x20000
 
#define NETX_OFS_XMAC0   0x60000
 
#define NETX_OFS_XMAC1   0x61000
 
#define NETX_OFS_XMAC2   0x62000
 
#define NETX_OFS_XMAC3   0x63000
 
#define NETX_OFS_XMAC(no)   (0x60000 + (no) * 0x1000)
 
#define NETX_OFS_PFIFO   0x64000
 
#define NETX_OFS_XPEC0   0x70000
 
#define NETX_OFS_XPEC1   0x74000
 
#define NETX_OFS_XPEC2   0x78000
 
#define NETX_OFS_XPEC3   0x7c000
 
#define NETX_OFS_XPEC(no)   (0x70000 + (no) * 0x4000)
 
#define NETX_OFS_VIC   0xff000
 
#define NETX_PA_SYSTEM   (NETX_IO_PHYS + NETX_OFS_SYSTEM)
 
#define NETX_PA_MEMCR   (NETX_IO_PHYS + NETX_OFS_MEMCR)
 
#define NETX_PA_DPMAS   (NETX_IO_PHYS + NETX_OFS_DPMAS)
 
#define NETX_PA_GPIO   (NETX_IO_PHYS + NETX_OFS_GPIO)
 
#define NETX_PA_PIO   (NETX_IO_PHYS + NETX_OFS_PIO)
 
#define NETX_PA_UART0   (NETX_IO_PHYS + NETX_OFS_UART0)
 
#define NETX_PA_UART1   (NETX_IO_PHYS + NETX_OFS_UART1)
 
#define NETX_PA_UART2   (NETX_IO_PHYS + NETX_OFS_UART2)
 
#define NETX_PA_MIIMU   (NETX_IO_PHYS + NETX_OF_MIIMU)
 
#define NETX_PA_SPI   (NETX_IO_PHYS + NETX_OFS_SPI)
 
#define NETX_PA_I2C   (NETX_IO_PHYS + NETX_OFS_I2C)
 
#define NETX_PA_SYSTIME   (NETX_IO_PHYS + NETX_OFS_SYSTIME)
 
#define NETX_PA_RTC   (NETX_IO_PHYS + NETX_OFS_RTC)
 
#define NETX_PA_EXTBUS   (NETX_IO_PHYS + NETX_OFS_EXTBUS)
 
#define NETX_PA_LCD   (NETX_IO_PHYS + NETX_OFS_LCD)
 
#define NETX_PA_USB   (NETX_IO_PHYS + NETX_OFS_USB)
 
#define NETX_PA_XMAC0   (NETX_IO_PHYS + NETX_OFS_XMAC0)
 
#define NETX_PA_XMAC1   (NETX_IO_PHYS + NETX_OFS_XMAC1)
 
#define NETX_PA_XMAC2   (NETX_IO_PHYS + NETX_OFS_XMAC2)
 
#define NETX_PA_XMAC3   (NETX_IO_PHYS + NETX_OFS_XMAC3)
 
#define NETX_PA_XMAC(no)   (NETX_IO_PHYS + NETX_OFS_XMAC(no))
 
#define NETX_PA_PFIFO   (NETX_IO_PHYS + NETX_OFS_PFIFO)
 
#define NETX_PA_XPEC0   (NETX_IO_PHYS + NETX_OFS_XPEC0)
 
#define NETX_PA_XPEC1   (NETX_IO_PHYS + NETX_OFS_XPEC1)
 
#define NETX_PA_XPEC2   (NETX_IO_PHYS + NETX_OFS_XPEC2)
 
#define NETX_PA_XPEC3   (NETX_IO_PHYS + NETX_OFS_XPEC3)
 
#define NETX_PA_XPEC(no)   (NETX_IO_PHYS + NETX_OFS_XPEC(no))
 
#define NETX_PA_VIC   (NETX_IO_PHYS + NETX_OFS_VIC)
 
#define NETX_VA_SYSTEM   (NETX_IO_VIRT + NETX_OFS_SYSTEM)
 
#define NETX_VA_MEMCR   (NETX_IO_VIRT + NETX_OFS_MEMCR)
 
#define NETX_VA_DPMAS   (NETX_IO_VIRT + NETX_OFS_DPMAS)
 
#define NETX_VA_GPIO   (NETX_IO_VIRT + NETX_OFS_GPIO)
 
#define NETX_VA_PIO   (NETX_IO_VIRT + NETX_OFS_PIO)
 
#define NETX_VA_UART0   (NETX_IO_VIRT + NETX_OFS_UART0)
 
#define NETX_VA_UART1   (NETX_IO_VIRT + NETX_OFS_UART1)
 
#define NETX_VA_UART2   (NETX_IO_VIRT + NETX_OFS_UART2)
 
#define NETX_VA_MIIMU   (NETX_IO_VIRT + NETX_OF_MIIMU)
 
#define NETX_VA_SPI   (NETX_IO_VIRT + NETX_OFS_SPI)
 
#define NETX_VA_I2C   (NETX_IO_VIRT + NETX_OFS_I2C)
 
#define NETX_VA_SYSTIME   (NETX_IO_VIRT + NETX_OFS_SYSTIME)
 
#define NETX_VA_RTC   (NETX_IO_VIRT + NETX_OFS_RTC)
 
#define NETX_VA_EXTBUS   (NETX_IO_VIRT + NETX_OFS_EXTBUS)
 
#define NETX_VA_LCD   (NETX_IO_VIRT + NETX_OFS_LCD)
 
#define NETX_VA_USB   (NETX_IO_VIRT + NETX_OFS_USB)
 
#define NETX_VA_XMAC0   (NETX_IO_VIRT + NETX_OFS_XMAC0)
 
#define NETX_VA_XMAC1   (NETX_IO_VIRT + NETX_OFS_XMAC1)
 
#define NETX_VA_XMAC2   (NETX_IO_VIRT + NETX_OFS_XMAC2)
 
#define NETX_VA_XMAC3   (NETX_IO_VIRT + NETX_OFS_XMAC3)
 
#define NETX_VA_XMAC(no)   (NETX_IO_VIRT + NETX_OFS_XMAC(no))
 
#define NETX_VA_PFIFO   (NETX_IO_VIRT + NETX_OFS_PFIFO)
 
#define NETX_VA_XPEC0   (NETX_IO_VIRT + NETX_OFS_XPEC0)
 
#define NETX_VA_XPEC1   (NETX_IO_VIRT + NETX_OFS_XPEC1)
 
#define NETX_VA_XPEC2   (NETX_IO_VIRT + NETX_OFS_XPEC2)
 
#define NETX_VA_XPEC3   (NETX_IO_VIRT + NETX_OFS_XPEC3)
 
#define NETX_VA_XPEC(no)   (NETX_IO_VIRT + NETX_OFS_XPEC(no))
 
#define NETX_VA_VIC   (NETX_IO_VIRT + NETX_OFS_VIC)
 
#define NETX_SYSTEM_REG(ofs)   IOMEM(NETX_VA_SYSTEM + (ofs))
 
#define NETX_SYSTEM_BOO_SR   NETX_SYSTEM_REG(0x00)
 
#define NETX_SYSTEM_IOC_CR   NETX_SYSTEM_REG(0x04)
 
#define NETX_SYSTEM_IOC_MR   NETX_SYSTEM_REG(0x08)
 
#define NETX_SYSTEM_RES_CR   NETX_SYSTEM_REG(0x0c)
 
#define NETX_SYSTEM_PHY_CONTROL   NETX_SYSTEM_REG(0x10)
 
#define NETX_SYSTEM_REV   NETX_SYSTEM_REG(0x34)
 
#define NETX_SYSTEM_IOC_ACCESS_KEY   NETX_SYSTEM_REG(0x70)
 
#define NETX_SYSTEM_WDG_TR   NETX_SYSTEM_REG(0x200)
 
#define NETX_SYSTEM_WDG_CTR   NETX_SYSTEM_REG(0x204)
 
#define NETX_SYSTEM_WDG_IRQ_TIMEOUT   NETX_SYSTEM_REG(0x208)
 
#define NETX_SYSTEM_WDG_RES_TIMEOUT   NETX_SYSTEM_REG(0x20c)
 
#define NETX_SYSTEM_RES_CR_RSTIN   (1<<0)
 
#define NETX_SYSTEM_RES_CR_WDG_RES   (1<<1)
 
#define NETX_SYSTEM_RES_CR_HOST_RES   (1<<2)
 
#define NETX_SYSTEM_RES_CR_FIRMW_RES   (1<<3)
 
#define NETX_SYSTEM_RES_CR_XPEC0_RES   (1<<4)
 
#define NETX_SYSTEM_RES_CR_XPEC1_RES   (1<<5)
 
#define NETX_SYSTEM_RES_CR_XPEC2_RES   (1<<6)
 
#define NETX_SYSTEM_RES_CR_XPEC3_RES   (1<<7)
 
#define NETX_SYSTEM_RES_CR_DIS_XPEC0_RES   (1<<16)
 
#define NETX_SYSTEM_RES_CR_DIS_XPEC1_RES   (1<<17)
 
#define NETX_SYSTEM_RES_CR_DIS_XPEC2_RES   (1<<18)
 
#define NETX_SYSTEM_RES_CR_DIS_XPEC3_RES   (1<<19)
 
#define NETX_SYSTEM_RES_CR_FIRMW_FLG0   (1<<20)
 
#define NETX_SYSTEM_RES_CR_FIRMW_FLG1   (1<<21)
 
#define NETX_SYSTEM_RES_CR_FIRMW_FLG2   (1<<22)
 
#define NETX_SYSTEM_RES_CR_FIRMW_FLG3   (1<<23)
 
#define NETX_SYSTEM_RES_CR_FIRMW_RES_EN   (1<<24)
 
#define NETX_SYSTEM_RES_CR_RSTOUT   (1<<25)
 
#define NETX_SYSTEM_RES_CR_EN_RSTOUT   (1<<26)
 
#define PHY_CONTROL_RESET   (1<<31)
 
#define PHY_CONTROL_SIM_BYP   (1<<30)
 
#define PHY_CONTROL_CLK_XLATIN   (1<<29)
 
#define PHY_CONTROL_PHY1_EN   (1<<21)
 
#define PHY_CONTROL_PHY1_NP_MSG_CODE
 
#define PHY_CONTROL_PHY1_AUTOMDIX   (1<<17)
 
#define PHY_CONTROL_PHY1_FIXMODE   (1<<16)
 
#define PHY_CONTROL_PHY1_MODE(mode)   (((mode) & 0x7) << 13)
 
#define PHY_CONTROL_PHY0_EN   (1<<12)
 
#define PHY_CONTROL_PHY0_NP_MSG_CODE
 
#define PHY_CONTROL_PHY0_AUTOMDIX   (1<<8)
 
#define PHY_CONTROL_PHY0_FIXMODE   (1<<7)
 
#define PHY_CONTROL_PHY0_MODE(mode)   (((mode) & 0x7) << 4)
 
#define PHY_CONTROL_PHY_ADDRESS(adr)   ((adr) & 0xf)
 
#define PHY_MODE_10BASE_T_HALF   0
 
#define PHY_MODE_10BASE_T_FULL   1
 
#define PHY_MODE_100BASE_TX_FX_FULL   2
 
#define PHY_MODE_100BASE_TX_FX_HALF   3
 
#define PHY_MODE_100BASE_TX_HALF   4
 
#define PHY_MODE_REPEATER   5
 
#define PHY_MODE_POWER_DOWN   6
 
#define PHY_MODE_ALL   7
 
#define VECT_CNTL_ENABLE   (1 << 5)
 
#define NETX_GPIO_REG(ofs)   IOMEM(NETX_VA_GPIO + (ofs))
 
#define NETX_GPIO_CFG(gpio)   NETX_GPIO_REG(0x0 + ((gpio)<<2))
 
#define NETX_GPIO_THRESHOLD_CAPTURE(gpio)   NETX_GPIO_REG(0x40 + ((gpio)<<2))
 
#define NETX_GPIO_COUNTER_CTRL(counter)   NETX_GPIO_REG(0x80 + ((counter)<<2))
 
#define NETX_GPIO_COUNTER_MAX(counter)   NETX_GPIO_REG(0x94 + ((counter)<<2))
 
#define NETX_GPIO_COUNTER_CURRENT(counter)   NETX_GPIO_REG(0xa8 + ((counter)<<2))
 
#define NETX_GPIO_IRQ_ENABLE   NETX_GPIO_REG(0xbc)
 
#define NETX_GPIO_IRQ_DISABLE   NETX_GPIO_REG(0xc0)
 
#define NETX_GPIO_SYSTIME_NS_CMP   NETX_GPIO_REG(0xc4)
 
#define NETX_GPIO_LINE   NETX_GPIO_REG(0xc8)
 
#define NETX_GPIO_IRQ   NETX_GPIO_REG(0xd0)
 
#define NETX_GPIO_CFG_IOCFG_GP_INPUT   (0x0)
 
#define NETX_GPIO_CFG_IOCFG_GP_OUTPUT   (0x1)
 
#define NETX_GPIO_CFG_IOCFG_GP_UART   (0x2)
 
#define NETX_GPIO_CFG_INV   (1<<2)
 
#define NETX_GPIO_CFG_MODE_INPUT_READ   (0<<3)
 
#define NETX_GPIO_CFG_MODE_INPUT_CAPTURE_CONT_RISING   (1<<3)
 
#define NETX_GPIO_CFG_MODE_INPUT_CAPTURE_ONCE_RISING   (2<<3)
 
#define NETX_GPIO_CFG_MODE_INPUT_CAPTURE_HIGH_LEVEL   (3<<3)
 
#define NETX_GPIO_CFG_COUNT_REF_COUNTER0   (0<<5)
 
#define NETX_GPIO_CFG_COUNT_REF_COUNTER1   (1<<5)
 
#define NETX_GPIO_CFG_COUNT_REF_COUNTER2   (2<<5)
 
#define NETX_GPIO_CFG_COUNT_REF_COUNTER3   (3<<5)
 
#define NETX_GPIO_CFG_COUNT_REF_COUNTER4   (4<<5)
 
#define NETX_GPIO_CFG_COUNT_REF_SYSTIME   (7<<5)
 
#define NETX_GPIO_COUNTER_CTRL_RUN   (1<<0)
 
#define NETX_GPIO_COUNTER_CTRL_SYM   (1<<1)
 
#define NETX_GPIO_COUNTER_CTRL_ONCE   (1<<2)
 
#define NETX_GPIO_COUNTER_CTRL_IRQ_EN   (1<<3)
 
#define NETX_GPIO_COUNTER_CTRL_CNT_EVENT   (1<<4)
 
#define NETX_GPIO_COUNTER_CTRL_RST_EN   (1<<5)
 
#define NETX_GPIO_COUNTER_CTRL_SEL_EVENT   (1<<6)
 
#define NETX_GPIO_COUNTER_CTRL_GPIO_REF   /* FIXME */
 
#define GPIO_BIT(gpio)   (1<<(gpio))
 
#define COUNTER_BIT(counter)   ((1<<16)<<(counter))
 
#define NETX_PIO_REG(ofs)   IOMEM(NETX_VA_PIO + (ofs))
 
#define NETX_PIO_INPIO   NETX_PIO_REG(0x0)
 
#define NETX_PIO_OUTPIO   NETX_PIO_REG(0x4)
 
#define NETX_PIO_OEPIO   NETX_PIO_REG(0x8)
 
#define NETX_MIIMU   IOMEM(NETX_VA_MIIMU)
 
#define MIIMU_SNRDY   (1<<0)
 
#define MIIMU_PREAMBLE   (1<<1)
 
#define MIIMU_OPMODE_WRITE   (1<<2)
 
#define MIIMU_MDC_PERIOD   (1<<3)
 
#define MIIMU_PHY_NRES   (1<<4)
 
#define MIIMU_RTA   (1<<5)
 
#define MIIMU_REGADDR(adr)   (((adr) & 0x1f) << 6)
 
#define MIIMU_PHYADDR(adr)   (((adr) & 0x1f) << 11)
 
#define MIIMU_DATA(data)   (((data) & 0xffff) << 16)
 
#define NETX_XPEC_R0_OFS   0x00
 
#define NETX_XPEC_R1_OFS   0x04
 
#define NETX_XPEC_R2_OFS   0x08
 
#define NETX_XPEC_R3_OFS   0x0c
 
#define NETX_XPEC_R4_OFS   0x10
 
#define NETX_XPEC_R5_OFS   0x14
 
#define NETX_XPEC_R6_OFS   0x18
 
#define NETX_XPEC_R7_OFS   0x1c
 
#define NETX_XPEC_RANGE01_OFS   0x20
 
#define NETX_XPEC_RANGE23_OFS   0x24
 
#define NETX_XPEC_RANGE45_OFS   0x28
 
#define NETX_XPEC_RANGE67_OFS   0x2c
 
#define NETX_XPEC_PC_OFS   0x48
 
#define NETX_XPEC_TIMER_OFS(timer)   (0x30 + ((timer)<<2))
 
#define NETX_XPEC_IRQ_OFS   0x8c
 
#define NETX_XPEC_SYSTIME_NS_OFS   0x90
 
#define NETX_XPEC_FIFO_DATA_OFS   0x94
 
#define NETX_XPEC_SYSTIME_S_OFS   0x98
 
#define NETX_XPEC_ADC_OFS   0x9c
 
#define NETX_XPEC_URX_COUNT_OFS   0x40
 
#define NETX_XPEC_UTX_COUNT_OFS   0x44
 
#define NETX_XPEC_PC_OFS   0x48
 
#define NETX_XPEC_ZERO_OFS   0x4c
 
#define NETX_XPEC_STATCFG_OFS   0x50
 
#define NETX_XPEC_EC_MASKA_OFS   0x54
 
#define NETX_XPEC_EC_MASKB_OFS   0x58
 
#define NETX_XPEC_EC_MASK0_OFS   0x5c
 
#define NETX_XPEC_EC_MASK8_OFS   0x7c
 
#define NETX_XPEC_EC_MASK9_OFS   0x80
 
#define NETX_XPEC_XPU_HOLD_PC_OFS   0x100
 
#define NETX_XPEC_RAM_START_OFS   0x2000
 
#define XPU_HOLD_PC   (1<<0)
 
#define NETX_XMAC_RPU_PROGRAM_START_OFS   0x000
 
#define NETX_XMAC_RPU_PROGRAM_END_OFS   0x3ff
 
#define NETX_XMAC_TPU_PROGRAM_START_OFS   0x400
 
#define NETX_XMAC_TPU_PROGRAM_END_OFS   0x7ff
 
#define NETX_XMAC_RPU_HOLD_PC_OFS   0xa00
 
#define NETX_XMAC_TPU_HOLD_PC_OFS   0xa04
 
#define NETX_XMAC_STATUS_SHARED0_OFS   0x840
 
#define NETX_XMAC_CONFIG_SHARED0_OFS   0x844
 
#define NETX_XMAC_STATUS_SHARED1_OFS   0x848
 
#define NETX_XMAC_CONFIG_SHARED1_OFS   0x84c
 
#define NETX_XMAC_STATUS_SHARED2_OFS   0x850
 
#define NETX_XMAC_CONFIG_SHARED2_OFS   0x854
 
#define NETX_XMAC_STATUS_SHARED3_OFS   0x858
 
#define NETX_XMAC_CONFIG_SHARED3_OFS   0x85c
 
#define RPU_HOLD_PC   (1<<15)
 
#define TPU_HOLD_PC   (1<<15)
 
#define NETX_PFIFO_REG(ofs)   IOMEM(NETX_VA_PFIFO + (ofs))
 
#define NETX_PFIFO_BASE(pfifo)   NETX_PFIFO_REG(0x00 + ((pfifo)<<2))
 
#define NETX_PFIFO_BORDER_BASE(pfifo)   NETX_PFIFO_REG(0x80 + ((pfifo)<<2))
 
#define NETX_PFIFO_RESET   NETX_PFIFO_REG(0x100)
 
#define NETX_PFIFO_FULL   NETX_PFIFO_REG(0x104)
 
#define NETX_PFIFO_EMPTY   NETX_PFIFO_REG(0x108)
 
#define NETX_PFIFO_OVEFLOW   NETX_PFIFO_REG(0x10c)
 
#define NETX_PFIFO_UNDERRUN   NETX_PFIFO_REG(0x110)
 
#define NETX_PFIFO_FILL_LEVEL(pfifo)   NETX_PFIFO_REG(0x180 + ((pfifo)<<2))
 
#define NETX_PFIFO_XPEC_ISR(xpec)   NETX_PFIFO_REG(0x400 + ((xpec) << 2))
 
#define NETX_MEMCR_REG(ofs)   IOMEM(NETX_VA_MEMCR + (ofs))
 
#define NETX_MEMCR_SRAM_CTRL(cs)   NETX_MEMCR_REG(0x0 + 4 * (cs)) /* SRAM for CS 0..2 */
 
#define NETX_MEMCR_SDRAM_CFG_CTRL   NETX_MEMCR_REG(0x40)
 
#define NETX_MEMCR_SDRAM_TIMING_CTRL   NETX_MEMCR_REG(0x44)
 
#define NETX_MEMCR_SDRAM_MODE   NETX_MEMCR_REG(0x48)
 
#define NETX_MEMCR_SDRAM_EXT_MODE   NETX_MEMCR_REG(0x4c)
 
#define NETX_MEMCR_PRIO_TIMESLOT_CTRL   NETX_MEMCR_REG(0x80)
 
#define NETX_MEMCR_PRIO_ACCESS_CTRL   NETX_MEMCR_REG(0x84)
 
#define NETX_MEMCR_SRAM_CTRL_WIDTHEXTMEM(x)   (((x) & 0x3) << 24)
 
#define NETX_MEMCR_SRAM_CTRL_WSPOSTPAUSEEXTMEM(x)   (((x) & 0x3) << 16)
 
#define NETX_MEMCR_SRAM_CTRL_WSPREPASEEXTMEM(x)   (((x) & 0x3) << 8)
 
#define NETX_MEMCR_SRAM_CTRL_WSEXTMEM(x)   (((x) & 0x1f) << 0)
 
#define NETX_DPMAS_REG(ofs)   IOMEM(NETX_VA_DPMAS + (ofs))
 
#define NETX_DPMAS_SYS_STAT   NETX_DPMAS_REG(0x4d8)
 
#define NETX_DPMAS_INT_STAT   NETX_DPMAS_REG(0x4e0)
 
#define NETX_DPMAS_INT_EN   NETX_DPMAS_REG(0x4f0)
 
#define NETX_DPMAS_IF_CONF0   NETX_DPMAS_REG(0x608)
 
#define NETX_DPMAS_IF_CONF1   NETX_DPMAS_REG(0x60c)
 
#define NETX_DPMAS_EXT_CONFIG(cs)   NETX_DPMAS_REG(0x610 + 4 * (cs))
 
#define NETX_DPMAS_IO_MODE0   NETX_DPMAS_REG(0x620) /* I/O 32..63 */
 
#define NETX_DPMAS_DRV_EN0   NETX_DPMAS_REG(0x624)
 
#define NETX_DPMAS_DATA0   NETX_DPMAS_REG(0x628)
 
#define NETX_DPMAS_IO_MODE1   NETX_DPMAS_REG(0x630) /* I/O 64..84 */
 
#define NETX_DPMAS_DRV_EN1   NETX_DPMAS_REG(0x634)
 
#define NETX_DPMAS_DATA1   NETX_DPMAS_REG(0x638)
 
#define NETX_DPMAS_INT_EN_GLB_EN   (1<<31)
 
#define NETX_DPMAS_INT_EN_MEM_LCK   (1<<30)
 
#define NETX_DPMAS_INT_EN_WDG   (1<<29)
 
#define NETX_DPMAS_INT_EN_PIO72   (1<<28)
 
#define NETX_DPMAS_INT_EN_PIO47   (1<<27)
 
#define NETX_DPMAS_INT_EN_PIO40   (1<<26)
 
#define NETX_DPMAS_INT_EN_PIO36   (1<<25)
 
#define NETX_DPMAS_INT_EN_PIO35   (1<<24)
 
#define NETX_DPMAS_IF_CONF0_HIF_DISABLED   (0<<28)
 
#define NETX_DPMAS_IF_CONF0_HIF_EXT_BUS   (1<<28)
 
#define NETX_DPMAS_IF_CONF0_HIF_UP_8BIT   (2<<28)
 
#define NETX_DPMAS_IF_CONF0_HIF_UP_16BIT   (3<<28)
 
#define NETX_DPMAS_IF_CONF0_HIF_IO   (4<<28)
 
#define NETX_DPMAS_IF_CONF0_WAIT_DRV_PP   (1<<14)
 
#define NETX_DPMAS_IF_CONF0_WAIT_DRV_OD   (2<<14)
 
#define NETX_DPMAS_IF_CONF0_WAIT_DRV_TRI   (3<<14)
 
#define NETX_DPMAS_IF_CONF1_IRQ_POL_PIO35   (1<<26)
 
#define NETX_DPMAS_IF_CONF1_IRQ_POL_PIO36   (1<<27)
 
#define NETX_DPMAS_IF_CONF1_IRQ_POL_PIO40   (1<<28)
 
#define NETX_DPMAS_IF_CONF1_IRQ_POL_PIO47   (1<<29)
 
#define NETX_DPMAS_IF_CONF1_IRQ_POL_PIO72   (1<<30)
 
#define NETX_EXT_CONFIG_TALEWIDTH(x)   (((x) & 0x7) << 29)
 
#define NETX_EXT_CONFIG_TADRHOLD(x)   (((x) & 0x7) << 26)
 
#define NETX_EXT_CONFIG_TCSON(x)   (((x) & 0x7) << 23)
 
#define NETX_EXT_CONFIG_TRDON(x)   (((x) & 0x7) << 20)
 
#define NETX_EXT_CONFIG_TWRON(x)   (((x) & 0x7) << 17)
 
#define NETX_EXT_CONFIG_TWROFF(x)   (((x) & 0x1f) << 12)
 
#define NETX_EXT_CONFIG_TRDWRCYC(x)   (((x) & 0x1f) << 7)
 
#define NETX_EXT_CONFIG_WAIT_POL   (1<<6)
 
#define NETX_EXT_CONFIG_WAIT_EN   (1<<5)
 
#define NETX_EXT_CONFIG_NRD_MODE   (1<<4)
 
#define NETX_EXT_CONFIG_DS_MODE   (1<<3)
 
#define NETX_EXT_CONFIG_NWR_MODE   (1<<2)
 
#define NETX_EXT_CONFIG_16BIT   (1<<1)
 
#define NETX_EXT_CONFIG_CS_ENABLE   (1<<0)
 
#define NETX_DPMAS_IO_MODE0_WRL   (1<<13)
 
#define NETX_DPMAS_IO_MODE0_WAIT   (1<<14)
 
#define NETX_DPMAS_IO_MODE0_READY   (1<<15)
 
#define NETX_DPMAS_IO_MODE0_CS0   (1<<19)
 
#define NETX_DPMAS_IO_MODE0_EXTRD   (1<<20)
 
#define NETX_DPMAS_IO_MODE1_CS2   (1<<15)
 
#define NETX_DPMAS_IO_MODE1_CS1   (1<<16)
 
#define NETX_DPMAS_IO_MODE1_SAMPLE_NPOR   (0<<30)
 
#define NETX_DPMAS_IO_MODE1_SAMPLE_100MHZ   (1<<30)
 
#define NETX_DPMAS_IO_MODE1_SAMPLE_NPIO36   (2<<30)
 
#define NETX_DPMAS_IO_MODE1_SAMPLE_PIO36   (3<<30)
 
#define NETX_I2C_REG(ofs)   IOMEM(NETX_VA_I2C, (ofs))
 
#define NETX_I2C_CTRL   NETX_I2C_REG(0x0)
 
#define NETX_I2C_DATA   NETX_I2C_REG(0x4)
 

Macro Definition Documentation

#define COUNTER_BIT (   counter)    ((1<<16)<<(counter))

Definition at line 226 of file netx-regs.h.

#define GPIO_BIT (   gpio)    (1<<(gpio))

Definition at line 225 of file netx-regs.h.

#define MIIMU_DATA (   data)    (((data) & 0xffff) << 16)

Definition at line 254 of file netx-regs.h.

#define MIIMU_MDC_PERIOD   (1<<3)

Definition at line 249 of file netx-regs.h.

#define MIIMU_OPMODE_WRITE   (1<<2)

Definition at line 248 of file netx-regs.h.

#define MIIMU_PHY_NRES   (1<<4)

Definition at line 250 of file netx-regs.h.

#define MIIMU_PHYADDR (   adr)    (((adr) & 0x1f) << 11)

Definition at line 253 of file netx-regs.h.

#define MIIMU_PREAMBLE   (1<<1)

Definition at line 247 of file netx-regs.h.

#define MIIMU_REGADDR (   adr)    (((adr) & 0x1f) << 6)

Definition at line 252 of file netx-regs.h.

#define MIIMU_RTA   (1<<5)

Definition at line 251 of file netx-regs.h.

#define MIIMU_SNRDY   (1<<0)

Definition at line 246 of file netx-regs.h.

#define NETX_DPMAS_DATA0   NETX_DPMAS_REG(0x628)

Definition at line 367 of file netx-regs.h.

#define NETX_DPMAS_DATA1   NETX_DPMAS_REG(0x638)

Definition at line 370 of file netx-regs.h.

#define NETX_DPMAS_DRV_EN0   NETX_DPMAS_REG(0x624)

Definition at line 366 of file netx-regs.h.

#define NETX_DPMAS_DRV_EN1   NETX_DPMAS_REG(0x634)

Definition at line 369 of file netx-regs.h.

#define NETX_DPMAS_EXT_CONFIG (   cs)    NETX_DPMAS_REG(0x610 + 4 * (cs))

Definition at line 364 of file netx-regs.h.

#define NETX_DPMAS_IF_CONF0   NETX_DPMAS_REG(0x608)

Definition at line 362 of file netx-regs.h.

#define NETX_DPMAS_IF_CONF0_HIF_DISABLED   (0<<28)

Definition at line 382 of file netx-regs.h.

#define NETX_DPMAS_IF_CONF0_HIF_EXT_BUS   (1<<28)

Definition at line 383 of file netx-regs.h.

#define NETX_DPMAS_IF_CONF0_HIF_IO   (4<<28)

Definition at line 386 of file netx-regs.h.

#define NETX_DPMAS_IF_CONF0_HIF_UP_16BIT   (3<<28)

Definition at line 385 of file netx-regs.h.

#define NETX_DPMAS_IF_CONF0_HIF_UP_8BIT   (2<<28)

Definition at line 384 of file netx-regs.h.

#define NETX_DPMAS_IF_CONF0_WAIT_DRV_OD   (2<<14)

Definition at line 388 of file netx-regs.h.

#define NETX_DPMAS_IF_CONF0_WAIT_DRV_PP   (1<<14)

Definition at line 387 of file netx-regs.h.

#define NETX_DPMAS_IF_CONF0_WAIT_DRV_TRI   (3<<14)

Definition at line 389 of file netx-regs.h.

#define NETX_DPMAS_IF_CONF1   NETX_DPMAS_REG(0x60c)

Definition at line 363 of file netx-regs.h.

#define NETX_DPMAS_IF_CONF1_IRQ_POL_PIO35   (1<<26)

Definition at line 391 of file netx-regs.h.

#define NETX_DPMAS_IF_CONF1_IRQ_POL_PIO36   (1<<27)

Definition at line 392 of file netx-regs.h.

#define NETX_DPMAS_IF_CONF1_IRQ_POL_PIO40   (1<<28)

Definition at line 393 of file netx-regs.h.

#define NETX_DPMAS_IF_CONF1_IRQ_POL_PIO47   (1<<29)

Definition at line 394 of file netx-regs.h.

#define NETX_DPMAS_IF_CONF1_IRQ_POL_PIO72   (1<<30)

Definition at line 395 of file netx-regs.h.

#define NETX_DPMAS_INT_EN   NETX_DPMAS_REG(0x4f0)

Definition at line 361 of file netx-regs.h.

#define NETX_DPMAS_INT_EN_GLB_EN   (1<<31)

Definition at line 373 of file netx-regs.h.

#define NETX_DPMAS_INT_EN_MEM_LCK   (1<<30)

Definition at line 374 of file netx-regs.h.

#define NETX_DPMAS_INT_EN_PIO35   (1<<24)

Definition at line 380 of file netx-regs.h.

#define NETX_DPMAS_INT_EN_PIO36   (1<<25)

Definition at line 379 of file netx-regs.h.

#define NETX_DPMAS_INT_EN_PIO40   (1<<26)

Definition at line 378 of file netx-regs.h.

#define NETX_DPMAS_INT_EN_PIO47   (1<<27)

Definition at line 377 of file netx-regs.h.

#define NETX_DPMAS_INT_EN_PIO72   (1<<28)

Definition at line 376 of file netx-regs.h.

#define NETX_DPMAS_INT_EN_WDG   (1<<29)

Definition at line 375 of file netx-regs.h.

#define NETX_DPMAS_INT_STAT   NETX_DPMAS_REG(0x4e0)

Definition at line 360 of file netx-regs.h.

#define NETX_DPMAS_IO_MODE0   NETX_DPMAS_REG(0x620) /* I/O 32..63 */

Definition at line 365 of file netx-regs.h.

#define NETX_DPMAS_IO_MODE0_CS0   (1<<19)

Definition at line 415 of file netx-regs.h.

#define NETX_DPMAS_IO_MODE0_EXTRD   (1<<20)

Definition at line 416 of file netx-regs.h.

#define NETX_DPMAS_IO_MODE0_READY   (1<<15)

Definition at line 414 of file netx-regs.h.

#define NETX_DPMAS_IO_MODE0_WAIT   (1<<14)

Definition at line 413 of file netx-regs.h.

#define NETX_DPMAS_IO_MODE0_WRL   (1<<13)

Definition at line 412 of file netx-regs.h.

#define NETX_DPMAS_IO_MODE1   NETX_DPMAS_REG(0x630) /* I/O 64..84 */

Definition at line 368 of file netx-regs.h.

#define NETX_DPMAS_IO_MODE1_CS1   (1<<16)

Definition at line 419 of file netx-regs.h.

#define NETX_DPMAS_IO_MODE1_CS2   (1<<15)

Definition at line 418 of file netx-regs.h.

#define NETX_DPMAS_IO_MODE1_SAMPLE_100MHZ   (1<<30)

Definition at line 421 of file netx-regs.h.

#define NETX_DPMAS_IO_MODE1_SAMPLE_NPIO36   (2<<30)

Definition at line 422 of file netx-regs.h.

#define NETX_DPMAS_IO_MODE1_SAMPLE_NPOR   (0<<30)

Definition at line 420 of file netx-regs.h.

#define NETX_DPMAS_IO_MODE1_SAMPLE_PIO36   (3<<30)

Definition at line 423 of file netx-regs.h.

#define NETX_DPMAS_REG (   ofs)    IOMEM(NETX_VA_DPMAS + (ofs))

Definition at line 358 of file netx-regs.h.

#define NETX_DPMAS_SYS_STAT   NETX_DPMAS_REG(0x4d8)

Definition at line 359 of file netx-regs.h.

#define NETX_EXT_CONFIG_16BIT   (1<<1)

Definition at line 409 of file netx-regs.h.

#define NETX_EXT_CONFIG_CS_ENABLE   (1<<0)

Definition at line 410 of file netx-regs.h.

#define NETX_EXT_CONFIG_DS_MODE   (1<<3)

Definition at line 407 of file netx-regs.h.

#define NETX_EXT_CONFIG_NRD_MODE   (1<<4)

Definition at line 406 of file netx-regs.h.

#define NETX_EXT_CONFIG_NWR_MODE   (1<<2)

Definition at line 408 of file netx-regs.h.

#define NETX_EXT_CONFIG_TADRHOLD (   x)    (((x) & 0x7) << 26)

Definition at line 398 of file netx-regs.h.

#define NETX_EXT_CONFIG_TALEWIDTH (   x)    (((x) & 0x7) << 29)

Definition at line 397 of file netx-regs.h.

#define NETX_EXT_CONFIG_TCSON (   x)    (((x) & 0x7) << 23)

Definition at line 399 of file netx-regs.h.

#define NETX_EXT_CONFIG_TRDON (   x)    (((x) & 0x7) << 20)

Definition at line 400 of file netx-regs.h.

#define NETX_EXT_CONFIG_TRDWRCYC (   x)    (((x) & 0x1f) << 7)

Definition at line 403 of file netx-regs.h.

#define NETX_EXT_CONFIG_TWROFF (   x)    (((x) & 0x1f) << 12)

Definition at line 402 of file netx-regs.h.

#define NETX_EXT_CONFIG_TWRON (   x)    (((x) & 0x7) << 17)

Definition at line 401 of file netx-regs.h.

#define NETX_EXT_CONFIG_WAIT_EN   (1<<5)

Definition at line 405 of file netx-regs.h.

#define NETX_EXT_CONFIG_WAIT_POL   (1<<6)

Definition at line 404 of file netx-regs.h.

#define NETX_GPIO_CFG (   gpio)    NETX_GPIO_REG(0x0 + ((gpio)<<2))

Definition at line 189 of file netx-regs.h.

#define NETX_GPIO_CFG_COUNT_REF_COUNTER0   (0<<5)

Definition at line 209 of file netx-regs.h.

#define NETX_GPIO_CFG_COUNT_REF_COUNTER1   (1<<5)

Definition at line 210 of file netx-regs.h.

#define NETX_GPIO_CFG_COUNT_REF_COUNTER2   (2<<5)

Definition at line 211 of file netx-regs.h.

#define NETX_GPIO_CFG_COUNT_REF_COUNTER3   (3<<5)

Definition at line 212 of file netx-regs.h.

#define NETX_GPIO_CFG_COUNT_REF_COUNTER4   (4<<5)

Definition at line 213 of file netx-regs.h.

#define NETX_GPIO_CFG_COUNT_REF_SYSTIME   (7<<5)

Definition at line 214 of file netx-regs.h.

#define NETX_GPIO_CFG_INV   (1<<2)

Definition at line 204 of file netx-regs.h.

#define NETX_GPIO_CFG_IOCFG_GP_INPUT   (0x0)

Definition at line 201 of file netx-regs.h.

#define NETX_GPIO_CFG_IOCFG_GP_OUTPUT   (0x1)

Definition at line 202 of file netx-regs.h.

#define NETX_GPIO_CFG_IOCFG_GP_UART   (0x2)

Definition at line 203 of file netx-regs.h.

#define NETX_GPIO_CFG_MODE_INPUT_CAPTURE_CONT_RISING   (1<<3)

Definition at line 206 of file netx-regs.h.

#define NETX_GPIO_CFG_MODE_INPUT_CAPTURE_HIGH_LEVEL   (3<<3)

Definition at line 208 of file netx-regs.h.

#define NETX_GPIO_CFG_MODE_INPUT_CAPTURE_ONCE_RISING   (2<<3)

Definition at line 207 of file netx-regs.h.

#define NETX_GPIO_CFG_MODE_INPUT_READ   (0<<3)

Definition at line 205 of file netx-regs.h.

#define NETX_GPIO_COUNTER_CTRL (   counter)    NETX_GPIO_REG(0x80 + ((counter)<<2))

Definition at line 191 of file netx-regs.h.

#define NETX_GPIO_COUNTER_CTRL_CNT_EVENT   (1<<4)

Definition at line 220 of file netx-regs.h.

#define NETX_GPIO_COUNTER_CTRL_GPIO_REF   /* FIXME */

Definition at line 223 of file netx-regs.h.

#define NETX_GPIO_COUNTER_CTRL_IRQ_EN   (1<<3)

Definition at line 219 of file netx-regs.h.

#define NETX_GPIO_COUNTER_CTRL_ONCE   (1<<2)

Definition at line 218 of file netx-regs.h.

#define NETX_GPIO_COUNTER_CTRL_RST_EN   (1<<5)

Definition at line 221 of file netx-regs.h.

#define NETX_GPIO_COUNTER_CTRL_RUN   (1<<0)

Definition at line 216 of file netx-regs.h.

#define NETX_GPIO_COUNTER_CTRL_SEL_EVENT   (1<<6)

Definition at line 222 of file netx-regs.h.

#define NETX_GPIO_COUNTER_CTRL_SYM   (1<<1)

Definition at line 217 of file netx-regs.h.

#define NETX_GPIO_COUNTER_CURRENT (   counter)    NETX_GPIO_REG(0xa8 + ((counter)<<2))

Definition at line 193 of file netx-regs.h.

#define NETX_GPIO_COUNTER_MAX (   counter)    NETX_GPIO_REG(0x94 + ((counter)<<2))

Definition at line 192 of file netx-regs.h.

#define NETX_GPIO_IRQ   NETX_GPIO_REG(0xd0)

Definition at line 198 of file netx-regs.h.

#define NETX_GPIO_IRQ_DISABLE   NETX_GPIO_REG(0xc0)

Definition at line 195 of file netx-regs.h.

#define NETX_GPIO_IRQ_ENABLE   NETX_GPIO_REG(0xbc)

Definition at line 194 of file netx-regs.h.

#define NETX_GPIO_LINE   NETX_GPIO_REG(0xc8)

Definition at line 197 of file netx-regs.h.

#define NETX_GPIO_REG (   ofs)    IOMEM(NETX_VA_GPIO + (ofs))

Definition at line 188 of file netx-regs.h.

#define NETX_GPIO_SYSTIME_NS_CMP   NETX_GPIO_REG(0xc4)

Definition at line 196 of file netx-regs.h.

#define NETX_GPIO_THRESHOLD_CAPTURE (   gpio)    NETX_GPIO_REG(0x40 + ((gpio)<<2))

Definition at line 190 of file netx-regs.h.

#define NETX_I2C_CTRL   NETX_I2C_REG(0x0)

Definition at line 429 of file netx-regs.h.

#define NETX_I2C_DATA   NETX_I2C_REG(0x4)

Definition at line 430 of file netx-regs.h.

#define NETX_I2C_REG (   ofs)    IOMEM(NETX_VA_I2C, (ofs))

Definition at line 428 of file netx-regs.h.

#define NETX_MEMCR_PRIO_ACCESS_CTRL   NETX_MEMCR_REG(0x84)

Definition at line 344 of file netx-regs.h.

#define NETX_MEMCR_PRIO_TIMESLOT_CTRL   NETX_MEMCR_REG(0x80)

Definition at line 343 of file netx-regs.h.

#define NETX_MEMCR_REG (   ofs)    IOMEM(NETX_VA_MEMCR + (ofs))

Definition at line 337 of file netx-regs.h.

#define NETX_MEMCR_SDRAM_CFG_CTRL   NETX_MEMCR_REG(0x40)

Definition at line 339 of file netx-regs.h.

#define NETX_MEMCR_SDRAM_EXT_MODE   NETX_MEMCR_REG(0x4c)

Definition at line 342 of file netx-regs.h.

#define NETX_MEMCR_SDRAM_MODE   NETX_MEMCR_REG(0x48)

Definition at line 341 of file netx-regs.h.

#define NETX_MEMCR_SDRAM_TIMING_CTRL   NETX_MEMCR_REG(0x44)

Definition at line 340 of file netx-regs.h.

#define NETX_MEMCR_SRAM_CTRL (   cs)    NETX_MEMCR_REG(0x0 + 4 * (cs)) /* SRAM for CS 0..2 */

Definition at line 338 of file netx-regs.h.

#define NETX_MEMCR_SRAM_CTRL_WIDTHEXTMEM (   x)    (((x) & 0x3) << 24)

Definition at line 347 of file netx-regs.h.

#define NETX_MEMCR_SRAM_CTRL_WSEXTMEM (   x)    (((x) & 0x1f) << 0)

Definition at line 350 of file netx-regs.h.

#define NETX_MEMCR_SRAM_CTRL_WSPOSTPAUSEEXTMEM (   x)    (((x) & 0x3) << 16)

Definition at line 348 of file netx-regs.h.

#define NETX_MEMCR_SRAM_CTRL_WSPREPASEEXTMEM (   x)    (((x) & 0x3) << 8)

Definition at line 349 of file netx-regs.h.

#define NETX_MIIMU   IOMEM(NETX_VA_MIIMU)

Definition at line 243 of file netx-regs.h.

#define NETX_OF_MIIMU   0x00b00

Definition at line 32 of file netx-regs.h.

#define NETX_OFS_DPMAS   0x03000

Definition at line 26 of file netx-regs.h.

#define NETX_OFS_EXTBUS   0x03600

Definition at line 37 of file netx-regs.h.

#define NETX_OFS_GPIO   0x00800

Definition at line 27 of file netx-regs.h.

#define NETX_OFS_I2C   0x00d00

Definition at line 34 of file netx-regs.h.

#define NETX_OFS_LCD   0x04000

Definition at line 38 of file netx-regs.h.

#define NETX_OFS_MEMCR   0x00100

Definition at line 25 of file netx-regs.h.

#define NETX_OFS_PFIFO   0x64000

Definition at line 45 of file netx-regs.h.

#define NETX_OFS_PIO   0x00900

Definition at line 28 of file netx-regs.h.

#define NETX_OFS_RTC   0x01200

Definition at line 36 of file netx-regs.h.

#define NETX_OFS_SPI   0x00c00

Definition at line 33 of file netx-regs.h.

#define NETX_OFS_SYSTEM   0x00000

Definition at line 24 of file netx-regs.h.

#define NETX_OFS_SYSTIME   0x01100

Definition at line 35 of file netx-regs.h.

#define NETX_OFS_UART0   0x00a00

Definition at line 29 of file netx-regs.h.

#define NETX_OFS_UART1   0x00a40

Definition at line 30 of file netx-regs.h.

#define NETX_OFS_UART2   0x00a80

Definition at line 31 of file netx-regs.h.

#define NETX_OFS_USB   0x20000

Definition at line 39 of file netx-regs.h.

#define NETX_OFS_VIC   0xff000

Definition at line 51 of file netx-regs.h.

#define NETX_OFS_XMAC (   no)    (0x60000 + (no) * 0x1000)

Definition at line 44 of file netx-regs.h.

#define NETX_OFS_XMAC0   0x60000

Definition at line 40 of file netx-regs.h.

#define NETX_OFS_XMAC1   0x61000

Definition at line 41 of file netx-regs.h.

#define NETX_OFS_XMAC2   0x62000

Definition at line 42 of file netx-regs.h.

#define NETX_OFS_XMAC3   0x63000

Definition at line 43 of file netx-regs.h.

#define NETX_OFS_XPEC (   no)    (0x70000 + (no) * 0x4000)

Definition at line 50 of file netx-regs.h.

#define NETX_OFS_XPEC0   0x70000

Definition at line 46 of file netx-regs.h.

#define NETX_OFS_XPEC1   0x74000

Definition at line 47 of file netx-regs.h.

#define NETX_OFS_XPEC2   0x78000

Definition at line 48 of file netx-regs.h.

#define NETX_OFS_XPEC3   0x7c000

Definition at line 49 of file netx-regs.h.

#define NETX_PA_DPMAS   (NETX_IO_PHYS + NETX_OFS_DPMAS)

Definition at line 56 of file netx-regs.h.

#define NETX_PA_EXTBUS   (NETX_IO_PHYS + NETX_OFS_EXTBUS)

Definition at line 67 of file netx-regs.h.

#define NETX_PA_GPIO   (NETX_IO_PHYS + NETX_OFS_GPIO)

Definition at line 57 of file netx-regs.h.

#define NETX_PA_I2C   (NETX_IO_PHYS + NETX_OFS_I2C)

Definition at line 64 of file netx-regs.h.

#define NETX_PA_LCD   (NETX_IO_PHYS + NETX_OFS_LCD)

Definition at line 68 of file netx-regs.h.

#define NETX_PA_MEMCR   (NETX_IO_PHYS + NETX_OFS_MEMCR)

Definition at line 55 of file netx-regs.h.

#define NETX_PA_MIIMU   (NETX_IO_PHYS + NETX_OF_MIIMU)

Definition at line 62 of file netx-regs.h.

#define NETX_PA_PFIFO   (NETX_IO_PHYS + NETX_OFS_PFIFO)

Definition at line 75 of file netx-regs.h.

#define NETX_PA_PIO   (NETX_IO_PHYS + NETX_OFS_PIO)

Definition at line 58 of file netx-regs.h.

#define NETX_PA_RTC   (NETX_IO_PHYS + NETX_OFS_RTC)

Definition at line 66 of file netx-regs.h.

#define NETX_PA_SPI   (NETX_IO_PHYS + NETX_OFS_SPI)

Definition at line 63 of file netx-regs.h.

#define NETX_PA_SYSTEM   (NETX_IO_PHYS + NETX_OFS_SYSTEM)

Definition at line 54 of file netx-regs.h.

#define NETX_PA_SYSTIME   (NETX_IO_PHYS + NETX_OFS_SYSTIME)

Definition at line 65 of file netx-regs.h.

#define NETX_PA_UART0   (NETX_IO_PHYS + NETX_OFS_UART0)

Definition at line 59 of file netx-regs.h.

#define NETX_PA_UART1   (NETX_IO_PHYS + NETX_OFS_UART1)

Definition at line 60 of file netx-regs.h.

#define NETX_PA_UART2   (NETX_IO_PHYS + NETX_OFS_UART2)

Definition at line 61 of file netx-regs.h.

#define NETX_PA_USB   (NETX_IO_PHYS + NETX_OFS_USB)

Definition at line 69 of file netx-regs.h.

#define NETX_PA_VIC   (NETX_IO_PHYS + NETX_OFS_VIC)

Definition at line 81 of file netx-regs.h.

#define NETX_PA_XMAC (   no)    (NETX_IO_PHYS + NETX_OFS_XMAC(no))

Definition at line 74 of file netx-regs.h.

#define NETX_PA_XMAC0   (NETX_IO_PHYS + NETX_OFS_XMAC0)

Definition at line 70 of file netx-regs.h.

#define NETX_PA_XMAC1   (NETX_IO_PHYS + NETX_OFS_XMAC1)

Definition at line 71 of file netx-regs.h.

#define NETX_PA_XMAC2   (NETX_IO_PHYS + NETX_OFS_XMAC2)

Definition at line 72 of file netx-regs.h.

#define NETX_PA_XMAC3   (NETX_IO_PHYS + NETX_OFS_XMAC3)

Definition at line 73 of file netx-regs.h.

#define NETX_PA_XPEC (   no)    (NETX_IO_PHYS + NETX_OFS_XPEC(no))

Definition at line 80 of file netx-regs.h.

#define NETX_PA_XPEC0   (NETX_IO_PHYS + NETX_OFS_XPEC0)

Definition at line 76 of file netx-regs.h.

#define NETX_PA_XPEC1   (NETX_IO_PHYS + NETX_OFS_XPEC1)

Definition at line 77 of file netx-regs.h.

#define NETX_PA_XPEC2   (NETX_IO_PHYS + NETX_OFS_XPEC2)

Definition at line 78 of file netx-regs.h.

#define NETX_PA_XPEC3   (NETX_IO_PHYS + NETX_OFS_XPEC3)

Definition at line 79 of file netx-regs.h.

#define NETX_PFIFO_BASE (   pfifo)    NETX_PFIFO_REG(0x00 + ((pfifo)<<2))

Definition at line 321 of file netx-regs.h.

#define NETX_PFIFO_BORDER_BASE (   pfifo)    NETX_PFIFO_REG(0x80 + ((pfifo)<<2))

Definition at line 322 of file netx-regs.h.

#define NETX_PFIFO_EMPTY   NETX_PFIFO_REG(0x108)

Definition at line 325 of file netx-regs.h.

#define NETX_PFIFO_FILL_LEVEL (   pfifo)    NETX_PFIFO_REG(0x180 + ((pfifo)<<2))

Definition at line 328 of file netx-regs.h.

#define NETX_PFIFO_FULL   NETX_PFIFO_REG(0x104)

Definition at line 324 of file netx-regs.h.

#define NETX_PFIFO_OVEFLOW   NETX_PFIFO_REG(0x10c)

Definition at line 326 of file netx-regs.h.

#define NETX_PFIFO_REG (   ofs)    IOMEM(NETX_VA_PFIFO + (ofs))

Definition at line 320 of file netx-regs.h.

#define NETX_PFIFO_RESET   NETX_PFIFO_REG(0x100)

Definition at line 323 of file netx-regs.h.

#define NETX_PFIFO_UNDERRUN   NETX_PFIFO_REG(0x110)

Definition at line 327 of file netx-regs.h.

#define NETX_PFIFO_XPEC_ISR (   xpec)    NETX_PFIFO_REG(0x400 + ((xpec) << 2))

Definition at line 329 of file netx-regs.h.

#define NETX_PIO_INPIO   NETX_PIO_REG(0x0)

Definition at line 234 of file netx-regs.h.

#define NETX_PIO_OEPIO   NETX_PIO_REG(0x8)

Definition at line 236 of file netx-regs.h.

#define NETX_PIO_OUTPIO   NETX_PIO_REG(0x4)

Definition at line 235 of file netx-regs.h.

#define NETX_PIO_REG (   ofs)    IOMEM(NETX_VA_PIO + (ofs))

Definition at line 233 of file netx-regs.h.

#define NETX_SYSTEM_BOO_SR   NETX_SYSTEM_REG(0x00)

Definition at line 119 of file netx-regs.h.

#define NETX_SYSTEM_IOC_ACCESS_KEY   NETX_SYSTEM_REG(0x70)

Definition at line 129 of file netx-regs.h.

#define NETX_SYSTEM_IOC_CR   NETX_SYSTEM_REG(0x04)

Definition at line 120 of file netx-regs.h.

#define NETX_SYSTEM_IOC_MR   NETX_SYSTEM_REG(0x08)

Definition at line 121 of file netx-regs.h.

#define NETX_SYSTEM_PHY_CONTROL   NETX_SYSTEM_REG(0x10)

Definition at line 127 of file netx-regs.h.

#define NETX_SYSTEM_REG (   ofs)    IOMEM(NETX_VA_SYSTEM + (ofs))

Definition at line 118 of file netx-regs.h.

#define NETX_SYSTEM_RES_CR   NETX_SYSTEM_REG(0x0c)

Definition at line 125 of file netx-regs.h.

#define NETX_SYSTEM_RES_CR_DIS_XPEC0_RES   (1<<16)

Definition at line 144 of file netx-regs.h.

#define NETX_SYSTEM_RES_CR_DIS_XPEC1_RES   (1<<17)

Definition at line 145 of file netx-regs.h.

#define NETX_SYSTEM_RES_CR_DIS_XPEC2_RES   (1<<18)

Definition at line 146 of file netx-regs.h.

#define NETX_SYSTEM_RES_CR_DIS_XPEC3_RES   (1<<19)

Definition at line 147 of file netx-regs.h.

#define NETX_SYSTEM_RES_CR_EN_RSTOUT   (1<<26)

Definition at line 154 of file netx-regs.h.

#define NETX_SYSTEM_RES_CR_FIRMW_FLG0   (1<<20)

Definition at line 148 of file netx-regs.h.

#define NETX_SYSTEM_RES_CR_FIRMW_FLG1   (1<<21)

Definition at line 149 of file netx-regs.h.

#define NETX_SYSTEM_RES_CR_FIRMW_FLG2   (1<<22)

Definition at line 150 of file netx-regs.h.

#define NETX_SYSTEM_RES_CR_FIRMW_FLG3   (1<<23)

Definition at line 151 of file netx-regs.h.

#define NETX_SYSTEM_RES_CR_FIRMW_RES   (1<<3)

Definition at line 139 of file netx-regs.h.

#define NETX_SYSTEM_RES_CR_FIRMW_RES_EN   (1<<24)

Definition at line 152 of file netx-regs.h.

#define NETX_SYSTEM_RES_CR_HOST_RES   (1<<2)

Definition at line 138 of file netx-regs.h.

#define NETX_SYSTEM_RES_CR_RSTIN   (1<<0)

Definition at line 136 of file netx-regs.h.

#define NETX_SYSTEM_RES_CR_RSTOUT   (1<<25)

Definition at line 153 of file netx-regs.h.

#define NETX_SYSTEM_RES_CR_WDG_RES   (1<<1)

Definition at line 137 of file netx-regs.h.

#define NETX_SYSTEM_RES_CR_XPEC0_RES   (1<<4)

Definition at line 140 of file netx-regs.h.

#define NETX_SYSTEM_RES_CR_XPEC1_RES   (1<<5)

Definition at line 141 of file netx-regs.h.

#define NETX_SYSTEM_RES_CR_XPEC2_RES   (1<<6)

Definition at line 142 of file netx-regs.h.

#define NETX_SYSTEM_RES_CR_XPEC3_RES   (1<<7)

Definition at line 143 of file netx-regs.h.

#define NETX_SYSTEM_REV   NETX_SYSTEM_REG(0x34)

Definition at line 128 of file netx-regs.h.

#define NETX_SYSTEM_WDG_CTR   NETX_SYSTEM_REG(0x204)

Definition at line 131 of file netx-regs.h.

#define NETX_SYSTEM_WDG_IRQ_TIMEOUT   NETX_SYSTEM_REG(0x208)

Definition at line 132 of file netx-regs.h.

#define NETX_SYSTEM_WDG_RES_TIMEOUT   NETX_SYSTEM_REG(0x20c)

Definition at line 133 of file netx-regs.h.

#define NETX_SYSTEM_WDG_TR   NETX_SYSTEM_REG(0x200)

Definition at line 130 of file netx-regs.h.

#define NETX_VA_DPMAS   (NETX_IO_VIRT + NETX_OFS_DPMAS)

Definition at line 86 of file netx-regs.h.

#define NETX_VA_EXTBUS   (NETX_IO_VIRT + NETX_OFS_EXTBUS)

Definition at line 97 of file netx-regs.h.

#define NETX_VA_GPIO   (NETX_IO_VIRT + NETX_OFS_GPIO)

Definition at line 87 of file netx-regs.h.

#define NETX_VA_I2C   (NETX_IO_VIRT + NETX_OFS_I2C)

Definition at line 94 of file netx-regs.h.

#define NETX_VA_LCD   (NETX_IO_VIRT + NETX_OFS_LCD)

Definition at line 98 of file netx-regs.h.

#define NETX_VA_MEMCR   (NETX_IO_VIRT + NETX_OFS_MEMCR)

Definition at line 85 of file netx-regs.h.

#define NETX_VA_MIIMU   (NETX_IO_VIRT + NETX_OF_MIIMU)

Definition at line 92 of file netx-regs.h.

#define NETX_VA_PFIFO   (NETX_IO_VIRT + NETX_OFS_PFIFO)

Definition at line 105 of file netx-regs.h.

#define NETX_VA_PIO   (NETX_IO_VIRT + NETX_OFS_PIO)

Definition at line 88 of file netx-regs.h.

#define NETX_VA_RTC   (NETX_IO_VIRT + NETX_OFS_RTC)

Definition at line 96 of file netx-regs.h.

#define NETX_VA_SPI   (NETX_IO_VIRT + NETX_OFS_SPI)

Definition at line 93 of file netx-regs.h.

#define NETX_VA_SYSTEM   (NETX_IO_VIRT + NETX_OFS_SYSTEM)

Definition at line 84 of file netx-regs.h.

#define NETX_VA_SYSTIME   (NETX_IO_VIRT + NETX_OFS_SYSTIME)

Definition at line 95 of file netx-regs.h.

#define NETX_VA_UART0   (NETX_IO_VIRT + NETX_OFS_UART0)

Definition at line 89 of file netx-regs.h.

#define NETX_VA_UART1   (NETX_IO_VIRT + NETX_OFS_UART1)

Definition at line 90 of file netx-regs.h.

#define NETX_VA_UART2   (NETX_IO_VIRT + NETX_OFS_UART2)

Definition at line 91 of file netx-regs.h.

#define NETX_VA_USB   (NETX_IO_VIRT + NETX_OFS_USB)

Definition at line 99 of file netx-regs.h.

#define NETX_VA_VIC   (NETX_IO_VIRT + NETX_OFS_VIC)

Definition at line 111 of file netx-regs.h.

#define NETX_VA_XMAC (   no)    (NETX_IO_VIRT + NETX_OFS_XMAC(no))

Definition at line 104 of file netx-regs.h.

#define NETX_VA_XMAC0   (NETX_IO_VIRT + NETX_OFS_XMAC0)

Definition at line 100 of file netx-regs.h.

#define NETX_VA_XMAC1   (NETX_IO_VIRT + NETX_OFS_XMAC1)

Definition at line 101 of file netx-regs.h.

#define NETX_VA_XMAC2   (NETX_IO_VIRT + NETX_OFS_XMAC2)

Definition at line 102 of file netx-regs.h.

#define NETX_VA_XMAC3   (NETX_IO_VIRT + NETX_OFS_XMAC3)

Definition at line 103 of file netx-regs.h.

#define NETX_VA_XPEC (   no)    (NETX_IO_VIRT + NETX_OFS_XPEC(no))

Definition at line 110 of file netx-regs.h.

#define NETX_VA_XPEC0   (NETX_IO_VIRT + NETX_OFS_XPEC0)

Definition at line 106 of file netx-regs.h.

#define NETX_VA_XPEC1   (NETX_IO_VIRT + NETX_OFS_XPEC1)

Definition at line 107 of file netx-regs.h.

#define NETX_VA_XPEC2   (NETX_IO_VIRT + NETX_OFS_XPEC2)

Definition at line 108 of file netx-regs.h.

#define NETX_VA_XPEC3   (NETX_IO_VIRT + NETX_OFS_XPEC3)

Definition at line 109 of file netx-regs.h.

#define NETX_XMAC_CONFIG_SHARED0_OFS   0x844

Definition at line 304 of file netx-regs.h.

#define NETX_XMAC_CONFIG_SHARED1_OFS   0x84c

Definition at line 306 of file netx-regs.h.

#define NETX_XMAC_CONFIG_SHARED2_OFS   0x854

Definition at line 308 of file netx-regs.h.

#define NETX_XMAC_CONFIG_SHARED3_OFS   0x85c

Definition at line 310 of file netx-regs.h.

#define NETX_XMAC_RPU_HOLD_PC_OFS   0xa00

Definition at line 301 of file netx-regs.h.

#define NETX_XMAC_RPU_PROGRAM_END_OFS   0x3ff

Definition at line 298 of file netx-regs.h.

#define NETX_XMAC_RPU_PROGRAM_START_OFS   0x000

Definition at line 297 of file netx-regs.h.

#define NETX_XMAC_STATUS_SHARED0_OFS   0x840

Definition at line 303 of file netx-regs.h.

#define NETX_XMAC_STATUS_SHARED1_OFS   0x848

Definition at line 305 of file netx-regs.h.

#define NETX_XMAC_STATUS_SHARED2_OFS   0x850

Definition at line 307 of file netx-regs.h.

#define NETX_XMAC_STATUS_SHARED3_OFS   0x858

Definition at line 309 of file netx-regs.h.

#define NETX_XMAC_TPU_HOLD_PC_OFS   0xa04

Definition at line 302 of file netx-regs.h.

#define NETX_XMAC_TPU_PROGRAM_END_OFS   0x7ff

Definition at line 300 of file netx-regs.h.

#define NETX_XMAC_TPU_PROGRAM_START_OFS   0x400

Definition at line 299 of file netx-regs.h.

#define NETX_XPEC_ADC_OFS   0x9c

Definition at line 279 of file netx-regs.h.

#define NETX_XPEC_EC_MASK0_OFS   0x5c

Definition at line 287 of file netx-regs.h.

#define NETX_XPEC_EC_MASK8_OFS   0x7c

Definition at line 288 of file netx-regs.h.

#define NETX_XPEC_EC_MASK9_OFS   0x80

Definition at line 289 of file netx-regs.h.

#define NETX_XPEC_EC_MASKA_OFS   0x54

Definition at line 285 of file netx-regs.h.

#define NETX_XPEC_EC_MASKB_OFS   0x58

Definition at line 286 of file netx-regs.h.

#define NETX_XPEC_FIFO_DATA_OFS   0x94

Definition at line 277 of file netx-regs.h.

#define NETX_XPEC_IRQ_OFS   0x8c

Definition at line 275 of file netx-regs.h.

#define NETX_XPEC_PC_OFS   0x48

Definition at line 282 of file netx-regs.h.

#define NETX_XPEC_PC_OFS   0x48

Definition at line 282 of file netx-regs.h.

#define NETX_XPEC_R0_OFS   0x00

Definition at line 261 of file netx-regs.h.

#define NETX_XPEC_R1_OFS   0x04

Definition at line 262 of file netx-regs.h.

#define NETX_XPEC_R2_OFS   0x08

Definition at line 263 of file netx-regs.h.

#define NETX_XPEC_R3_OFS   0x0c

Definition at line 264 of file netx-regs.h.

#define NETX_XPEC_R4_OFS   0x10

Definition at line 265 of file netx-regs.h.

#define NETX_XPEC_R5_OFS   0x14

Definition at line 266 of file netx-regs.h.

#define NETX_XPEC_R6_OFS   0x18

Definition at line 267 of file netx-regs.h.

#define NETX_XPEC_R7_OFS   0x1c

Definition at line 268 of file netx-regs.h.

#define NETX_XPEC_RAM_START_OFS   0x2000

Definition at line 291 of file netx-regs.h.

#define NETX_XPEC_RANGE01_OFS   0x20

Definition at line 269 of file netx-regs.h.

#define NETX_XPEC_RANGE23_OFS   0x24

Definition at line 270 of file netx-regs.h.

#define NETX_XPEC_RANGE45_OFS   0x28

Definition at line 271 of file netx-regs.h.

#define NETX_XPEC_RANGE67_OFS   0x2c

Definition at line 272 of file netx-regs.h.

#define NETX_XPEC_STATCFG_OFS   0x50

Definition at line 284 of file netx-regs.h.

#define NETX_XPEC_SYSTIME_NS_OFS   0x90

Definition at line 276 of file netx-regs.h.

#define NETX_XPEC_SYSTIME_S_OFS   0x98

Definition at line 278 of file netx-regs.h.

#define NETX_XPEC_TIMER_OFS (   timer)    (0x30 + ((timer)<<2))

Definition at line 274 of file netx-regs.h.

#define NETX_XPEC_URX_COUNT_OFS   0x40

Definition at line 280 of file netx-regs.h.

#define NETX_XPEC_UTX_COUNT_OFS   0x44

Definition at line 281 of file netx-regs.h.

#define NETX_XPEC_XPU_HOLD_PC_OFS   0x100

Definition at line 290 of file netx-regs.h.

#define NETX_XPEC_ZERO_OFS   0x4c

Definition at line 283 of file netx-regs.h.

#define PHY_CONTROL_CLK_XLATIN   (1<<29)

Definition at line 158 of file netx-regs.h.

#define PHY_CONTROL_PHY0_AUTOMDIX   (1<<8)

Definition at line 166 of file netx-regs.h.

#define PHY_CONTROL_PHY0_EN   (1<<12)

Definition at line 164 of file netx-regs.h.

#define PHY_CONTROL_PHY0_FIXMODE   (1<<7)

Definition at line 167 of file netx-regs.h.

#define PHY_CONTROL_PHY0_MODE (   mode)    (((mode) & 0x7) << 4)

Definition at line 168 of file netx-regs.h.

#define PHY_CONTROL_PHY0_NP_MSG_CODE

Definition at line 165 of file netx-regs.h.

#define PHY_CONTROL_PHY1_AUTOMDIX   (1<<17)

Definition at line 161 of file netx-regs.h.

#define PHY_CONTROL_PHY1_EN   (1<<21)

Definition at line 159 of file netx-regs.h.

#define PHY_CONTROL_PHY1_FIXMODE   (1<<16)

Definition at line 162 of file netx-regs.h.

#define PHY_CONTROL_PHY1_MODE (   mode)    (((mode) & 0x7) << 13)

Definition at line 163 of file netx-regs.h.

#define PHY_CONTROL_PHY1_NP_MSG_CODE

Definition at line 160 of file netx-regs.h.

#define PHY_CONTROL_PHY_ADDRESS (   adr)    ((adr) & 0xf)

Definition at line 169 of file netx-regs.h.

#define PHY_CONTROL_RESET   (1<<31)

Definition at line 156 of file netx-regs.h.

#define PHY_CONTROL_SIM_BYP   (1<<30)

Definition at line 157 of file netx-regs.h.

#define PHY_MODE_100BASE_TX_FX_FULL   2

Definition at line 173 of file netx-regs.h.

#define PHY_MODE_100BASE_TX_FX_HALF   3

Definition at line 174 of file netx-regs.h.

#define PHY_MODE_100BASE_TX_HALF   4

Definition at line 175 of file netx-regs.h.

#define PHY_MODE_10BASE_T_FULL   1

Definition at line 172 of file netx-regs.h.

#define PHY_MODE_10BASE_T_HALF   0

Definition at line 171 of file netx-regs.h.

#define PHY_MODE_ALL   7

Definition at line 178 of file netx-regs.h.

#define PHY_MODE_POWER_DOWN   6

Definition at line 177 of file netx-regs.h.

#define PHY_MODE_REPEATER   5

Definition at line 176 of file netx-regs.h.

#define RPU_HOLD_PC   (1<<15)

Definition at line 312 of file netx-regs.h.

#define TPU_HOLD_PC   (1<<15)

Definition at line 313 of file netx-regs.h.

#define VECT_CNTL_ENABLE   (1 << 5)

Definition at line 181 of file netx-regs.h.

#define XPU_HOLD_PC   (1<<0)

Definition at line 294 of file netx-regs.h.