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

Go to the source code of this file.

Macros

#define UMAL_CFG1   (PKUNITY_UMAL_BASE + 0x0000)
 
#define UMAL_CFG2   (PKUNITY_UMAL_BASE + 0x0004)
 
#define UMAL_IPGIFG   (PKUNITY_UMAL_BASE + 0x0008)
 
#define UMAL_HALFDUPLEX   (PKUNITY_UMAL_BASE + 0x000c)
 
#define UMAL_MAXFRAME   (PKUNITY_UMAL_BASE + 0x0010)
 
#define UMAL_TESTREG   (PKUNITY_UMAL_BASE + 0x001c)
 
#define UMAL_MIICFG   (PKUNITY_UMAL_BASE + 0x0020)
 
#define UMAL_MIICMD   (PKUNITY_UMAL_BASE + 0x0024)
 
#define UMAL_MIIADDR   (PKUNITY_UMAL_BASE + 0x0028)
 
#define UMAL_MIICTRL   (PKUNITY_UMAL_BASE + 0x002c)
 
#define UMAL_MIISTATUS   (PKUNITY_UMAL_BASE + 0x0030)
 
#define UMAL_MIIIDCT   (PKUNITY_UMAL_BASE + 0x0034)
 
#define UMAL_IFCTRL   (PKUNITY_UMAL_BASE + 0x0038)
 
#define UMAL_IFSTATUS   (PKUNITY_UMAL_BASE + 0x003c)
 
#define UMAL_STADDR1   (PKUNITY_UMAL_BASE + 0x0040)
 
#define UMAL_STADDR2   (PKUNITY_UMAL_BASE + 0x0044)
 
#define UMAL_FIFOCFG0   (PKUNITY_UMAL_BASE + 0x0048)
 
#define UMAL_FIFOCFG1   (PKUNITY_UMAL_BASE + 0x004c)
 
#define UMAL_FIFOCFG2   (PKUNITY_UMAL_BASE + 0x0050)
 
#define UMAL_FIFOCFG3   (PKUNITY_UMAL_BASE + 0x0054)
 
#define UMAL_FIFOCFG4   (PKUNITY_UMAL_BASE + 0x0058)
 
#define UMAL_FIFOCFG5   (PKUNITY_UMAL_BASE + 0x005c)
 
#define UMAL_FIFORAM0   (PKUNITY_UMAL_BASE + 0x0060)
 
#define UMAL_FIFORAM1   (PKUNITY_UMAL_BASE + 0x0064)
 
#define UMAL_FIFORAM2   (PKUNITY_UMAL_BASE + 0x0068)
 
#define UMAL_FIFORAM3   (PKUNITY_UMAL_BASE + 0x006c)
 
#define UMAL_FIFORAM4   (PKUNITY_UMAL_BASE + 0x0070)
 
#define UMAL_FIFORAM5   (PKUNITY_UMAL_BASE + 0x0074)
 
#define UMAL_FIFORAM6   (PKUNITY_UMAL_BASE + 0x0078)
 
#define UMAL_FIFORAM7   (PKUNITY_UMAL_BASE + 0x007c)
 
#define UMAL_DMATxCtrl   (PKUNITY_UMAL_BASE + 0x0180)
 
#define UMAL_DMATxDescriptor   (PKUNITY_UMAL_BASE + 0x0184)
 
#define UMAL_DMATxStatus   (PKUNITY_UMAL_BASE + 0x0188)
 
#define UMAL_DMARxCtrl   (PKUNITY_UMAL_BASE + 0x018c)
 
#define UMAL_DMARxDescriptor   (PKUNITY_UMAL_BASE + 0x0190)
 
#define UMAL_DMARxStatus   (PKUNITY_UMAL_BASE + 0x0194)
 
#define UMAL_DMAIntrMask   (PKUNITY_UMAL_BASE + 0x0198)
 
#define UMAL_DMAInterrupt   (PKUNITY_UMAL_BASE + 0x019c)
 
