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

Go to the source code of this file.

Macros

#define PNX833X_BASE   (0xa0000000ul + 0x17E00000ul)
 
#define PNX833X_REG(offs)   (*((volatile unsigned long *)(PNX833X_BASE + offs)))
 
#define PNX833X_BIT(val, reg, field)   ((val) & PNX833X_##reg##_##field)
 
#define PNX833X_REGBIT(reg, field)   PNX833X_BIT(PNX833X_##reg, reg, field)
 
#define PNX_FIELD(cpu, val, reg, field)
 
#define PNX833X_FIELD(val, reg, field)   PNX_FIELD(833X, val, reg, field)
 
#define PNX8330_FIELD(val, reg, field)   PNX_FIELD(8330, val, reg, field)
 
#define PNX8335_FIELD(val, reg, field)   PNX_FIELD(8335, val, reg, field)
 
#define PNX833X_REGFIELD(reg, field)   PNX833X_FIELD(PNX833X_##reg, reg, field)
 
#define PNX8330_REGFIELD(reg, field)   PNX8330_FIELD(PNX8330_##reg, reg, field)
 
#define PNX8335_REGFIELD(reg, field)   PNX8335_FIELD(PNX8335_##reg, reg, field)
 
#define PNX_WRITEFIELD(cpu, val, reg, field)
 
#define PNX833X_WRITEFIELD(val, reg, field)   PNX_WRITEFIELD(833X, val, reg, field)
 
#define PNX8330_WRITEFIELD(val, reg, field)   PNX_WRITEFIELD(8330, val, reg, field)
 
#define PNX8335_WRITEFIELD(val, reg, field)   PNX_WRITEFIELD(8335, val, reg, field)
 
#define PNX833X_CONFIG_MODULE_ID   PNX833X_REG(0x7FFC)
 
#define PNX833X_CONFIG_MODULE_ID_MAJREV_MASK   0x0000f000
 
#define PNX833X_CONFIG_MODULE_ID_MAJREV_SHIFT   12
 
#define PNX8330_CONFIG_MODULE_MAJREV   4
 
#define PNX8335_CONFIG_MODULE_MAJREV   5
 
#define CPU_IS_PNX8330
 
#define CPU_IS_PNX8335
 
#define PNX833X_RESET_CONTROL   PNX833X_REG(0x8004)
 
#define PNX833X_RESET_CONTROL_2   PNX833X_REG(0x8014)
 
#define PNX833X_PIC_REG(offs)   PNX833X_REG(0x01000 + (offs))
 
#define PNX833X_PIC_INT_PRIORITY   PNX833X_PIC_REG(0x0)
 
#define PNX833X_PIC_INT_SRC   PNX833X_PIC_REG(0x4)
 
#define PNX833X_PIC_INT_SRC_INT_SRC_MASK   0x00000FF8ul /* bits 11:3 */
 
#define PNX833X_PIC_INT_SRC_INT_SRC_SHIFT   3
 
#define PNX833X_PIC_INT_REG(irq)   PNX833X_PIC_REG(0x10 + 4*(irq))
 
#define PNX833X_CLOCK_CPUCP_CTL   PNX833X_REG(0x9228)
 
#define PNX833X_CLOCK_CPUCP_CTL_EXIT_RESET   0x00000002ul /* bit 1 */
 
#define PNX833X_CLOCK_CPUCP_CTL_DIV_CLOCK_MASK   0x00000018ul /* bits 4:3 */
 
#define PNX833X_CLOCK_CPUCP_CTL_DIV_CLOCK_SHIFT   3
 
#define PNX8335_CLOCK_PLL_CPU_CTL   PNX833X_REG(0x9020)
 
#define PNX8335_CLOCK_PLL_CPU_CTL_FREQ_MASK   0x1f
 
#define PNX8335_CLOCK_PLL_CPU_CTL_FREQ_SHIFT   0
 
#define PNX833X_CONFIG_MUX   PNX833X_REG(0x7004)
 
