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

Go to the source code of this file.

Data Structures

struct  eth_regs
 

Macros

#define ETH0_BASE_ADDR   0x18060000
 
#define ETH_INT_FC_EN   (1 << 0)
 
#define ETH_INT_FC_ITS   (1 << 1)
 
#define ETH_INT_FC_RIP   (1 << 2)
 
#define ETH_INT_FC_JAM   (1 << 3)
 
#define ETH_INT_FC_OVR   (1 << 4)
 
#define ETH_INT_FC_UND   (1 << 5)
 
#define ETH_INT_FC_IOC   0x000000c0
 
#define ETH_FIFI_TT_TTH_BIT   0
 
#define ETH_FIFO_TT_TTH   0x0000007f
 
#define ETH_ARC_PRO   (1 << 0)
 
#define ETH_ARC_AM   (1 << 1)
 
#define ETH_ARC_AFM   (1 << 2)
 
#define ETH_ARC_AB   (1 << 3)
 
#define ETH_SAL_BYTE_5   0x000000ff
 
#define ETH_SAL_BYTE_4   0x0000ff00
 
#define ETH_SAL_BYTE_3   0x00ff0000
 
#define ETH_SAL_BYTE_2   0xff000000
 
#define ETH_SAH_BYTE1   0x000000ff
 
#define ETH_SAH_BYTE0   0x0000ff00
 
#define ETH_GPF_PTV   0x0000ffff
 
#define ETH_PFS_PFD   (1 << 0)
 
#define ETH_CFSA0_CFSA4   0x000000ff
 
#define ETH_CFSA0_CFSA5   0x0000ff00
 
#define ETH_CFSA1_CFSA2   0x000000ff
 
#define ETH_CFSA1_CFSA3   0x0000ff00
 
#define ETH_CFSA1_CFSA0   0x000000ff
 
#define ETH_CFSA1_CFSA1   0x0000ff00
 
#define ETH_MAC1_RE   (1 << 0)
 
#define ETH_MAC1_PAF   (1 << 1)
 
#define ETH_MAC1_RFC   (1 << 2)
 
#define ETH_MAC1_TFC   (1 << 3)
 
#define ETH_MAC1_LB   (1 << 4)
 
#define ETH_MAC1_MR   (1 << 31)
 
#define ETH_MAC2_FD   (1 << 0)
 
#define ETH_MAC2_FLC   (1 << 1)
 
#define ETH_MAC2_HFE   (1 << 2)
 
#define ETH_MAC2_DC   (1 << 3)
 
#define ETH_MAC2_CEN   (1 << 4)
 
#define ETH_MAC2_PE   (1 << 5)
 
#define ETH_MAC2_VPE   (1 << 6)
 
#define ETH_MAC2_APE   (1 << 7)
 
#define ETH_MAC2_PPE   (1 << 8)
 
#define ETH_MAC2_LPE   (1 << 9)
 
#define ETH_MAC2_NB   (1 << 12)
 
#define ETH_MAC2_BP   (1 << 13)
 
#define ETH_MAC2_ED   (1 << 14)
 
#define ETH_IPGT   0x0000007f
 
#define ETH_IPGR_IPGR2   0x0000007f
 
#define ETH_IPGR_IPGR1   0x00007f00
 
#define ETH_CLRT_MAX_RET   0x0000000f
 
#define ETH_CLRT_COL_WIN   0x00003f00
 
#define ETH_MAXF   0x0000ffff
 
#define ETH_TEST_REG   (1 << 2)
 
#define ETH_MCP_DIV   0x000000ff
 
#define ETH_MII_CFG_RSVD   0x0000000c
 
#define ETH_MII_CMD_RD   (1 << 0)
 
#define ETH_MII_CMD_SCN   (1 << 1)
 
#define ETH_MII_REG_ADDR   0x0000001f
 
#define ETH_MII_PHY_ADDR   0x00001f00
 
#define ETH_MII_WTD_DATA   0x0000ffff
 