#define UMAL_CFG1_TXENABLE   FIELD(1, 1, 0)
 
#define UMAL_CFG1_RXENABLE   FIELD(1, 1, 2)
 
#define UMAL_CFG1_TXFLOWCTL   FIELD(1, 1, 4)
 
#define UMAL_CFG1_RXFLOWCTL   FIELD(1, 1, 5)
 
#define UMAL_CFG1_CONFLPBK   FIELD(1, 1, 8)
 
#define UMAL_CFG1_RESET   FIELD(1, 1, 31)
 
#define UMAL_CFG1_CONFFLCTL   (MAC_TX_FLOW_CTL | MAC_RX_FLOW_CTL)
 
#define UMAL_CFG2_FULLDUPLEX   FIELD(1, 1, 0)
 
#define UMAL_CFG2_CRCENABLE   FIELD(1, 1, 1)
 
#define UMAL_CFG2_PADCRC   FIELD(1, 1, 2)
 
#define UMAL_CFG2_LENGTHCHECK   FIELD(1, 1, 4)
 
#define UMAL_CFG2_MODEMASK   FMASK(2, 8)
 
#define UMAL_CFG2_NIBBLEMODE   FIELD(1, 2, 8)
 
#define UMAL_CFG2_BYTEMODE   FIELD(2, 2, 8)
 
#define UMAL_CFG2_PREAMBLENMASK   FMASK(4, 12)
 
#define UMAL_CFG2_DEFPREAMBLEN   FIELD(7, 4, 12)
 
#define UMAL_CFG2_FD100
 
#define UMAL_CFG2_FD1000
 
#define UMAL_CFG2_HD100
 
#define UMAL_IFCTRL_RESET   FIELD(1, 1, 31)
 
#define UMAL_MIICFG_RESET   FIELD(1, 1, 31)
 
#define UMAL_MIICMD_READ   FIELD(1, 1, 0)
 
#define UMAL_MIIIDCT_BUSY   FIELD(1, 1, 0)
 
#define UMAL_MIIIDCT_NOTVALID   FIELD(1, 1, 2)
 
#define UMAL_DMA_Enable   FIELD(1, 1, 0)
 
#define UMAL_DMAIntrMask_ENABLEHALFWORD   FIELD(1, 1, 16)
 
#define CLR_RX_BUS_ERR   FIELD(1, 1, 3)
 
#define CLR_RX_OVERFLOW   FIELD(1, 1, 2)
 
#define CLR_RX_PKT   FIELD(1, 1, 0)
 
#define CLR_TX_BUS_ERR   FIELD(1, 1, 3)
 
#define CLR_TX_UNDERRUN   FIELD(1, 1, 1)
 
#define CLR_TX_PKT   FIELD(1, 1, 0)
 
#define INT_RX_MASK   FIELD(0xd, 4, 4)
 
#define INT_TX_MASK   FIELD(0xb, 4, 0)
 
#define INT_RX_BUS_ERR   FIELD(1, 1, 7)
 
#define INT_RX_OVERFLOW   FIELD(1, 1, 6)
 
#define INT_RX_PKT   FIELD(1, 1, 4)
 
#define INT_TX_BUS_ERR   FIELD(1, 1, 3)
 
#define INT_TX_UNDERRUN   FIELD(1, 1, 1)
 
#define INT_TX_PKT   FIELD(1, 1, 0)
 
#define UMAL_DESC_PACKETSIZE_EMPTY   FIELD(1, 1, 31)
 
#define UMAL_DESC_PACKETSIZE_NONEMPTY   FIELD(0, 1, 31)
 
#define UMAL_DESC_PACKETSIZE_SIZEMASK   FMASK(12, 0)
 

Macro Definition Documentation

#define CLR_RX_BUS_ERR   FIELD(1, 1, 3)

Definition at line 199 of file regs-umal.h.

#define CLR_RX_OVERFLOW   FIELD(1, 1, 2)

Definition at line 200 of file regs-umal.h.

#define CLR_RX_PKT   FIELD(1, 1, 0)

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