#define PNX833X_CONFIG_MUX_IDE_MUX   0x00000080 /* bit 7 */
 
#define PNX8330_CONFIG_POLYFUSE_7   PNX833X_REG(0x7040)
 
#define PNX8330_CONFIG_POLYFUSE_7_BOOT_MODE_MASK   0x00180000
 
#define PNX8330_CONFIG_POLYFUSE_7_BOOT_MODE_SHIFT   19
 
#define PNX833X_PIO_IN   PNX833X_REG(0xF000)
 
#define PNX833X_PIO_OUT   PNX833X_REG(0xF004)
 
#define PNX833X_PIO_DIR   PNX833X_REG(0xF008)
 
#define PNX833X_PIO_SEL   PNX833X_REG(0xF014)
 
#define PNX833X_PIO_INT_EDGE   PNX833X_REG(0xF020)
 
#define PNX833X_PIO_INT_HI   PNX833X_REG(0xF024)
 
#define PNX833X_PIO_INT_LO   PNX833X_REG(0xF028)
 
#define PNX833X_PIO_INT_STATUS   PNX833X_REG(0xFFE0)
 
#define PNX833X_PIO_INT_ENABLE   PNX833X_REG(0xFFE4)
 
#define PNX833X_PIO_INT_CLEAR   PNX833X_REG(0xFFE8)
 
#define PNX833X_PIO_IN2   PNX833X_REG(0xF05C)
 
#define PNX833X_PIO_OUT2   PNX833X_REG(0xF060)
 
#define PNX833X_PIO_DIR2   PNX833X_REG(0xF064)
 
#define PNX833X_PIO_SEL2   PNX833X_REG(0xF068)
 
#define PNX833X_UART0_PORTS_START   (PNX833X_BASE + 0xB000)
 
#define PNX833X_UART0_PORTS_END   (PNX833X_BASE + 0xBFFF)
 
#define PNX833X_UART1_PORTS_START   (PNX833X_BASE + 0xC000)
 
#define PNX833X_UART1_PORTS_END   (PNX833X_BASE + 0xCFFF)
 
#define PNX833X_USB_PORTS_START   (PNX833X_BASE + 0x19000)
 
#define PNX833X_USB_PORTS_END   (PNX833X_BASE + 0x19FFF)
 
#define PNX833X_CONFIG_USB   PNX833X_REG(0x7008)
 
#define PNX833X_I2C0_PORTS_START   (PNX833X_BASE + 0xD000)
 
#define PNX833X_I2C0_PORTS_END   (PNX833X_BASE + 0xDFFF)
 
#define PNX833X_I2C1_PORTS_START   (PNX833X_BASE + 0xE000)
 
#define PNX833X_I2C1_PORTS_END   (PNX833X_BASE + 0xEFFF)
 
#define PNX833X_IDE_PORTS_START   (PNX833X_BASE + 0x1A000)
 
#define PNX833X_IDE_PORTS_END   (PNX833X_BASE + 0x1AFFF)
 
#define PNX833X_IDE_MODULE_ID   PNX833X_REG(0x1AFFC)
 
#define PNX833X_IDE_MODULE_ID_MODULE_ID_MASK   0xFFFF0000
 
#define PNX833X_IDE_MODULE_ID_MODULE_ID_SHIFT   16
 
#define PNX833X_IDE_MODULE_ID_VALUE   0xA009
 
#define PNX833X_MIU_SEL0   PNX833X_REG(0x2004)
 
#define PNX833X_MIU_SEL0_TIMING   PNX833X_REG(0x2008)
 
#define PNX833X_MIU_SEL1   PNX833X_REG(0x200C)
 
#define PNX833X_MIU_SEL1_TIMING   PNX833X_REG(0x2010)
 
#define PNX833X_MIU_SEL2   PNX833X_REG(0x2014)
 
#define PNX833X_MIU_SEL2_TIMING   PNX833X_REG(0x2018)
 
#define PNX833X_MIU_SEL3   PNX833X_REG(0x201C)
 