#define ETH_MII_RDD_DATA   0x0000ffff
 
#define ETH_MII_IND_BSY   (1 << 0)
 
#define ETH_MII_IND_SCN   (1 << 1)
 
#define ETH_MII_IND_NV   (1 << 2)
 
#define ETH_RX_FD   (1 << 0)
 
#define ETH_RX_LD   (1 << 1)
 
#define ETH_RX_ROK   (1 << 2)
 
#define ETH_RX_FM   (1 << 3)
 
#define ETH_RX_MP   (1 << 4)
 
#define ETH_RX_BP   (1 << 5)
 
#define ETH_RX_VLT   (1 << 6)
 
#define ETH_RX_CF   (1 << 7)
 
#define ETH_RX_OVR   (1 << 8)
 
#define ETH_RX_CRC   (1 << 9)
 
#define ETH_RX_CV   (1 << 10)
 
#define ETH_RX_DB   (1 << 11)
 
#define ETH_RX_LE   (1 << 12)
 
#define ETH_RX_LOR   (1 << 13)
 
#define ETH_RX_CES   (1 << 14)
 
#define ETH_RX_LEN_BIT   16
 
#define ETH_RX_LEN   0xffff0000
 
#define ETH_TX_FD   (1 << 0)
 
#define ETH_TX_LD   (1 << 1)
 
#define ETH_TX_OEN   (1 << 2)
 
#define ETH_TX_PEN   (1 << 3)
 
#define ETH_TX_CEN   (1 << 4)
 
#define ETH_TX_HEN   (1 << 5)
 
#define ETH_TX_TOK   (1 << 6)
 
#define ETH_TX_MP   (1 << 7)
 
#define ETH_TX_BP   (1 << 8)
 
#define ETH_TX_UND   (1 << 9)
 
#define ETH_TX_OF   (1 << 10)
 
#define ETH_TX_ED   (1 << 11)
 
#define ETH_TX_EC   (1 << 12)
 
#define ETH_TX_LC   (1 << 13)
 
#define ETH_TX_TD   (1 << 14)
 
#define ETH_TX_CRC   (1 << 15)
 
#define ETH_TX_LE   (1 << 16)
 
#define ETH_TX_CC   0x001E0000
 

Macro Definition Documentation

#define ETH0_BASE_ADDR   0x18060000

Definition at line 33 of file eth.h.

#define ETH_ARC_AB   (1 << 3)

Definition at line 100 of file eth.h.

#define ETH_ARC_AFM   (1 << 2)

Definition at line 99 of file eth.h.

#define ETH_ARC_AM   (1 << 1)

Definition at line 98 of file eth.h.

#define ETH_ARC_PRO   (1 << 0)

Definition at line 97 of file eth.h.

#define ETH_CFSA0_CFSA4   0x000000ff

Definition at line 119 of file eth.h.

#define ETH_CFSA0_CFSA5   0x0000ff00

Definition at line 120 of file eth.h.

#define ETH_CFSA1_CFSA0   0x000000ff

Definition at line 123 of file eth.h.

#define ETH_CFSA1_CFSA1   0x0000ff00

Definition at line 124 of file eth.h.

#define ETH_CFSA1_CFSA2   0x000000ff

Definition at line 121 of file eth.h.

#define ETH_CFSA1_CFSA3   0x0000ff00

Definition at line 122 of file eth.h.

#define ETH_CLRT_COL_WIN   0x00003f00

Definition at line 158 of file eth.h.

#define ETH_CLRT_MAX_RET   0x0000000f

Definition at line 157 of file eth.h.

#define ETH_FIFI_TT_TTH_BIT   0

Definition at line 93 of file eth.h.

#define ETH_FIFO_TT_TTH   0x0000007f

Definition at line 94 of file eth.h.

#define ETH_GPF_PTV   0x0000ffff

Definition at line 113 of file eth.h.

#define ETH_INT_FC_EN   (1 << 0)

Definition at line 84 of file eth.h.

