Linux Kernel
3.7.1
|
Go to the source code of this file.
Macros | |
#define | TX_RING_SIZE (32) |
#define | RX_RING_SIZE (128) |
#define | INT_DEAS_TIME (50) |
#define | NAPI_WEIGHT (64) |
#define | SMSC_BAR (3) |
#define | LAN9420_CPSR_ENDIAN_OFFSET (0) |
#define | PCI_VENDOR_ID_9420 (0x1055) |
#define | PCI_DEVICE_ID_9420 (0xE420) |
#define | LAN_REGISTER_EXTENT (0x400) |
#define | SMSC9420_EEPROM_SIZE ((u32)11) |
#define | SMSC9420_EEPROM_MAGIC (0x9420) |
#define | PKT_BUF_SZ (VLAN_ETH_FRAME_LEN + NET_IP_ALIGN + 4) |
#define | BUS_MODE (0x00) |
#define | BUS_MODE_SWR_ (BIT(0)) |
#define | BUS_MODE_DMA_BURST_LENGTH_1 (BIT(8)) |
#define | BUS_MODE_DMA_BURST_LENGTH_2 (BIT(9)) |
#define | BUS_MODE_DMA_BURST_LENGTH_4 (BIT(10)) |
#define | BUS_MODE_DMA_BURST_LENGTH_8 (BIT(11)) |
#define | BUS_MODE_DMA_BURST_LENGTH_16 (BIT(12)) |
#define | BUS_MODE_DMA_BURST_LENGTH_32 (BIT(13)) |
#define | BUS_MODE_DBO_ (BIT(20)) |
#define | TX_POLL_DEMAND (0x04) |
#define | RX_POLL_DEMAND (0x08) |
#define | RX_BASE_ADDR (0x0C) |
#define | TX_BASE_ADDR (0x10) |
#define | DMAC_STATUS (0x14) |
#define | DMAC_STS_TS_ (7 << 20) |
#define | DMAC_STS_RS_ (7 << 17) |
#define | DMAC_STS_NIS_ (BIT(16)) |
#define | DMAC_STS_AIS_ (BIT(15)) |
#define | DMAC_STS_RWT_ (BIT(9)) |
#define | DMAC_STS_RXPS_ (BIT(8)) |
#define | DMAC_STS_RXBU_ (BIT(7)) |
#define | DMAC_STS_RX_ (BIT(6)) |
#define | DMAC_STS_TXUNF_ (BIT(5)) |
#define | DMAC_STS_TXBU_ (BIT(2)) |
#define | DMAC_STS_TXPS_ (BIT(1)) |
#define | DMAC_STS_TX_ (BIT(0)) |
#define | DMAC_CONTROL (0x18) |
#define | DMAC_CONTROL_TTM_ (BIT(22)) |
#define | DMAC_CONTROL_SF_ (BIT(21)) |
#define | DMAC_CONTROL_ST_ (BIT(13)) |
#define | DMAC_CONTROL_OSF_ (BIT(2)) |
#define | DMAC_CONTROL_SR_ (BIT(1)) |
#define | DMAC_INTR_ENA (0x1C) |
#define | DMAC_INTR_ENA_NIS_ (BIT(16)) |
#define | DMAC_INTR_ENA_AIS_ (BIT(15)) |
#define | DMAC_INTR_ENA_RWT_ (BIT(9)) |
#define | DMAC_INTR_ENA_RXPS_ (BIT(8)) |
#define | DMAC_INTR_ENA_RXBU_ (BIT(7)) |
#define | DMAC_INTR_ENA_RX_ (BIT(6)) |
#define | DMAC_INTR_ENA_TXBU_ (BIT(2)) |
#define | DMAC_INTR_ENA_TXPS_ (BIT(1)) |
#define | DMAC_INTR_ENA_TX_ (BIT(0)) |
#define | MISS_FRAME_CNTR (0x20) |
#define | TX_BUFF_ADDR (0x50) |
#define | RX_BUFF_ADDR (0x54) |
#define | TDES0_OWN_ (0x80000000) |
#define | TDES0_ERROR_SUMMARY_ (0x00008000) |
#define | TDES0_LOSS_OF_CARRIER_ (0x00000800) |
#define | TDES0_NO_CARRIER_ (0x00000400) |
#define | TDES0_LATE_COLLISION_ (0x00000200) |
#define | TDES0_EXCESSIVE_COLLISIONS_ (0x00000100) |
#define | TDES0_HEARTBEAT_FAIL_ (0x00000080) |
#define | TDES0_COLLISION_COUNT_MASK_ (0x00000078) |
#define | TDES0_COLLISION_COUNT_SHFT_ (3) |
#define | TDES0_EXCESSIVE_DEFERRAL_ (0x00000004) |
#define | TDES0_DEFERRED_ (0x00000001) |
#define | TDES1_IC_ 0x80000000 |
#define | TDES1_LS_ 0x40000000 |
#define | TDES1_FS_ 0x20000000 |
#define | TDES1_TXCSEN_ 0x08000000 |
#define | TDES1_TER_ (BIT(25)) |
#define | TDES1_TCH_ 0x01000000 |
#define | RDES0_OWN_ (0x80000000) |
#define | RDES0_FRAME_LENGTH_MASK_ (0x07FF0000) |
#define | RDES0_FRAME_LENGTH_SHFT_ (16) |
#define | RDES0_ERROR_SUMMARY_ (0x00008000) |
#define | RDES0_DESCRIPTOR_ERROR_ (0x00004000) |
#define | RDES0_LENGTH_ERROR_ (0x00001000) |
#define | RDES0_RUNT_FRAME_ (0x00000800) |
#define | RDES0_MULTICAST_FRAME_ (0x00000400) |
#define | RDES0_FIRST_DESCRIPTOR_ (0x00000200) |
#define | RDES0_LAST_DESCRIPTOR_ (0x00000100) |
#define | RDES0_FRAME_TOO_LONG_ (0x00000080) |
#define | RDES0_COLLISION_SEEN_ (0x00000040) |
#define | RDES0_FRAME_TYPE_ (0x00000020) |
#define | RDES0_WATCHDOG_TIMEOUT_ (0x00000010) |
#define | RDES0_MII_ERROR_ (0x00000008) |
#define | RDES0_DRIBBLING_BIT_ (0x00000004) |
#define | RDES0_CRC_ERROR_ (0x00000002) |
#define | RDES1_RER_ (0x02000000) |
#define | MAC_CR (0x80) |
#define | MAC_CR_RXALL_ (0x80000000) |
#define | MAC_CR_DIS_RXOWN_ (0x00800000) |
#define | MAC_CR_LOOPBK_ (0x00200000) |
#define | MAC_CR_FDPX_ (0x00100000) |
#define | MAC_CR_MCPAS_ (0x00080000) |
#define | MAC_CR_PRMS_ (0x00040000) |
#define | MAC_CR_INVFILT_ (0x00020000) |
#define | MAC_CR_PASSBAD_ (0x00010000) |
#define | MAC_CR_HFILT_ (0x00008000) |
#define | MAC_CR_HPFILT_ (0x00002000) |
#define | MAC_CR_LCOLL_ (0x00001000) |
#define | MAC_CR_DIS_BCAST_ (0x00000800) |
#define | MAC_CR_DIS_RTRY_ (0x00000400) |
#define | MAC_CR_PADSTR_ (0x00000100) |
#define | MAC_CR_BOLMT_MSK (0x000000C0) |
#define | MAC_CR_MFCHK_ (0x00000020) |
#define | MAC_CR_TXEN_ (0x00000008) |
#define | MAC_CR_RXEN_ (0x00000004) |
#define | ADDRH (0x84) |
#define | ADDRL (0x88) |
#define | HASHH (0x8C) |
#define | HASHL (0x90) |
#define | MII_ACCESS (0x94) |
#define | MII_ACCESS_MII_BUSY_ (0x00000001) |
#define | MII_ACCESS_MII_WRITE_ (0x00000002) |
#define | MII_ACCESS_MII_READ_ (0x00000000) |
#define | MII_ACCESS_INDX_MSK_ (0x000007C0) |
#define | MII_ACCESS_PHYADDR_MSK_ (0x0000F8C0) |
#define | MII_ACCESS_INDX_SHFT_CNT (6) |
#define | MII_ACCESS_PHYADDR_SHFT_CNT (11) |
#define | MII_DATA (0x98) |
#define | FLOW (0x9C) |
#define | VLAN1 (0xA0) |
#define | VLAN2 (0xA4) |
#define | WUFF (0xA8) |
#define | WUCSR (0xAC) |
#define | COE_CR (0xB0) |
#define | TX_COE_EN (0x00010000) |
#define | RX_COE_MODE (0x00000002) |
#define | RX_COE_EN (0x00000001) |
#define | ID_REV (0xC0) |
#define | INT_CTL (0xC4) |
#define | INT_CTL_SW_INT_EN_ (0x00008000) |
#define | INT_CTL_SBERR_INT_EN_ (1 << 12) |
#define | INT_CTL_MBERR_INT_EN_ (1 << 13) |
#define | INT_CTL_GPT_INT_EN_ (0x00000008) |
#define | INT_CTL_PHY_INT_EN_ (0x00000004) |
#define | INT_CTL_WAKE_INT_EN_ (0x00000002) |
#define | INT_STAT (0xC8) |
#define | INT_STAT_SW_INT_ (1 << 15) |
#define | INT_STAT_MBERR_INT_ (1 << 13) |
#define | INT_STAT_SBERR_INT_ (1 << 12) |
#define | INT_STAT_GPT_INT_ (1 << 3) |
#define | INT_STAT_PHY_INT_ (0x00000004) |
#define | INT_STAT_WAKE_INT_ (0x00000002) |
#define | INT_STAT_DMAC_INT_ (0x00000001) |
#define | INT_CFG (0xCC) |
#define | INT_CFG_IRQ_INT_ (0x00080000) |
#define | INT_CFG_IRQ_EN_ (0x00040000) |
#define | INT_CFG_INT_DEAS_CLR_ (0x00000200) |
#define | INT_CFG_INT_DEAS_MASK (0x000000FF) |
#define | GPIO_CFG (0xD0) |
#define | GPIO_CFG_LED_3_ (0x40000000) |
#define | GPIO_CFG_LED_2_ (0x20000000) |
#define | GPIO_CFG_LED_1_ (0x10000000) |
#define | GPIO_CFG_EEPR_EN_ (0x00700000) |
#define | GPT_CFG (0xD4) |
#define | GPT_CFG_TIMER_EN_ (0x20000000) |
#define | GPT_CNT (0xD8) |
#define | BUS_CFG (0xDC) |
#define | BUS_CFG_RXTXWEIGHT_1_1 (0 << 25) |
#define | BUS_CFG_RXTXWEIGHT_2_1 (1 << 25) |
#define | BUS_CFG_RXTXWEIGHT_3_1 (2 << 25) |
#define | BUS_CFG_RXTXWEIGHT_4_1 (3 << 25) |
#define | PMT_CTRL (0xE0) |
#define | FREE_RUN (0xF4) |
#define | E2P_CMD (0xF8) |
#define | E2P_CMD_EPC_BUSY_ (0x80000000) |
#define | E2P_CMD_EPC_CMD_ (0x70000000) |
#define | E2P_CMD_EPC_CMD_READ_ (0x00000000) |
#define | E2P_CMD_EPC_CMD_EWDS_ (0x10000000) |
#define | E2P_CMD_EPC_CMD_EWEN_ (0x20000000) |
#define | E2P_CMD_EPC_CMD_WRITE_ (0x30000000) |
#define | E2P_CMD_EPC_CMD_WRAL_ (0x40000000) |
#define | E2P_CMD_EPC_CMD_ERASE_ (0x50000000) |
#define | E2P_CMD_EPC_CMD_ERAL_ (0x60000000) |
#define | E2P_CMD_EPC_CMD_RELOAD_ (0x70000000) |
#define | E2P_CMD_EPC_TIMEOUT_ (0x00000200) |
#define | E2P_CMD_MAC_ADDR_LOADED_ (0x00000100) |
#define | E2P_CMD_EPC_ADDR_ (0x000000FF) |
#define | E2P_DATA (0xFC) |
#define | E2P_DATA_EEPROM_DATA_ (0x000000FF) |
#define ADDRH (0x84) |
Definition at line 175 of file smsc9420.h.
#define ADDRL (0x88) |
Definition at line 177 of file smsc9420.h.
#define BUS_CFG (0xDC) |
Definition at line 248 of file smsc9420.h.
#define BUS_CFG_RXTXWEIGHT_1_1 (0 << 25) |
Definition at line 249 of file smsc9420.h.
#define BUS_CFG_RXTXWEIGHT_2_1 (1 << 25) |
Definition at line 250 of file smsc9420.h.
#define BUS_CFG_RXTXWEIGHT_3_1 (2 << 25) |
Definition at line 251 of file smsc9420.h.
#define BUS_CFG_RXTXWEIGHT_4_1 (3 << 25) |
Definition at line 252 of file smsc9420.h.
#define BUS_MODE (0x00) |
Definition at line 54 of file smsc9420.h.
#define BUS_MODE_DBO_ (BIT(20)) |
Definition at line 62 of file smsc9420.h.
#define BUS_MODE_DMA_BURST_LENGTH_1 (BIT(8)) |
Definition at line 56 of file smsc9420.h.
#define BUS_MODE_DMA_BURST_LENGTH_16 (BIT(12)) |
Definition at line 60 of file smsc9420.h.
#define BUS_MODE_DMA_BURST_LENGTH_2 (BIT(9)) |
Definition at line 57 of file smsc9420.h.
#define BUS_MODE_DMA_BURST_LENGTH_32 (BIT(13)) |
Definition at line 61 of file smsc9420.h.
#define BUS_MODE_DMA_BURST_LENGTH_4 (BIT(10)) |
Definition at line 58 of file smsc9420.h.
#define BUS_MODE_DMA_BURST_LENGTH_8 (BIT(11)) |
Definition at line 59 of file smsc9420.h.
#define BUS_MODE_SWR_ (BIT(0)) |
Definition at line 55 of file smsc9420.h.
#define COE_CR (0xB0) |
Definition at line 204 of file smsc9420.h.
#define DMAC_CONTROL (0x18) |
Definition at line 86 of file smsc9420.h.
#define DMAC_CONTROL_OSF_ (BIT(2)) |
Definition at line 90 of file smsc9420.h.
#define DMAC_CONTROL_SF_ (BIT(21)) |
Definition at line 88 of file smsc9420.h.
#define DMAC_CONTROL_SR_ (BIT(1)) |
Definition at line 91 of file smsc9420.h.
#define DMAC_CONTROL_ST_ (BIT(13)) |
Definition at line 89 of file smsc9420.h.
#define DMAC_CONTROL_TTM_ (BIT(22)) |
Definition at line 87 of file smsc9420.h.
#define DMAC_INTR_ENA (0x1C) |
Definition at line 93 of file smsc9420.h.
#define DMAC_INTR_ENA_AIS_ (BIT(15)) |
Definition at line 95 of file smsc9420.h.
#define DMAC_INTR_ENA_NIS_ (BIT(16)) |
Definition at line 94 of file smsc9420.h.
#define DMAC_INTR_ENA_RWT_ (BIT(9)) |
Definition at line 96 of file smsc9420.h.
#define DMAC_INTR_ENA_RX_ (BIT(6)) |
Definition at line 99 of file smsc9420.h.
#define DMAC_INTR_ENA_RXBU_ (BIT(7)) |
Definition at line 98 of file smsc9420.h.
#define DMAC_INTR_ENA_RXPS_ (BIT(8)) |
Definition at line 97 of file smsc9420.h.
#define DMAC_INTR_ENA_TX_ (BIT(0)) |
Definition at line 102 of file smsc9420.h.
#define DMAC_INTR_ENA_TXBU_ (BIT(2)) |
Definition at line 100 of file smsc9420.h.
#define DMAC_INTR_ENA_TXPS_ (BIT(1)) |
Definition at line 101 of file smsc9420.h.
#define DMAC_STATUS (0x14) |
Definition at line 72 of file smsc9420.h.
#define DMAC_STS_AIS_ (BIT(15)) |
Definition at line 76 of file smsc9420.h.
#define DMAC_STS_NIS_ (BIT(16)) |
Definition at line 75 of file smsc9420.h.
#define DMAC_STS_RS_ (7 << 17) |
Definition at line 74 of file smsc9420.h.
#define DMAC_STS_RWT_ (BIT(9)) |
Definition at line 77 of file smsc9420.h.
#define DMAC_STS_RX_ (BIT(6)) |
Definition at line 80 of file smsc9420.h.
#define DMAC_STS_RXBU_ (BIT(7)) |
Definition at line 79 of file smsc9420.h.
#define DMAC_STS_RXPS_ (BIT(8)) |
Definition at line 78 of file smsc9420.h.
#define DMAC_STS_TS_ (7 << 20) |
Definition at line 73 of file smsc9420.h.
#define DMAC_STS_TX_ (BIT(0)) |
Definition at line 84 of file smsc9420.h.
#define DMAC_STS_TXBU_ (BIT(2)) |
Definition at line 82 of file smsc9420.h.
#define DMAC_STS_TXPS_ (BIT(1)) |
Definition at line 83 of file smsc9420.h.
#define DMAC_STS_TXUNF_ (BIT(5)) |
Definition at line 81 of file smsc9420.h.
#define E2P_CMD (0xF8) |
Definition at line 258 of file smsc9420.h.
#define E2P_CMD_EPC_ADDR_ (0x000000FF) |
Definition at line 271 of file smsc9420.h.
#define E2P_CMD_EPC_BUSY_ (0x80000000) |
Definition at line 259 of file smsc9420.h.
#define E2P_CMD_EPC_CMD_ (0x70000000) |
Definition at line 260 of file smsc9420.h.
#define E2P_CMD_EPC_CMD_ERAL_ (0x60000000) |
Definition at line 267 of file smsc9420.h.
#define E2P_CMD_EPC_CMD_ERASE_ (0x50000000) |
Definition at line 266 of file smsc9420.h.
#define E2P_CMD_EPC_CMD_EWDS_ (0x10000000) |
Definition at line 262 of file smsc9420.h.
#define E2P_CMD_EPC_CMD_EWEN_ (0x20000000) |
Definition at line 263 of file smsc9420.h.
#define E2P_CMD_EPC_CMD_READ_ (0x00000000) |
Definition at line 261 of file smsc9420.h.
#define E2P_CMD_EPC_CMD_RELOAD_ (0x70000000) |
Definition at line 268 of file smsc9420.h.
#define E2P_CMD_EPC_CMD_WRAL_ (0x40000000) |
Definition at line 265 of file smsc9420.h.
#define E2P_CMD_EPC_CMD_WRITE_ (0x30000000) |
Definition at line 264 of file smsc9420.h.
#define E2P_CMD_EPC_TIMEOUT_ (0x00000200) |
Definition at line 269 of file smsc9420.h.
#define E2P_CMD_MAC_ADDR_LOADED_ (0x00000100) |
Definition at line 270 of file smsc9420.h.
#define E2P_DATA (0xFC) |
Definition at line 273 of file smsc9420.h.
#define E2P_DATA_EEPROM_DATA_ (0x000000FF) |
Definition at line 274 of file smsc9420.h.
#define FLOW (0x9C) |
Definition at line 194 of file smsc9420.h.
#define FREE_RUN (0xF4) |
Definition at line 256 of file smsc9420.h.
#define GPIO_CFG (0xD0) |
Definition at line 237 of file smsc9420.h.
#define GPIO_CFG_EEPR_EN_ (0x00700000) |
Definition at line 241 of file smsc9420.h.
#define GPIO_CFG_LED_1_ (0x10000000) |
Definition at line 240 of file smsc9420.h.
#define GPIO_CFG_LED_2_ (0x20000000) |
Definition at line 239 of file smsc9420.h.
#define GPIO_CFG_LED_3_ (0x40000000) |
Definition at line 238 of file smsc9420.h.
#define GPT_CFG (0xD4) |
Definition at line 243 of file smsc9420.h.
#define GPT_CFG_TIMER_EN_ (0x20000000) |
Definition at line 244 of file smsc9420.h.
#define GPT_CNT (0xD8) |
Definition at line 246 of file smsc9420.h.
#define HASHH (0x8C) |
Definition at line 179 of file smsc9420.h.
#define HASHL (0x90) |
Definition at line 181 of file smsc9420.h.
#define ID_REV (0xC0) |
Definition at line 212 of file smsc9420.h.
#define INT_CFG (0xCC) |
Definition at line 231 of file smsc9420.h.
#define INT_CFG_INT_DEAS_CLR_ (0x00000200) |
Definition at line 234 of file smsc9420.h.
#define INT_CFG_INT_DEAS_MASK (0x000000FF) |
Definition at line 235 of file smsc9420.h.
#define INT_CFG_IRQ_EN_ (0x00040000) |
Definition at line 233 of file smsc9420.h.
#define INT_CFG_IRQ_INT_ (0x00080000) |
Definition at line 232 of file smsc9420.h.
#define INT_CTL (0xC4) |
Definition at line 214 of file smsc9420.h.
#define INT_CTL_GPT_INT_EN_ (0x00000008) |
Definition at line 218 of file smsc9420.h.
#define INT_CTL_MBERR_INT_EN_ (1 << 13) |
Definition at line 217 of file smsc9420.h.
#define INT_CTL_PHY_INT_EN_ (0x00000004) |
Definition at line 219 of file smsc9420.h.
#define INT_CTL_SBERR_INT_EN_ (1 << 12) |
Definition at line 216 of file smsc9420.h.
#define INT_CTL_SW_INT_EN_ (0x00008000) |
Definition at line 215 of file smsc9420.h.
#define INT_CTL_WAKE_INT_EN_ (0x00000002) |
Definition at line 220 of file smsc9420.h.
#define INT_DEAS_TIME (50) |
Definition at line 29 of file smsc9420.h.
#define INT_STAT (0xC8) |
Definition at line 222 of file smsc9420.h.
#define INT_STAT_DMAC_INT_ (0x00000001) |
Definition at line 229 of file smsc9420.h.
#define INT_STAT_GPT_INT_ (1 << 3) |
Definition at line 226 of file smsc9420.h.
#define INT_STAT_MBERR_INT_ (1 << 13) |
Definition at line 224 of file smsc9420.h.
#define INT_STAT_PHY_INT_ (0x00000004) |
Definition at line 227 of file smsc9420.h.
#define INT_STAT_SBERR_INT_ (1 << 12) |
Definition at line 225 of file smsc9420.h.
#define INT_STAT_SW_INT_ (1 << 15) |
Definition at line 223 of file smsc9420.h.
#define INT_STAT_WAKE_INT_ (0x00000002) |
Definition at line 228 of file smsc9420.h.
#define LAN9420_CPSR_ENDIAN_OFFSET (0) |
Definition at line 38 of file smsc9420.h.
#define LAN_REGISTER_EXTENT (0x400) |
Definition at line 44 of file smsc9420.h.
#define MAC_CR (0x80) |
Definition at line 155 of file smsc9420.h.
#define MAC_CR_BOLMT_MSK (0x000000C0) |
Definition at line 170 of file smsc9420.h.
#define MAC_CR_DIS_BCAST_ (0x00000800) |
Definition at line 167 of file smsc9420.h.
#define MAC_CR_DIS_RTRY_ (0x00000400) |
Definition at line 168 of file smsc9420.h.
#define MAC_CR_DIS_RXOWN_ (0x00800000) |
Definition at line 157 of file smsc9420.h.
#define MAC_CR_FDPX_ (0x00100000) |
Definition at line 159 of file smsc9420.h.
#define MAC_CR_HFILT_ (0x00008000) |
Definition at line 164 of file smsc9420.h.
#define MAC_CR_HPFILT_ (0x00002000) |
Definition at line 165 of file smsc9420.h.
#define MAC_CR_INVFILT_ (0x00020000) |
Definition at line 162 of file smsc9420.h.
#define MAC_CR_LCOLL_ (0x00001000) |
Definition at line 166 of file smsc9420.h.
#define MAC_CR_LOOPBK_ (0x00200000) |
Definition at line 158 of file smsc9420.h.
#define MAC_CR_MCPAS_ (0x00080000) |
Definition at line 160 of file smsc9420.h.
#define MAC_CR_MFCHK_ (0x00000020) |
Definition at line 171 of file smsc9420.h.
#define MAC_CR_PADSTR_ (0x00000100) |
Definition at line 169 of file smsc9420.h.
#define MAC_CR_PASSBAD_ (0x00010000) |
Definition at line 163 of file smsc9420.h.
#define MAC_CR_PRMS_ (0x00040000) |
Definition at line 161 of file smsc9420.h.
#define MAC_CR_RXALL_ (0x80000000) |
Definition at line 156 of file smsc9420.h.
#define MAC_CR_RXEN_ (0x00000004) |
Definition at line 173 of file smsc9420.h.
#define MAC_CR_TXEN_ (0x00000008) |
Definition at line 172 of file smsc9420.h.
#define MII_ACCESS (0x94) |
Definition at line 183 of file smsc9420.h.
#define MII_ACCESS_INDX_MSK_ (0x000007C0) |
Definition at line 187 of file smsc9420.h.
#define MII_ACCESS_INDX_SHFT_CNT (6) |
Definition at line 189 of file smsc9420.h.
#define MII_ACCESS_MII_BUSY_ (0x00000001) |
Definition at line 184 of file smsc9420.h.
#define MII_ACCESS_MII_READ_ (0x00000000) |
Definition at line 186 of file smsc9420.h.
#define MII_ACCESS_MII_WRITE_ (0x00000002) |
Definition at line 185 of file smsc9420.h.
#define MII_ACCESS_PHYADDR_MSK_ (0x0000F8C0) |
Definition at line 188 of file smsc9420.h.
#define MII_ACCESS_PHYADDR_SHFT_CNT (11) |
Definition at line 190 of file smsc9420.h.
#define MII_DATA (0x98) |
Definition at line 192 of file smsc9420.h.
#define MISS_FRAME_CNTR (0x20) |
Definition at line 104 of file smsc9420.h.
#define NAPI_WEIGHT (64) |
Definition at line 31 of file smsc9420.h.
#define PCI_DEVICE_ID_9420 (0xE420) |
Definition at line 42 of file smsc9420.h.
#define PCI_VENDOR_ID_9420 (0x1055) |
Definition at line 41 of file smsc9420.h.
#define PKT_BUF_SZ (VLAN_ETH_FRAME_LEN + NET_IP_ALIGN + 4) |
Definition at line 49 of file smsc9420.h.
#define PMT_CTRL (0xE0) |
Definition at line 254 of file smsc9420.h.
#define RDES0_COLLISION_SEEN_ (0x00000040) |
Definition at line 142 of file smsc9420.h.
#define RDES0_CRC_ERROR_ (0x00000002) |
Definition at line 147 of file smsc9420.h.
#define RDES0_DESCRIPTOR_ERROR_ (0x00004000) |
Definition at line 135 of file smsc9420.h.
#define RDES0_DRIBBLING_BIT_ (0x00000004) |
Definition at line 146 of file smsc9420.h.
#define RDES0_ERROR_SUMMARY_ (0x00008000) |
Definition at line 134 of file smsc9420.h.
#define RDES0_FIRST_DESCRIPTOR_ (0x00000200) |
Definition at line 139 of file smsc9420.h.
#define RDES0_FRAME_LENGTH_MASK_ (0x07FF0000) |
Definition at line 132 of file smsc9420.h.
#define RDES0_FRAME_LENGTH_SHFT_ (16) |
Definition at line 133 of file smsc9420.h.
#define RDES0_FRAME_TOO_LONG_ (0x00000080) |
Definition at line 141 of file smsc9420.h.
#define RDES0_FRAME_TYPE_ (0x00000020) |
Definition at line 143 of file smsc9420.h.
#define RDES0_LAST_DESCRIPTOR_ (0x00000100) |
Definition at line 140 of file smsc9420.h.
#define RDES0_LENGTH_ERROR_ (0x00001000) |
Definition at line 136 of file smsc9420.h.
#define RDES0_MII_ERROR_ (0x00000008) |
Definition at line 145 of file smsc9420.h.
#define RDES0_MULTICAST_FRAME_ (0x00000400) |
Definition at line 138 of file smsc9420.h.
#define RDES0_OWN_ (0x80000000) |
Definition at line 131 of file smsc9420.h.
#define RDES0_RUNT_FRAME_ (0x00000800) |
Definition at line 137 of file smsc9420.h.
#define RDES0_WATCHDOG_TIMEOUT_ (0x00000010) |
Definition at line 144 of file smsc9420.h.
#define RDES1_RER_ (0x02000000) |
Definition at line 150 of file smsc9420.h.
#define RX_BASE_ADDR (0x0C) |
Definition at line 68 of file smsc9420.h.
#define RX_BUFF_ADDR (0x54) |
Definition at line 108 of file smsc9420.h.
#define RX_COE_EN (0x00000001) |
Definition at line 207 of file smsc9420.h.
#define RX_COE_MODE (0x00000002) |
Definition at line 206 of file smsc9420.h.
#define RX_POLL_DEMAND (0x08) |
Definition at line 66 of file smsc9420.h.
#define RX_RING_SIZE (128) |
Definition at line 26 of file smsc9420.h.
#define SMSC9420_EEPROM_MAGIC (0x9420) |
Definition at line 47 of file smsc9420.h.
#define SMSC9420_EEPROM_SIZE ((u32)11) |
Definition at line 46 of file smsc9420.h.
#define SMSC_BAR (3) |
Definition at line 32 of file smsc9420.h.
#define TDES0_COLLISION_COUNT_MASK_ (0x00000078) |
Definition at line 118 of file smsc9420.h.
#define TDES0_COLLISION_COUNT_SHFT_ (3) |
Definition at line 119 of file smsc9420.h.
#define TDES0_DEFERRED_ (0x00000001) |
Definition at line 121 of file smsc9420.h.
#define TDES0_ERROR_SUMMARY_ (0x00008000) |
Definition at line 112 of file smsc9420.h.
#define TDES0_EXCESSIVE_COLLISIONS_ (0x00000100) |
Definition at line 116 of file smsc9420.h.
#define TDES0_EXCESSIVE_DEFERRAL_ (0x00000004) |
Definition at line 120 of file smsc9420.h.
#define TDES0_HEARTBEAT_FAIL_ (0x00000080) |
Definition at line 117 of file smsc9420.h.
#define TDES0_LATE_COLLISION_ (0x00000200) |
Definition at line 115 of file smsc9420.h.
#define TDES0_LOSS_OF_CARRIER_ (0x00000800) |
Definition at line 113 of file smsc9420.h.
#define TDES0_NO_CARRIER_ (0x00000400) |
Definition at line 114 of file smsc9420.h.
#define TDES0_OWN_ (0x80000000) |
Definition at line 111 of file smsc9420.h.
#define TDES1_FS_ 0x20000000 |
Definition at line 125 of file smsc9420.h.
#define TDES1_IC_ 0x80000000 |
Definition at line 123 of file smsc9420.h.
#define TDES1_LS_ 0x40000000 |
Definition at line 124 of file smsc9420.h.
#define TDES1_TCH_ 0x01000000 |
Definition at line 128 of file smsc9420.h.
#define TDES1_TER_ (BIT(25)) |
Definition at line 127 of file smsc9420.h.
#define TDES1_TXCSEN_ 0x08000000 |
Definition at line 126 of file smsc9420.h.
#define TX_BASE_ADDR (0x10) |
Definition at line 70 of file smsc9420.h.
#define TX_BUFF_ADDR (0x50) |
Definition at line 106 of file smsc9420.h.
#define TX_COE_EN (0x00010000) |
Definition at line 205 of file smsc9420.h.
#define TX_POLL_DEMAND (0x04) |
Definition at line 64 of file smsc9420.h.
#define TX_RING_SIZE (32) |
Definition at line 25 of file smsc9420.h.
#define VLAN1 (0xA0) |
Definition at line 196 of file smsc9420.h.
#define VLAN2 (0xA4) |
Definition at line 198 of file smsc9420.h.
#define WUCSR (0xAC) |
Definition at line 202 of file smsc9420.h.
#define WUFF (0xA8) |
Definition at line 200 of file smsc9420.h.