#define PNX833X_MIU_SEL3_TIMING   PNX833X_REG(0x2020)
 
#define PNX833X_MIU_SEL0_SPI_MODE_ENABLE_MASK   (1 << 14)
 
#define PNX833X_MIU_SEL0_SPI_MODE_ENABLE_SHIFT   14
 
#define PNX833X_MIU_SEL0_BURST_MODE_ENABLE_MASK   (1 << 7)
 
#define PNX833X_MIU_SEL0_BURST_MODE_ENABLE_SHIFT   7
 
#define PNX833X_MIU_SEL0_BURST_PAGE_LEN_MASK   (0xF << 9)
 
#define PNX833X_MIU_SEL0_BURST_PAGE_LEN_SHIFT   9
 
#define PNX833X_MIU_CONFIG_SPI   PNX833X_REG(0x2000)
 
#define PNX833X_MIU_CONFIG_SPI_OPCODE_MASK   (0xFF << 3)
 
#define PNX833X_MIU_CONFIG_SPI_OPCODE_SHIFT   3
 
#define PNX833X_MIU_CONFIG_SPI_DATA_ENABLE_MASK   (1 << 2)
 
#define PNX833X_MIU_CONFIG_SPI_DATA_ENABLE_SHIFT   2
 
#define PNX833X_MIU_CONFIG_SPI_ADDR_ENABLE_MASK   (1 << 1)
 
#define PNX833X_MIU_CONFIG_SPI_ADDR_ENABLE_SHIFT   1
 
#define PNX833X_MIU_CONFIG_SPI_SYNC_MASK   (1 << 0)
 
#define PNX833X_MIU_CONFIG_SPI_SYNC_SHIFT   0
 
#define PNX833X_WRITE_CONFIG_SPI(opcode, data_enable, addr_enable, sync)
 
#define PNX8335_IP3902_PORTS_START   (PNX833X_BASE + 0x2F000)
 
#define PNX8335_IP3902_PORTS_END   (PNX833X_BASE + 0x2FFFF)
 
#define PNX8335_IP3902_MODULE_ID   PNX833X_REG(0x2FFFC)
 
#define PNX8335_IP3902_MODULE_ID_MODULE_ID_MASK   0xFFFF0000
 
#define PNX8335_IP3902_MODULE_ID_MODULE_ID_SHIFT   16
 
#define PNX8335_IP3902_MODULE_ID_VALUE   0x3902
 
#define PNX8335_NAND_BASE   0x18000000
 
#define PNX8335_NAND_CLE_MASK   0x00100000
 
#define PNX8335_NAND_ALE_MASK   0x00010000
 
#define PNX8335_SATA_PORTS_START   (PNX833X_BASE + 0x2E000)
 
#define PNX8335_SATA_PORTS_END   (PNX833X_BASE + 0x2EFFF)
 
#define PNX8335_SATA_MODULE_ID   PNX833X_REG(0x2EFFC)
 
#define PNX8335_SATA_MODULE_ID_MODULE_ID_MASK   0xFFFF0000
 
#define PNX8335_SATA_MODULE_ID_MODULE_ID_SHIFT   16
 
#define PNX8335_SATA_MODULE_ID_VALUE   0xA099
 

Macro Definition Documentation

#define CPU_IS_PNX8330
Value:
(PNX833X_REGFIELD(CONFIG_MODULE_ID, MAJREV) == \
PNX8330_CONFIG_MODULE_MAJREV)

Definition at line 68 of file pnx833x.h.

#define CPU_IS_PNX8335
Value:
(PNX833X_REGFIELD(CONFIG_MODULE_ID, MAJREV) == \
PNX8335_CONFIG_MODULE_MAJREV)

Definition at line 70 of file pnx833x.h.

#define PNX8330_CONFIG_MODULE_MAJREV   4

Definition at line 66 of file pnx833x.h.

#define PNX8330_CONFIG_POLYFUSE_7   PNX833X_REG(0x7040)

Definition at line 97 of file pnx833x.h.