#define ETH_INT_FC_IOC   0x000000c0

Definition at line 90 of file eth.h.

#define ETH_INT_FC_ITS   (1 << 1)

Definition at line 85 of file eth.h.

#define ETH_INT_FC_JAM   (1 << 3)

Definition at line 87 of file eth.h.

#define ETH_INT_FC_OVR   (1 << 4)

Definition at line 88 of file eth.h.

#define ETH_INT_FC_RIP   (1 << 2)

Definition at line 86 of file eth.h.

#define ETH_INT_FC_UND   (1 << 5)

Definition at line 89 of file eth.h.

#define ETH_IPGR_IPGR1   0x00007f00

Definition at line 154 of file eth.h.

#define ETH_IPGR_IPGR2   0x0000007f

Definition at line 153 of file eth.h.

#define ETH_IPGT   0x0000007f

Definition at line 150 of file eth.h.

#define ETH_MAC1_LB   (1 << 4)

Definition at line 131 of file eth.h.

#define ETH_MAC1_MR   (1 << 31)

Definition at line 132 of file eth.h.

#define ETH_MAC1_PAF   (1 << 1)

Definition at line 128 of file eth.h.

#define ETH_MAC1_RE   (1 << 0)

Definition at line 127 of file eth.h.

#define ETH_MAC1_RFC   (1 << 2)

Definition at line 129 of file eth.h.

#define ETH_MAC1_TFC   (1 << 3)

Definition at line 130 of file eth.h.

#define ETH_MAC2_APE   (1 << 7)

Definition at line 142 of file eth.h.

#define ETH_MAC2_BP   (1 << 13)

Definition at line 146 of file eth.h.

#define ETH_MAC2_CEN   (1 << 4)

Definition at line 139 of file eth.h.

#define ETH_MAC2_DC   (1 << 3)

Definition at line 138 of file eth.h.

#define ETH_MAC2_ED   (1 << 14)

Definition at line 147 of file eth.h.

#define ETH_MAC2_FD   (1 << 0)

Definition at line 135 of file eth.h.

#define ETH_MAC2_FLC   (1 << 1)

Definition at line 136 of file eth.h.

#define ETH_MAC2_HFE   (1 << 2)

Definition at line 137 of file eth.h.

#define ETH_MAC2_LPE   (1 << 9)

Definition at line 144 of file eth.h.

#define ETH_MAC2_NB   (1 << 12)

Definition at line 145 of file eth.h.

#define ETH_MAC2_PE   (1 << 5)

Definition at line 140 of file eth.h.

#define ETH_MAC2_PPE   (1 << 8)

Definition at line 143 of file eth.h.

#define ETH_MAC2_VPE   (1 << 6)

Definition at line 141 of file eth.h.

#define ETH_MAXF   0x0000ffff

Definition at line 161 of file eth.h.

#define ETH_MCP_DIV   0x000000ff

Definition at line 165 of file eth.h.

#define ETH_MII_CFG_RSVD   0x0000000c

Definition at line 168 of file eth.h.

#define ETH_MII_CMD_RD   (1 << 0)

Definition at line 169 of file eth.h.

#define ETH_MII_CMD_SCN   (1 << 1)

Definition at line 170 of file eth.h.

#define ETH_MII_IND_BSY   (1 << 0)

Definition at line 175 of file eth.h.

#define ETH_MII_IND_NV   (1 << 2)

Definition at line 177 of file eth.h.

#define ETH_MII_IND_SCN   (1 << 1)

Definition at line 176 of file eth.h.

#define ETH_MII_PHY_ADDR   0x00001f00

Definition at line 172 of file eth.h.

#define ETH_MII_RDD_DATA   0x0000ffff

Definition at line 174 of file eth.h.

#define ETH_MII_REG_ADDR   0x0000001f

Definition at line 171 of file eth.h.

#define ETH_MII_WTD_DATA   0x0000ffff

Definition at line 173 of file eth.h.

#define ETH_PFS_PFD   (1 << 0)