#define CLR_TX_BUS_ERR   FIELD(1, 1, 3)

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

#define CLR_TX_PKT   FIELD(1, 1, 0)

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

#define CLR_TX_UNDERRUN   FIELD(1, 1, 1)

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

#define INT_RX_BUS_ERR   FIELD(1, 1, 7)

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

#define INT_RX_MASK   FIELD(0xd, 4, 4)

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

#define INT_RX_OVERFLOW   FIELD(1, 1, 6)

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

#define INT_RX_PKT   FIELD(1, 1, 4)

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

#define INT_TX_BUS_ERR   FIELD(1, 1, 3)

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

#define INT_TX_MASK   FIELD(0xb, 4, 0)

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

#define INT_TX_PKT   FIELD(1, 1, 0)

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

#define INT_TX_UNDERRUN   FIELD(1, 1, 1)

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

#define UMAL_CFG1   (PKUNITY_UMAL_BASE + 0x0000)

Definition at line 13 of file regs-umal.h.

#define UMAL_CFG1_CONFFLCTL   (MAC_TX_FLOW_CTL | MAC_RX_FLOW_CTL)

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

#define UMAL_CFG1_CONFLPBK   FIELD(1, 1, 8)

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

#define UMAL_CFG1_RESET   FIELD(1, 1, 31)

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

#define UMAL_CFG1_RXENABLE   FIELD(1, 1, 2)

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

#define UMAL_CFG1_RXFLOWCTL   FIELD(1, 1, 5)

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

#define UMAL_CFG1_TXENABLE   FIELD(1, 1, 0)

Definition at line 135 of file regs-umal.h.

#define UMAL_CFG1_TXFLOWCTL   FIELD(1, 1, 4)

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

#define UMAL_CFG2   (PKUNITY_UMAL_BASE + 0x0004)

Definition at line 17 of file regs-umal.h.

#define UMAL_CFG2_BYTEMODE   FIELD(2, 2, 8)

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

#define UMAL_CFG2_CRCENABLE   FIELD(1, 1, 1)

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

#define UMAL_CFG2_DEFPREAMBLEN   FIELD(7, 4, 12)

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

#define UMAL_CFG2_FD100
#define UMAL_CFG2_FD1000
#define UMAL_CFG2_FULLDUPLEX   FIELD(1, 1, 0)

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

#define UMAL_CFG2_HD100
#define UMAL_CFG2_LENGTHCHECK   FIELD(1, 1, 4)

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

#define UMAL_CFG2_MODEMASK   FMASK(2, 8)

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

#define UMAL_CFG2_NIBBLEMODE   FIELD(1, 2, 8)

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

#define UMAL_CFG2_PADCRC   FIELD(1, 1, 2)

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

#define UMAL_CFG2_PREAMBLENMASK   FMASK(4, 12)

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

#define UMAL_DESC_PACKETSIZE_EMPTY   FIELD(1, 1, 31)

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

#define UMAL_DESC_PACKETSIZE_NONEMPTY   FIELD(0, 1, 31)

Definition at line 227 of file regs-umal.h.

#define UMAL_DESC_PACKETSIZE_SIZEMASK   FMASK(12, 0)

Definition at line 228 of file regs-umal.h.

#define UMAL_DMA_Enable   FIELD(1, 1, 0)

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

#define UMAL_DMAInterrupt   (PKUNITY_UMAL_BASE + 0x019c)

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

#define UMAL_DMAIntrMask   (PKUNITY_UMAL_BASE + 0x0198)

Definition at line 126 of file regs-umal.h.

#define UMAL_DMAIntrMask_ENABLEHALFWORD   FIELD(1, 1, 16)

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

#define UMAL_DMARxCtrl   (PKUNITY_UMAL_BASE + 0x018c)

Definition at line 114 of file regs-umal.h.

#define UMAL_DMARxDescriptor   (PKUNITY_UMAL_BASE + 0x0190)

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