#define PNX8330_CONFIG_POLYFUSE_7_BOOT_MODE_MASK   0x00180000

Definition at line 98 of file pnx833x.h.

#define PNX8330_CONFIG_POLYFUSE_7_BOOT_MODE_SHIFT   19

Definition at line 99 of file pnx833x.h.

#define PNX8330_FIELD (   val,
  reg,
  field 
)    PNX_FIELD(8330, val, reg, field)

Definition at line 41 of file pnx833x.h.

#define PNX8330_REGFIELD (   reg,
  field 
)    PNX8330_FIELD(PNX8330_##reg, reg, field)

Definition at line 46 of file pnx833x.h.

#define PNX8330_WRITEFIELD (   val,
  reg,
  field 
)    PNX_WRITEFIELD(8330, val, reg, field)

Definition at line 55 of file pnx833x.h.

#define PNX8335_CLOCK_PLL_CPU_CTL   PNX833X_REG(0x9020)

Definition at line 90 of file pnx833x.h.

#define PNX8335_CLOCK_PLL_CPU_CTL_FREQ_MASK   0x1f

Definition at line 91 of file pnx833x.h.

#define PNX8335_CLOCK_PLL_CPU_CTL_FREQ_SHIFT   0

Definition at line 92 of file pnx833x.h.

#define PNX8335_CONFIG_MODULE_MAJREV   5

Definition at line 67 of file pnx833x.h.

#define PNX8335_FIELD (   val,
  reg,
  field 
)    PNX_FIELD(8335, val, reg, field)

Definition at line 42 of file pnx833x.h.

#define PNX8335_IP3902_MODULE_ID   PNX833X_REG(0x2FFFC)

Definition at line 181 of file pnx833x.h.

#define PNX8335_IP3902_MODULE_ID_MODULE_ID_MASK   0xFFFF0000

Definition at line 183 of file pnx833x.h.

#define PNX8335_IP3902_MODULE_ID_MODULE_ID_SHIFT   16

Definition at line 184 of file pnx833x.h.

#define PNX8335_IP3902_MODULE_ID_VALUE   0x3902

Definition at line 185 of file pnx833x.h.

#define PNX8335_IP3902_PORTS_END   (PNX833X_BASE + 0x2FFFF)

Definition at line 180 of file pnx833x.h.

#define PNX8335_IP3902_PORTS_START   (PNX833X_BASE + 0x2F000)

Definition at line 179 of file pnx833x.h.

#define PNX8335_NAND_ALE_MASK   0x00010000

Definition at line 192 of file pnx833x.h.

#define PNX8335_NAND_BASE   0x18000000

Definition at line 188 of file pnx833x.h.

#define PNX8335_NAND_CLE_MASK   0x00100000

Definition at line 190 of file pnx833x.h.

#define PNX8335_REGFIELD (   reg,
  field 
)    PNX8335_FIELD(PNX8335_##reg, reg, field)

Definition at line 47 of file pnx833x.h.

#define PNX8335_SATA_MODULE_ID   PNX833X_REG(0x2EFFC)

Definition at line 196 of file pnx833x.h.

#define PNX8335_SATA_MODULE_ID_MODULE_ID_MASK   0xFFFF0000

Definition at line 198 of file pnx833x.h.

#define PNX8335_SATA_MODULE_ID_MODULE_ID_SHIFT   16

Definition at line 199 of file pnx833x.h.

#define PNX8335_SATA_MODULE_ID_VALUE   0xA099

Definition at line 200 of file pnx833x.h.

#define PNX8335_SATA_PORTS_END   (PNX833X_BASE + 0x2EFFF)

Definition at line 195 of file pnx833x.h.

#define PNX8335_SATA_PORTS_START   (PNX833X_BASE + 0x2E000)

Definition at line 194 of file pnx833x.h.

#define PNX8335_WRITEFIELD (   val,
  reg,
  field 
)    PNX_WRITEFIELD(8335, val, reg, field)

Definition at line 57 of file pnx833x.h.

#define PNX833X_BASE   (0xa0000000ul + 0x17E00000ul)