Definition at line 116 of file eth.h.

#define ETH_RX_BP   (1 << 5)

Definition at line 188 of file eth.h.

#define ETH_RX_CES   (1 << 14)

Definition at line 197 of file eth.h.

#define ETH_RX_CF   (1 << 7)

Definition at line 190 of file eth.h.

#define ETH_RX_CRC   (1 << 9)

Definition at line 192 of file eth.h.

#define ETH_RX_CV   (1 << 10)

Definition at line 193 of file eth.h.

#define ETH_RX_DB   (1 << 11)

Definition at line 194 of file eth.h.

#define ETH_RX_FD   (1 << 0)

Definition at line 183 of file eth.h.

#define ETH_RX_FM   (1 << 3)

Definition at line 186 of file eth.h.

#define ETH_RX_LD   (1 << 1)

Definition at line 184 of file eth.h.

#define ETH_RX_LE   (1 << 12)

Definition at line 195 of file eth.h.

#define ETH_RX_LEN   0xffff0000

Definition at line 199 of file eth.h.

#define ETH_RX_LEN_BIT   16

Definition at line 198 of file eth.h.

#define ETH_RX_LOR   (1 << 13)

Definition at line 196 of file eth.h.

#define ETH_RX_MP   (1 << 4)

Definition at line 187 of file eth.h.

#define ETH_RX_OVR   (1 << 8)

Definition at line 191 of file eth.h.

#define ETH_RX_ROK   (1 << 2)

Definition at line 185 of file eth.h.

#define ETH_RX_VLT   (1 << 6)

Definition at line 189 of file eth.h.

#define ETH_SAH_BYTE0   0x0000ff00

Definition at line 110 of file eth.h.

#define ETH_SAH_BYTE1   0x000000ff

Definition at line 109 of file eth.h.

#define ETH_SAL_BYTE_2   0xff000000

Definition at line 106 of file eth.h.

#define ETH_SAL_BYTE_3   0x00ff0000

Definition at line 105 of file eth.h.

#define ETH_SAL_BYTE_4   0x0000ff00

Definition at line 104 of file eth.h.

#define ETH_SAL_BYTE_5   0x000000ff

Definition at line 103 of file eth.h.

#define ETH_TEST_REG   (1 << 2)

Definition at line 164 of file eth.h.

#define ETH_TX_BP   (1 << 8)

Definition at line 209 of file eth.h.

#define ETH_TX_CC   0x001E0000

Definition at line 218 of file eth.h.

#define ETH_TX_CEN   (1 << 4)

Definition at line 205 of file eth.h.

#define ETH_TX_CRC   (1 << 15)

Definition at line 216 of file eth.h.

#define ETH_TX_EC   (1 << 12)

Definition at line 213 of file eth.h.

#define ETH_TX_ED   (1 << 11)

Definition at line 212 of file eth.h.

#define ETH_TX_FD   (1 << 0)

Definition at line 201 of file eth.h.

#define ETH_TX_HEN   (1 << 5)

Definition at line 206 of file eth.h.

#define ETH_TX_LC   (1 << 13)

Definition at line 214 of file eth.h.

#define ETH_TX_LD   (1 << 1)

Definition at line 202 of file eth.h.

#define ETH_TX_LE   (1 << 16)

Definition at line 217 of file eth.h.

#define ETH_TX_MP   (1 << 7)

Definition at line 208 of file eth.h.

#define ETH_TX_OEN   (1 << 2)

Definition at line 203 of file eth.h.

#define ETH_TX_OF   (1 << 10)

Definition at line 211 of file eth.h.

#define ETH_TX_PEN   (1 << 3)

Definition at line 204 of file eth.h.

#define ETH_TX_TD   (1 << 14)

Definition at line 215 of file eth.h.

#define ETH_TX_TOK   (1 << 6)

Definition at line 207 of file eth.h.

#define ETH_TX_UND   (1 << 9)

Definition at line 210 of file eth.h.