#define UMAL_DMARxStatus   (PKUNITY_UMAL_BASE + 0x0194)

Definition at line 122 of file regs-umal.h.

#define UMAL_DMATxCtrl   (PKUNITY_UMAL_BASE + 0x0180)

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

#define UMAL_DMATxDescriptor   (PKUNITY_UMAL_BASE + 0x0184)

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

#define UMAL_DMATxStatus   (PKUNITY_UMAL_BASE + 0x0188)

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

#define UMAL_FIFOCFG0   (PKUNITY_UMAL_BASE + 0x0048)

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

#define UMAL_FIFOCFG1   (PKUNITY_UMAL_BASE + 0x004c)

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

#define UMAL_FIFOCFG2   (PKUNITY_UMAL_BASE + 0x0050)

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

#define UMAL_FIFOCFG3   (PKUNITY_UMAL_BASE + 0x0054)

Definition at line 82 of file regs-umal.h.

#define UMAL_FIFOCFG4   (PKUNITY_UMAL_BASE + 0x0058)

Definition at line 83 of file regs-umal.h.

#define UMAL_FIFOCFG5   (PKUNITY_UMAL_BASE + 0x005c)

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

#define UMAL_FIFORAM0   (PKUNITY_UMAL_BASE + 0x0060)

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

#define UMAL_FIFORAM1   (PKUNITY_UMAL_BASE + 0x0064)

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

#define UMAL_FIFORAM2   (PKUNITY_UMAL_BASE + 0x0068)

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

#define UMAL_FIFORAM3   (PKUNITY_UMAL_BASE + 0x006c)

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

#define UMAL_FIFORAM4   (PKUNITY_UMAL_BASE + 0x0070)

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

#define UMAL_FIFORAM5   (PKUNITY_UMAL_BASE + 0x0074)

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

#define UMAL_FIFORAM6   (PKUNITY_UMAL_BASE + 0x0078)

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

#define UMAL_FIFORAM7   (PKUNITY_UMAL_BASE + 0x007c)

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

#define UMAL_HALFDUPLEX   (PKUNITY_UMAL_BASE + 0x000c)

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

#define UMAL_IFCTRL   (PKUNITY_UMAL_BASE + 0x0038)

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

#define UMAL_IFCTRL_RESET   FIELD(1, 1, 31)

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

#define UMAL_IFSTATUS   (PKUNITY_UMAL_BASE + 0x003c)

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

#define UMAL_IPGIFG   (PKUNITY_UMAL_BASE + 0x0008)

Definition at line 21 of file regs-umal.h.

#define UMAL_MAXFRAME   (PKUNITY_UMAL_BASE + 0x0010)

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

#define UMAL_MIIADDR   (PKUNITY_UMAL_BASE + 0x0028)

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

#define UMAL_MIICFG   (PKUNITY_UMAL_BASE + 0x0020)

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

#define UMAL_MIICFG_RESET   FIELD(1, 1, 31)

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

#define UMAL_MIICMD   (PKUNITY_UMAL_BASE + 0x0024)

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

#define UMAL_MIICMD_READ   FIELD(1, 1, 0)

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

#define UMAL_MIICTRL   (PKUNITY_UMAL_BASE + 0x002c)

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

#define UMAL_MIIIDCT   (PKUNITY_UMAL_BASE + 0x0034)

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

#define UMAL_MIIIDCT_BUSY   FIELD(1, 1, 0)

Definition at line 183 of file regs-umal.h.

#define UMAL_MIIIDCT_NOTVALID   FIELD(1, 1, 2)

Definition at line 184 of file regs-umal.h.

#define UMAL_MIISTATUS   (PKUNITY_UMAL_BASE + 0x0030)

Definition at line 53 of file regs-umal.h.

#define UMAL_STADDR1   (PKUNITY_UMAL_BASE + 0x0040)

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

#define UMAL_STADDR2   (PKUNITY_UMAL_BASE + 0x0044)

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

#define UMAL_TESTREG   (PKUNITY_UMAL_BASE + 0x001c)

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