Definition at line 26 of file pnx833x.h.

#define PNX833X_BIT (   val,
  reg,
  field 
)    ((val) & PNX833X_##reg##_##field)

Definition at line 33 of file pnx833x.h.

#define PNX833X_CLOCK_CPUCP_CTL   PNX833X_REG(0x9228)

Definition at line 85 of file pnx833x.h.

#define PNX833X_CLOCK_CPUCP_CTL_DIV_CLOCK_MASK   0x00000018ul /* bits 4:3 */

Definition at line 87 of file pnx833x.h.

#define PNX833X_CLOCK_CPUCP_CTL_DIV_CLOCK_SHIFT   3

Definition at line 88 of file pnx833x.h.

#define PNX833X_CLOCK_CPUCP_CTL_EXIT_RESET   0x00000002ul /* bit 1 */

Definition at line 86 of file pnx833x.h.

#define PNX833X_CONFIG_MODULE_ID   PNX833X_REG(0x7FFC)

Definition at line 63 of file pnx833x.h.

#define PNX833X_CONFIG_MODULE_ID_MAJREV_MASK   0x0000f000

Definition at line 64 of file pnx833x.h.

#define PNX833X_CONFIG_MODULE_ID_MAJREV_SHIFT   12

Definition at line 65 of file pnx833x.h.

#define PNX833X_CONFIG_MUX   PNX833X_REG(0x7004)

Definition at line 94 of file pnx833x.h.

#define PNX833X_CONFIG_MUX_IDE_MUX   0x00000080 /* bit 7 */

Definition at line 95 of file pnx833x.h.

#define PNX833X_CONFIG_USB   PNX833X_REG(0x7008)

Definition at line 124 of file pnx833x.h.

#define PNX833X_FIELD (   val,
  reg,
  field 
)    PNX_FIELD(833X, val, reg, field)

Definition at line 40 of file pnx833x.h.

#define PNX833X_I2C0_PORTS_END   (PNX833X_BASE + 0xDFFF)

Definition at line 127 of file pnx833x.h.

#define PNX833X_I2C0_PORTS_START   (PNX833X_BASE + 0xD000)

Definition at line 126 of file pnx833x.h.

#define PNX833X_I2C1_PORTS_END   (PNX833X_BASE + 0xEFFF)

Definition at line 129 of file pnx833x.h.

#define PNX833X_I2C1_PORTS_START   (PNX833X_BASE + 0xE000)

Definition at line 128 of file pnx833x.h.

#define PNX833X_IDE_MODULE_ID   PNX833X_REG(0x1AFFC)

Definition at line 133 of file pnx833x.h.

#define PNX833X_IDE_MODULE_ID_MODULE_ID_MASK   0xFFFF0000

Definition at line 135 of file pnx833x.h.

#define PNX833X_IDE_MODULE_ID_MODULE_ID_SHIFT   16

Definition at line 136 of file pnx833x.h.

#define PNX833X_IDE_MODULE_ID_VALUE   0xA009

Definition at line 137 of file pnx833x.h.

#define PNX833X_IDE_PORTS_END   (PNX833X_BASE + 0x1AFFF)

Definition at line 132 of file pnx833x.h.

#define PNX833X_IDE_PORTS_START   (PNX833X_BASE + 0x1A000)

Definition at line 131 of file pnx833x.h.

#define PNX833X_MIU_CONFIG_SPI   PNX833X_REG(0x2000)

Definition at line 158 of file pnx833x.h.

#define PNX833X_MIU_CONFIG_SPI_ADDR_ENABLE_MASK   (1 << 1)

Definition at line 166 of file pnx833x.h.

#define PNX833X_MIU_CONFIG_SPI_ADDR_ENABLE_SHIFT   1

Definition at line 167 of file pnx833x.h.

#define PNX833X_MIU_CONFIG_SPI_DATA_ENABLE_MASK   (1 << 2)

Definition at line 163 of file pnx833x.h.

#define PNX833X_MIU_CONFIG_SPI_DATA_ENABLE_SHIFT   2

Definition at line 164 of file pnx833x.h.

#define PNX833X_MIU_CONFIG_SPI_OPCODE_MASK   (0xFF << 3)

Definition at line 160 of file pnx833x.h.

#define PNX833X_MIU_CONFIG_SPI_OPCODE_SHIFT   3

Definition at line 161 of file pnx833x.h.

#define PNX833X_MIU_CONFIG_SPI_SYNC_MASK   (1 << 0)

Definition at line 169 of file pnx833x.h.

#define PNX833X_MIU_CONFIG_SPI_SYNC_SHIFT   0

Definition at line 170 of file pnx833x.h.

#define PNX833X_MIU_SEL0   PNX833X_REG(0x2004)

Definition at line 140 of file pnx833x.h.

#define PNX833X_MIU_SEL0_BURST_MODE_ENABLE_MASK   (1 << 7)

Definition at line 152 of file pnx833x.h.

#define PNX833X_MIU_SEL0_BURST_MODE_ENABLE_SHIFT   7

Definition at line 153 of file pnx833x.h.

#define PNX833X_MIU_SEL0_BURST_PAGE_LEN_MASK   (0xF << 9)

Definition at line 155 of file pnx833x.h.

#define PNX833X_MIU_SEL0_BURST_PAGE_LEN_SHIFT   9

Definition at line 156 of file pnx833x.h.

#define PNX833X_MIU_SEL0_SPI_MODE_ENABLE_MASK   (1 << 14)

Definition at line 149 of file pnx833x.h.

#define PNX833X_MIU_SEL0_SPI_MODE_ENABLE_SHIFT   14

Definition at line 150 of file pnx833x.h.

#define PNX833X_MIU_SEL0_TIMING   PNX833X_REG(0x2008)

Definition at line 141 of file pnx833x.h.

#define PNX833X_MIU_SEL1   PNX833X_REG(0x200C)

Definition at line 142 of file pnx833x.h.

#define PNX833X_MIU_SEL1_TIMING   PNX833X_REG(0x2010)

Definition at line 143 of file pnx833x.h.

#define PNX833X_MIU_SEL2   PNX833X_REG(0x2014)

Definition at line 144 of file pnx833x.h.

#define PNX833X_MIU_SEL2_TIMING   PNX833X_REG(0x2018)

Definition at line 145 of file pnx833x.h.

#define PNX833X_MIU_SEL3   PNX833X_REG(0x201C)

Definition at line 146 of file pnx833x.h.

#define PNX833X_MIU_SEL3_TIMING   PNX833X_REG(0x2020)

Definition at line 147 of file pnx833x.h.

#define PNX833X_PIC_INT_PRIORITY   PNX833X_PIC_REG(0x0)

Definition at line 79 of file pnx833x.h.

#define PNX833X_PIC_INT_REG (   irq)    PNX833X_PIC_REG(0x10 + 4*(irq))

Definition at line 83 of file pnx833x.h.

#define PNX833X_PIC_INT_SRC   PNX833X_PIC_REG(0x4)

Definition at line 80 of file pnx833x.h.

#define PNX833X_PIC_INT_SRC_INT_SRC_MASK   0x00000FF8ul /* bits 11:3 */

Definition at line 81 of file pnx833x.h.

#define PNX833X_PIC_INT_SRC_INT_SRC_SHIFT   3

Definition at line 82 of file pnx833x.h.

#define PNX833X_PIC_REG (   offs)    PNX833X_REG(0x01000 + (offs))

Definition at line 78 of file pnx833x.h.

#define PNX833X_PIO_DIR   PNX833X_REG(0xF008)

Definition at line 103 of file pnx833x.h.

#define PNX833X_PIO_DIR2   PNX833X_REG(0xF064)

Definition at line 113 of file pnx833x.h.

#define PNX833X_PIO_IN   PNX833X_REG(0xF000)

Definition at line 101 of file pnx833x.h.

#define PNX833X_PIO_IN2   PNX833X_REG(0xF05C)

Definition at line 111 of file pnx833x.h.

#define PNX833X_PIO_INT_CLEAR   PNX833X_REG(0xFFE8)

Definition at line 110 of file pnx833x.h.

#define PNX833X_PIO_INT_EDGE   PNX833X_REG(0xF020)

Definition at line 105 of file pnx833x.h.

#define PNX833X_PIO_INT_ENABLE   PNX833X_REG(0xFFE4)

Definition at line 109 of file pnx833x.h.

#define PNX833X_PIO_INT_HI   PNX833X_REG(0xF024)

Definition at line 106 of file pnx833x.h.

#define PNX833X_PIO_INT_LO   PNX833X_REG(0xF028)

Definition at line 107 of file pnx833x.h.

#define PNX833X_PIO_INT_STATUS   PNX833X_REG(0xFFE0)

Definition at line 108 of file pnx833x.h.

#define PNX833X_PIO_OUT   PNX833X_REG(0xF004)

Definition at line 102 of file pnx833x.h.

#define PNX833X_PIO_OUT2   PNX833X_REG(0xF060)

Definition at line 112 of file pnx833x.h.

#define PNX833X_PIO_SEL   PNX833X_REG(0xF014)

Definition at line 104 of file pnx833x.h.

#define PNX833X_PIO_SEL2   PNX833X_REG(0xF068)

Definition at line 114 of file pnx833x.h.

#define PNX833X_REG (   offs)    (*((volatile unsigned long *)(PNX833X_BASE + offs)))

Definition at line 28 of file pnx833x.h.

#define PNX833X_REGBIT (   reg,
  field 
)    PNX833X_BIT(PNX833X_##reg, reg, field)

Definition at line 34 of file pnx833x.h.

#define PNX833X_REGFIELD (   reg,
  field 
)    PNX833X_FIELD(PNX833X_##reg, reg, field)

Definition at line 45 of file pnx833x.h.

#define PNX833X_RESET_CONTROL   PNX833X_REG(0x8004)

Definition at line 75 of file pnx833x.h.

#define PNX833X_RESET_CONTROL_2   PNX833X_REG(0x8014)

Definition at line 76 of file pnx833x.h.

#define PNX833X_UART0_PORTS_END   (PNX833X_BASE + 0xBFFF)

Definition at line 117 of file pnx833x.h.

#define PNX833X_UART0_PORTS_START   (PNX833X_BASE + 0xB000)

Definition at line 116 of file pnx833x.h.

#define PNX833X_UART1_PORTS_END   (PNX833X_BASE + 0xCFFF)

Definition at line 119 of file pnx833x.h.

#define PNX833X_UART1_PORTS_START   (PNX833X_BASE + 0xC000)

Definition at line 118 of file pnx833x.h.

#define PNX833X_USB_PORTS_END   (PNX833X_BASE + 0x19FFF)

Definition at line 122 of file pnx833x.h.

#define PNX833X_USB_PORTS_START   (PNX833X_BASE + 0x19000)

Definition at line 121 of file pnx833x.h.

#define PNX833X_WRITE_CONFIG_SPI (   opcode,
  data_enable,
  addr_enable,
  sync 
)
#define PNX833X_WRITEFIELD (   val,
  reg,
  field 
)    PNX_WRITEFIELD(833X, val, reg, field)

Definition at line 53 of file pnx833x.h.

#define PNX_FIELD (   cpu,
  val,
  reg,
  field 
)
Value:
(((val) & PNX##cpu##_##reg##_##field##_MASK) >> \
PNX##cpu##_##reg##_##field##_SHIFT)

Definition at line 37 of file pnx833x.h.

#define PNX_WRITEFIELD (   cpu,
  val,
  reg,
  field 
)
Value:
(PNX##cpu##_##reg = (PNX##cpu##_##reg & ~(PNX##cpu##_##reg##_##field##_MASK)) | \
((val) << PNX##cpu##_##reg##_##field##_SHIFT))

Definition at line 50 of file pnx833x.h.