Linux Kernel
3.7.1
|
#include <linux/smscphy.h>
Go to the source code of this file.
Macros | |
#define | TX_FIFO_LOW_THRESHOLD ((u32)1600) |
#define | SMSC911X_EEPROM_SIZE ((u32)128) |
#define | USE_DEBUG 0 |
#define | SMSC_NAPI_WEIGHT 16 |
#define | USE_PHY_WORK_AROUND |
#define | SMSC_WARN(pdata, nlevel, fmt, args...) no_printk(fmt "\n", ##args) |
#define | SMSC_TRACE(pdata, nlevel, fmt, args...) no_printk(fmt "\n", ##args) |
#define | SMSC_ASSERT_MAC_LOCK(pdata) do {} while (0) |
#define | RX_DATA_FIFO 0x00 |
#define | TX_DATA_FIFO 0x20 |
#define | TX_CMD_A_ON_COMP_ 0x80000000 |
#define | TX_CMD_A_BUF_END_ALGN_ 0x03000000 |
#define | TX_CMD_A_4_BYTE_ALGN_ 0x00000000 |
#define | TX_CMD_A_16_BYTE_ALGN_ 0x01000000 |
#define | TX_CMD_A_32_BYTE_ALGN_ 0x02000000 |
#define | TX_CMD_A_DATA_OFFSET_ 0x001F0000 |
#define | TX_CMD_A_FIRST_SEG_ 0x00002000 |
#define | TX_CMD_A_LAST_SEG_ 0x00001000 |
#define | TX_CMD_A_BUF_SIZE_ 0x000007FF |
#define | TX_CMD_B_PKT_TAG_ 0xFFFF0000 |
#define | TX_CMD_B_ADD_CRC_DISABLE_ 0x00002000 |
#define | TX_CMD_B_DISABLE_PADDING_ 0x00001000 |
#define | TX_CMD_B_PKT_BYTE_LENGTH_ 0x000007FF |
#define | RX_STATUS_FIFO 0x40 |
#define | RX_STS_ES_ 0x00008000 |
#define | RX_STS_LENGTH_ERR_ 0x00001000 |
#define | RX_STS_MCAST_ 0x00000400 |
#define | RX_STS_FRAME_TYPE_ 0x00000020 |
#define | RX_STS_CRC_ERR_ 0x00000002 |
#define | RX_STATUS_FIFO_PEEK 0x44 |
#define | TX_STATUS_FIFO 0x48 |
#define | TX_STS_ES_ 0x00008000 |
#define | TX_STS_LOST_CARRIER_ 0x00000800 |
#define | TX_STS_NO_CARRIER_ 0x00000400 |
#define | TX_STS_LATE_COL_ 0x00000200 |
#define | TX_STS_EXCESS_COL_ 0x00000100 |
#define | TX_STATUS_FIFO_PEEK 0x4C |
#define | ID_REV 0x50 |
#define | ID_REV_CHIP_ID_ 0xFFFF0000 |
#define | ID_REV_REV_ID_ 0x0000FFFF |
#define | INT_CFG 0x54 |
#define | INT_CFG_INT_DEAS_ 0xFF000000 |
#define | INT_CFG_INT_DEAS_CLR_ 0x00004000 |
#define | INT_CFG_INT_DEAS_STS_ 0x00002000 |
#define | INT_CFG_IRQ_INT_ 0x00001000 |
#define | INT_CFG_IRQ_EN_ 0x00000100 |
#define | INT_CFG_IRQ_POL_ 0x00000010 |
#define | INT_CFG_IRQ_TYPE_ 0x00000001 |
#define | INT_STS 0x58 |
#define | INT_STS_SW_INT_ 0x80000000 |
#define | INT_STS_TXSTOP_INT_ 0x02000000 |
#define | INT_STS_RXSTOP_INT_ 0x01000000 |
#define | INT_STS_RXDFH_INT_ 0x00800000 |
#define | INT_STS_RXDF_INT_ 0x00400000 |
#define | INT_STS_TX_IOC_ 0x00200000 |
#define | INT_STS_RXD_INT_ 0x00100000 |
#define | INT_STS_GPT_INT_ 0x00080000 |
#define | INT_STS_PHY_INT_ 0x00040000 |
#define | INT_STS_PME_INT_ 0x00020000 |
#define | INT_STS_TXSO_ 0x00010000 |
#define | INT_STS_RWT_ 0x00008000 |
#define | INT_STS_RXE_ 0x00004000 |
#define | INT_STS_TXE_ 0x00002000 |
#define | INT_STS_TDFU_ 0x00000800 |
#define | INT_STS_TDFO_ 0x00000400 |
#define | INT_STS_TDFA_ 0x00000200 |
#define | INT_STS_TSFF_ 0x00000100 |
#define | INT_STS_TSFL_ 0x00000080 |
#define | INT_STS_RXDF_ 0x00000040 |
#define | INT_STS_RDFL_ 0x00000020 |
#define | INT_STS_RSFF_ 0x00000010 |
#define | INT_STS_RSFL_ 0x00000008 |
#define | INT_STS_GPIO2_INT_ 0x00000004 |
#define | INT_STS_GPIO1_INT_ 0x00000002 |
#define | INT_STS_GPIO0_INT_ 0x00000001 |
#define | INT_EN 0x5C |
#define | INT_EN_SW_INT_EN_ 0x80000000 |
#define | INT_EN_TXSTOP_INT_EN_ 0x02000000 |
#define | INT_EN_RXSTOP_INT_EN_ 0x01000000 |
#define | INT_EN_RXDFH_INT_EN_ 0x00800000 |
#define | INT_EN_TIOC_INT_EN_ 0x00200000 |
#define | INT_EN_RXD_INT_EN_ 0x00100000 |
#define | INT_EN_GPT_INT_EN_ 0x00080000 |
#define | INT_EN_PHY_INT_EN_ 0x00040000 |
#define | INT_EN_PME_INT_EN_ 0x00020000 |
#define | INT_EN_TXSO_EN_ 0x00010000 |
#define | INT_EN_RWT_EN_ 0x00008000 |
#define | INT_EN_RXE_EN_ 0x00004000 |
#define | INT_EN_TXE_EN_ 0x00002000 |
#define | INT_EN_TDFU_EN_ 0x00000800 |
#define | INT_EN_TDFO_EN_ 0x00000400 |
#define | INT_EN_TDFA_EN_ 0x00000200 |
#define | INT_EN_TSFF_EN_ 0x00000100 |
#define | INT_EN_TSFL_EN_ 0x00000080 |
#define | INT_EN_RXDF_EN_ 0x00000040 |
#define | INT_EN_RDFL_EN_ 0x00000020 |
#define | INT_EN_RSFF_EN_ 0x00000010 |
#define | INT_EN_RSFL_EN_ 0x00000008 |
#define | INT_EN_GPIO2_INT_ 0x00000004 |
#define | INT_EN_GPIO1_INT_ 0x00000002 |
#define | INT_EN_GPIO0_INT_ 0x00000001 |
#define | BYTE_TEST 0x64 |
#define | FIFO_INT 0x68 |
#define | FIFO_INT_TX_AVAIL_LEVEL_ 0xFF000000 |
#define | FIFO_INT_TX_STS_LEVEL_ 0x00FF0000 |
#define | FIFO_INT_RX_AVAIL_LEVEL_ 0x0000FF00 |
#define | FIFO_INT_RX_STS_LEVEL_ 0x000000FF |
#define | RX_CFG 0x6C |
#define | RX_CFG_RX_END_ALGN_ 0xC0000000 |
#define | RX_CFG_RX_END_ALGN4_ 0x00000000 |
#define | RX_CFG_RX_END_ALGN16_ 0x40000000 |
#define | RX_CFG_RX_END_ALGN32_ 0x80000000 |
#define | RX_CFG_RX_DMA_CNT_ 0x0FFF0000 |
#define | RX_CFG_RX_DUMP_ 0x00008000 |
#define | RX_CFG_RXDOFF_ 0x00001F00 |
#define | TX_CFG 0x70 |
#define | TX_CFG_TXS_DUMP_ 0x00008000 |
#define | TX_CFG_TXD_DUMP_ 0x00004000 |
#define | TX_CFG_TXSAO_ 0x00000004 |
#define | TX_CFG_TX_ON_ 0x00000002 |
#define | TX_CFG_STOP_TX_ 0x00000001 |
#define | HW_CFG 0x74 |
#define | HW_CFG_TTM_ 0x00200000 |
#define | HW_CFG_SF_ 0x00100000 |
#define | HW_CFG_TX_FIF_SZ_ 0x000F0000 |
#define | HW_CFG_TR_ 0x00003000 |
#define | HW_CFG_SRST_ 0x00000001 |
#define | HW_CFG_PHY_CLK_SEL_ 0x00000060 |
#define | HW_CFG_PHY_CLK_SEL_INT_PHY_ 0x00000000 |
#define | HW_CFG_PHY_CLK_SEL_EXT_PHY_ 0x00000020 |
#define | HW_CFG_PHY_CLK_SEL_CLK_DIS_ 0x00000040 |
#define | HW_CFG_SMI_SEL_ 0x00000010 |
#define | HW_CFG_EXT_PHY_DET_ 0x00000008 |
#define | HW_CFG_EXT_PHY_EN_ 0x00000004 |
#define | HW_CFG_SRST_TO_ 0x00000002 |
#define | HW_CFG_32_16_BIT_MODE_ 0x00000004 |
#define | RX_DP_CTRL 0x78 |
#define | RX_DP_CTRL_RX_FFWD_ 0x80000000 |
#define | RX_FIFO_INF 0x7C |
#define | RX_FIFO_INF_RXSUSED_ 0x00FF0000 |
#define | RX_FIFO_INF_RXDUSED_ 0x0000FFFF |
#define | TX_FIFO_INF 0x80 |
#define | TX_FIFO_INF_TSUSED_ 0x00FF0000 |
#define | TX_FIFO_INF_TDFREE_ 0x0000FFFF |
#define | PMT_CTRL 0x84 |
#define | PMT_CTRL_PM_MODE_ 0x00003000 |
#define | PMT_CTRL_PM_MODE_D0_ 0x00000000 |
#define | PMT_CTRL_PM_MODE_D1_ 0x00001000 |
#define | PMT_CTRL_PM_MODE_D2_ 0x00002000 |
#define | PMT_CTRL_PM_MODE_D3_ 0x00003000 |
#define | PMT_CTRL_PHY_RST_ 0x00000400 |
#define | PMT_CTRL_WOL_EN_ 0x00000200 |
#define | PMT_CTRL_ED_EN_ 0x00000100 |
#define | PMT_CTRL_PME_TYPE_ 0x00000040 |
#define | PMT_CTRL_WUPS_ 0x00000030 |
#define | PMT_CTRL_WUPS_NOWAKE_ 0x00000000 |
#define | PMT_CTRL_WUPS_ED_ 0x00000010 |
#define | PMT_CTRL_WUPS_WOL_ 0x00000020 |
#define | PMT_CTRL_WUPS_MULTI_ 0x00000030 |
#define | PMT_CTRL_PME_IND_ 0x00000008 |
#define | PMT_CTRL_PME_POL_ 0x00000004 |
#define | PMT_CTRL_PME_EN_ 0x00000002 |
#define | PMT_CTRL_READY_ 0x00000001 |
#define | GPIO_CFG 0x88 |
#define | GPIO_CFG_LED3_EN_ 0x40000000 |
#define | GPIO_CFG_LED2_EN_ 0x20000000 |
#define | GPIO_CFG_LED1_EN_ 0x10000000 |
#define | GPIO_CFG_GPIO2_INT_POL_ 0x04000000 |
#define | GPIO_CFG_GPIO1_INT_POL_ 0x02000000 |
#define | GPIO_CFG_GPIO0_INT_POL_ 0x01000000 |
#define | GPIO_CFG_EEPR_EN_ 0x00700000 |
#define | GPIO_CFG_GPIOBUF2_ 0x00040000 |
#define | GPIO_CFG_GPIOBUF1_ 0x00020000 |
#define | GPIO_CFG_GPIOBUF0_ 0x00010000 |
#define | GPIO_CFG_GPIODIR2_ 0x00000400 |
#define | GPIO_CFG_GPIODIR1_ 0x00000200 |
#define | GPIO_CFG_GPIODIR0_ 0x00000100 |
#define | GPIO_CFG_GPIOD4_ 0x00000020 |
#define | GPIO_CFG_GPIOD3_ 0x00000010 |
#define | GPIO_CFG_GPIOD2_ 0x00000004 |
#define | GPIO_CFG_GPIOD1_ 0x00000002 |
#define | GPIO_CFG_GPIOD0_ 0x00000001 |
#define | GPT_CFG 0x8C |
#define | GPT_CFG_TIMER_EN_ 0x20000000 |
#define | GPT_CFG_GPT_LOAD_ 0x0000FFFF |
#define | GPT_CNT 0x90 |
#define | GPT_CNT_GPT_CNT_ 0x0000FFFF |
#define | WORD_SWAP 0x98 |
#define | FREE_RUN 0x9C |
#define | RX_DROP 0xA0 |
#define | MAC_CSR_CMD 0xA4 |
#define | MAC_CSR_CMD_CSR_BUSY_ 0x80000000 |
#define | MAC_CSR_CMD_R_NOT_W_ 0x40000000 |
#define | MAC_CSR_CMD_CSR_ADDR_ 0x000000FF |
#define | MAC_CSR_DATA 0xA8 |
#define | AFC_CFG 0xAC |
#define | AFC_CFG_AFC_HI_ 0x00FF0000 |
#define | AFC_CFG_AFC_LO_ 0x0000FF00 |
#define | AFC_CFG_BACK_DUR_ 0x000000F0 |
#define | AFC_CFG_FCMULT_ 0x00000008 |
#define | AFC_CFG_FCBRD_ 0x00000004 |
#define | AFC_CFG_FCADD_ 0x00000002 |
#define | AFC_CFG_FCANY_ 0x00000001 |
#define | E2P_CMD 0xB0 |
#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 0xB4 |
#define | E2P_DATA_EEPROM_DATA_ 0x000000FF |
#define | LAN_REGISTER_EXTENT 0x00000100 |
#define | MAC_CR 0x01 |
#define | MAC_CR_RXALL_ 0x80000000 |
#define | MAC_CR_HBDIS_ 0x10000000 |
#define | MAC_CR_RCVOWN_ 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_BCAST_ 0x00000800 |
#define | MAC_CR_DISRTY_ 0x00000400 |
#define | MAC_CR_PADSTR_ 0x00000100 |
#define | MAC_CR_BOLMT_MASK_ 0x000000C0 |
#define | MAC_CR_DFCHK_ 0x00000020 |
#define | MAC_CR_TXEN_ 0x00000008 |
#define | MAC_CR_RXEN_ 0x00000004 |
#define | ADDRH 0x02 |
#define | ADDRL 0x03 |
#define | HASHH 0x04 |
#define | HASHL 0x05 |
#define | MII_ACC 0x06 |
#define | MII_ACC_PHY_ADDR_ 0x0000F800 |
#define | MII_ACC_MIIRINDA_ 0x000007C0 |
#define | MII_ACC_MII_WRITE_ 0x00000002 |
#define | MII_ACC_MII_BUSY_ 0x00000001 |
#define | MII_DATA 0x07 |
#define | FLOW 0x08 |
#define | FLOW_FCPT_ 0xFFFF0000 |
#define | FLOW_FCPASS_ 0x00000004 |
#define | FLOW_FCEN_ 0x00000002 |
#define | FLOW_FCBSY_ 0x00000001 |
#define | VLAN1 0x09 |
#define | VLAN2 0x0A |
#define | WUFF 0x0B |
#define | WUCSR 0x0C |
#define | WUCSR_GUE_ 0x00000200 |
#define | WUCSR_WUFR_ 0x00000040 |
#define | WUCSR_MPR_ 0x00000020 |
#define | WUCSR_WAKE_EN_ 0x00000004 |
#define | WUCSR_MPEN_ 0x00000002 |
#define | LAN9118_PHY_ID 0x00C0001C |
#define | MII_INTSTS 0x1D |
#define | MII_INTMSK 0x1E |
#define | PHY_INTMSK_AN_RCV_ (1 << 1) |
#define | PHY_INTMSK_PDFAULT_ (1 << 2) |
#define | PHY_INTMSK_AN_ACK_ (1 << 3) |
#define | PHY_INTMSK_LNKDOWN_ (1 << 4) |
#define | PHY_INTMSK_RFAULT_ (1 << 5) |
#define | PHY_INTMSK_AN_COMP_ (1 << 6) |
#define | PHY_INTMSK_ENERGYON_ (1 << 7) |
#define | PHY_INTMSK_DEFAULT_ |
#define | ADVERTISE_PAUSE_ALL |
#define | LPA_PAUSE_ALL |
#define | SMSC_INITIALIZE() do {} while (0) |
#define | smsc_get_mac(dev) smsc911x_read_mac_address((dev)) |
#define ADDRH 0x02 |
Definition at line 332 of file smsc911x.h.
#define ADDRL 0x03 |
Definition at line 334 of file smsc911x.h.
#define ADVERTISE_PAUSE_ALL |
Definition at line 387 of file smsc911x.h.
#define AFC_CFG 0xAC |
Definition at line 279 of file smsc911x.h.
#define AFC_CFG_AFC_HI_ 0x00FF0000 |
Definition at line 280 of file smsc911x.h.
#define AFC_CFG_AFC_LO_ 0x0000FF00 |
Definition at line 281 of file smsc911x.h.
#define AFC_CFG_BACK_DUR_ 0x000000F0 |
Definition at line 282 of file smsc911x.h.
#define AFC_CFG_FCADD_ 0x00000002 |
Definition at line 285 of file smsc911x.h.
#define AFC_CFG_FCANY_ 0x00000001 |
Definition at line 286 of file smsc911x.h.
#define AFC_CFG_FCBRD_ 0x00000004 |
Definition at line 284 of file smsc911x.h.
#define AFC_CFG_FCMULT_ 0x00000008 |
Definition at line 283 of file smsc911x.h.
#define BYTE_TEST 0x64 |
Definition at line 164 of file smsc911x.h.
#define E2P_CMD 0xB0 |
Definition at line 288 of file smsc911x.h.
#define E2P_CMD_EPC_ADDR_ 0x000000FF |
Definition at line 301 of file smsc911x.h.
#define E2P_CMD_EPC_BUSY_ 0x80000000 |
Definition at line 289 of file smsc911x.h.
#define E2P_CMD_EPC_CMD_ 0x70000000 |
Definition at line 290 of file smsc911x.h.
#define E2P_CMD_EPC_CMD_ERAL_ 0x60000000 |
Definition at line 297 of file smsc911x.h.
#define E2P_CMD_EPC_CMD_ERASE_ 0x50000000 |
Definition at line 296 of file smsc911x.h.
#define E2P_CMD_EPC_CMD_EWDS_ 0x10000000 |
Definition at line 292 of file smsc911x.h.
#define E2P_CMD_EPC_CMD_EWEN_ 0x20000000 |
Definition at line 293 of file smsc911x.h.
#define E2P_CMD_EPC_CMD_READ_ 0x00000000 |
Definition at line 291 of file smsc911x.h.
#define E2P_CMD_EPC_CMD_RELOAD_ 0x70000000 |
Definition at line 298 of file smsc911x.h.
#define E2P_CMD_EPC_CMD_WRAL_ 0x40000000 |
Definition at line 295 of file smsc911x.h.
#define E2P_CMD_EPC_CMD_WRITE_ 0x30000000 |
Definition at line 294 of file smsc911x.h.
#define E2P_CMD_EPC_TIMEOUT_ 0x00000200 |
Definition at line 299 of file smsc911x.h.
#define E2P_CMD_MAC_ADDR_LOADED_ 0x00000100 |
Definition at line 300 of file smsc911x.h.
#define E2P_DATA 0xB4 |
Definition at line 303 of file smsc911x.h.
#define E2P_DATA_EEPROM_DATA_ 0x000000FF |
Definition at line 304 of file smsc911x.h.
#define FIFO_INT 0x68 |
Definition at line 166 of file smsc911x.h.
#define FIFO_INT_RX_AVAIL_LEVEL_ 0x0000FF00 |
Definition at line 169 of file smsc911x.h.
#define FIFO_INT_RX_STS_LEVEL_ 0x000000FF |
Definition at line 170 of file smsc911x.h.
#define FIFO_INT_TX_AVAIL_LEVEL_ 0xFF000000 |
Definition at line 167 of file smsc911x.h.
#define FIFO_INT_TX_STS_LEVEL_ 0x00FF0000 |
Definition at line 168 of file smsc911x.h.
#define FLOW 0x08 |
Definition at line 348 of file smsc911x.h.
#define FLOW_FCBSY_ 0x00000001 |
Definition at line 352 of file smsc911x.h.
#define FLOW_FCEN_ 0x00000002 |
Definition at line 351 of file smsc911x.h.
#define FLOW_FCPASS_ 0x00000004 |
Definition at line 350 of file smsc911x.h.
#define FLOW_FCPT_ 0xFFFF0000 |
Definition at line 349 of file smsc911x.h.
#define FREE_RUN 0x9C |
Definition at line 268 of file smsc911x.h.
#define GPIO_CFG 0x88 |
Definition at line 239 of file smsc911x.h.
#define GPIO_CFG_EEPR_EN_ 0x00700000 |
Definition at line 246 of file smsc911x.h.
#define GPIO_CFG_GPIO0_INT_POL_ 0x01000000 |
Definition at line 245 of file smsc911x.h.
#define GPIO_CFG_GPIO1_INT_POL_ 0x02000000 |
Definition at line 244 of file smsc911x.h.
#define GPIO_CFG_GPIO2_INT_POL_ 0x04000000 |
Definition at line 243 of file smsc911x.h.
#define GPIO_CFG_GPIOBUF0_ 0x00010000 |
Definition at line 249 of file smsc911x.h.
#define GPIO_CFG_GPIOBUF1_ 0x00020000 |
Definition at line 248 of file smsc911x.h.
#define GPIO_CFG_GPIOBUF2_ 0x00040000 |
Definition at line 247 of file smsc911x.h.
#define GPIO_CFG_GPIOD0_ 0x00000001 |
Definition at line 257 of file smsc911x.h.
#define GPIO_CFG_GPIOD1_ 0x00000002 |
Definition at line 256 of file smsc911x.h.
#define GPIO_CFG_GPIOD2_ 0x00000004 |
Definition at line 255 of file smsc911x.h.
#define GPIO_CFG_GPIOD3_ 0x00000010 |
Definition at line 254 of file smsc911x.h.
#define GPIO_CFG_GPIOD4_ 0x00000020 |
Definition at line 253 of file smsc911x.h.
#define GPIO_CFG_GPIODIR0_ 0x00000100 |
Definition at line 252 of file smsc911x.h.
#define GPIO_CFG_GPIODIR1_ 0x00000200 |
Definition at line 251 of file smsc911x.h.
#define GPIO_CFG_GPIODIR2_ 0x00000400 |
Definition at line 250 of file smsc911x.h.
#define GPIO_CFG_LED1_EN_ 0x10000000 |
Definition at line 242 of file smsc911x.h.
#define GPIO_CFG_LED2_EN_ 0x20000000 |
Definition at line 241 of file smsc911x.h.
#define GPIO_CFG_LED3_EN_ 0x40000000 |
Definition at line 240 of file smsc911x.h.
#define GPT_CFG 0x8C |
Definition at line 259 of file smsc911x.h.
#define GPT_CFG_GPT_LOAD_ 0x0000FFFF |
Definition at line 261 of file smsc911x.h.
#define GPT_CFG_TIMER_EN_ 0x20000000 |
Definition at line 260 of file smsc911x.h.
#define GPT_CNT 0x90 |
Definition at line 263 of file smsc911x.h.
#define GPT_CNT_GPT_CNT_ 0x0000FFFF |
Definition at line 264 of file smsc911x.h.
#define HASHH 0x04 |
Definition at line 336 of file smsc911x.h.
#define HASHL 0x05 |
Definition at line 338 of file smsc911x.h.
#define HW_CFG 0x74 |
Definition at line 188 of file smsc911x.h.
#define HW_CFG_32_16_BIT_MODE_ 0x00000004 |
Definition at line 206 of file smsc911x.h.
#define HW_CFG_EXT_PHY_DET_ 0x00000008 |
Definition at line 201 of file smsc911x.h.
#define HW_CFG_EXT_PHY_EN_ 0x00000004 |
Definition at line 202 of file smsc911x.h.
#define HW_CFG_PHY_CLK_SEL_ 0x00000060 |
Definition at line 196 of file smsc911x.h.
#define HW_CFG_PHY_CLK_SEL_CLK_DIS_ 0x00000040 |
Definition at line 199 of file smsc911x.h.
#define HW_CFG_PHY_CLK_SEL_EXT_PHY_ 0x00000020 |
Definition at line 198 of file smsc911x.h.
#define HW_CFG_PHY_CLK_SEL_INT_PHY_ 0x00000000 |
Definition at line 197 of file smsc911x.h.
#define HW_CFG_SF_ 0x00100000 |
Definition at line 190 of file smsc911x.h.
#define HW_CFG_SMI_SEL_ 0x00000010 |
Definition at line 200 of file smsc911x.h.
#define HW_CFG_SRST_ 0x00000001 |
Definition at line 193 of file smsc911x.h.
#define HW_CFG_SRST_TO_ 0x00000002 |
Definition at line 203 of file smsc911x.h.
#define HW_CFG_TR_ 0x00003000 |
Definition at line 192 of file smsc911x.h.
#define HW_CFG_TTM_ 0x00200000 |
Definition at line 189 of file smsc911x.h.
#define HW_CFG_TX_FIF_SZ_ 0x000F0000 |
Definition at line 191 of file smsc911x.h.
#define ID_REV 0x50 |
Definition at line 96 of file smsc911x.h.
#define ID_REV_CHIP_ID_ 0xFFFF0000 |
Definition at line 97 of file smsc911x.h.
#define ID_REV_REV_ID_ 0x0000FFFF |
Definition at line 98 of file smsc911x.h.
#define INT_CFG 0x54 |
Definition at line 100 of file smsc911x.h.
#define INT_CFG_INT_DEAS_ 0xFF000000 |
Definition at line 101 of file smsc911x.h.
#define INT_CFG_INT_DEAS_CLR_ 0x00004000 |
Definition at line 102 of file smsc911x.h.
#define INT_CFG_INT_DEAS_STS_ 0x00002000 |
Definition at line 103 of file smsc911x.h.
#define INT_CFG_IRQ_EN_ 0x00000100 |
Definition at line 105 of file smsc911x.h.
#define INT_CFG_IRQ_INT_ 0x00001000 |
Definition at line 104 of file smsc911x.h.
#define INT_CFG_IRQ_POL_ 0x00000010 |
Definition at line 106 of file smsc911x.h.
#define INT_CFG_IRQ_TYPE_ 0x00000001 |
Definition at line 107 of file smsc911x.h.
#define INT_EN 0x5C |
Definition at line 137 of file smsc911x.h.
#define INT_EN_GPIO0_INT_ 0x00000001 |
Definition at line 162 of file smsc911x.h.
#define INT_EN_GPIO1_INT_ 0x00000002 |
Definition at line 161 of file smsc911x.h.
#define INT_EN_GPIO2_INT_ 0x00000004 |
Definition at line 160 of file smsc911x.h.
#define INT_EN_GPT_INT_EN_ 0x00080000 |
Definition at line 144 of file smsc911x.h.
#define INT_EN_PHY_INT_EN_ 0x00040000 |
Definition at line 145 of file smsc911x.h.
#define INT_EN_PME_INT_EN_ 0x00020000 |
Definition at line 146 of file smsc911x.h.
#define INT_EN_RDFL_EN_ 0x00000020 |
Definition at line 157 of file smsc911x.h.
#define INT_EN_RSFF_EN_ 0x00000010 |
Definition at line 158 of file smsc911x.h.
#define INT_EN_RSFL_EN_ 0x00000008 |
Definition at line 159 of file smsc911x.h.
#define INT_EN_RWT_EN_ 0x00008000 |
Definition at line 148 of file smsc911x.h.
#define INT_EN_RXD_INT_EN_ 0x00100000 |
Definition at line 143 of file smsc911x.h.
#define INT_EN_RXDF_EN_ 0x00000040 |
Definition at line 156 of file smsc911x.h.
#define INT_EN_RXDFH_INT_EN_ 0x00800000 |
Definition at line 141 of file smsc911x.h.
#define INT_EN_RXE_EN_ 0x00004000 |
Definition at line 149 of file smsc911x.h.
#define INT_EN_RXSTOP_INT_EN_ 0x01000000 |
Definition at line 140 of file smsc911x.h.
#define INT_EN_SW_INT_EN_ 0x80000000 |
Definition at line 138 of file smsc911x.h.
#define INT_EN_TDFA_EN_ 0x00000200 |
Definition at line 153 of file smsc911x.h.
#define INT_EN_TDFO_EN_ 0x00000400 |
Definition at line 152 of file smsc911x.h.
#define INT_EN_TDFU_EN_ 0x00000800 |
Definition at line 151 of file smsc911x.h.
#define INT_EN_TIOC_INT_EN_ 0x00200000 |
Definition at line 142 of file smsc911x.h.
#define INT_EN_TSFF_EN_ 0x00000100 |
Definition at line 154 of file smsc911x.h.
#define INT_EN_TSFL_EN_ 0x00000080 |
Definition at line 155 of file smsc911x.h.
#define INT_EN_TXE_EN_ 0x00002000 |
Definition at line 150 of file smsc911x.h.
#define INT_EN_TXSO_EN_ 0x00010000 |
Definition at line 147 of file smsc911x.h.
#define INT_EN_TXSTOP_INT_EN_ 0x02000000 |
Definition at line 139 of file smsc911x.h.
#define INT_STS 0x58 |
Definition at line 109 of file smsc911x.h.
#define INT_STS_GPIO0_INT_ 0x00000001 |
Definition at line 135 of file smsc911x.h.
#define INT_STS_GPIO1_INT_ 0x00000002 |
Definition at line 134 of file smsc911x.h.
#define INT_STS_GPIO2_INT_ 0x00000004 |
Definition at line 133 of file smsc911x.h.
#define INT_STS_GPT_INT_ 0x00080000 |
Definition at line 117 of file smsc911x.h.
#define INT_STS_PHY_INT_ 0x00040000 |
Definition at line 118 of file smsc911x.h.
#define INT_STS_PME_INT_ 0x00020000 |
Definition at line 119 of file smsc911x.h.
#define INT_STS_RDFL_ 0x00000020 |
Definition at line 130 of file smsc911x.h.
#define INT_STS_RSFF_ 0x00000010 |
Definition at line 131 of file smsc911x.h.
#define INT_STS_RSFL_ 0x00000008 |
Definition at line 132 of file smsc911x.h.
#define INT_STS_RWT_ 0x00008000 |
Definition at line 121 of file smsc911x.h.
#define INT_STS_RXD_INT_ 0x00100000 |
Definition at line 116 of file smsc911x.h.
#define INT_STS_RXDF_ 0x00000040 |
Definition at line 129 of file smsc911x.h.
#define INT_STS_RXDF_INT_ 0x00400000 |
Definition at line 114 of file smsc911x.h.
#define INT_STS_RXDFH_INT_ 0x00800000 |
Definition at line 113 of file smsc911x.h.
#define INT_STS_RXE_ 0x00004000 |
Definition at line 122 of file smsc911x.h.
#define INT_STS_RXSTOP_INT_ 0x01000000 |
Definition at line 112 of file smsc911x.h.
#define INT_STS_SW_INT_ 0x80000000 |
Definition at line 110 of file smsc911x.h.
#define INT_STS_TDFA_ 0x00000200 |
Definition at line 126 of file smsc911x.h.
#define INT_STS_TDFO_ 0x00000400 |
Definition at line 125 of file smsc911x.h.
#define INT_STS_TDFU_ 0x00000800 |
Definition at line 124 of file smsc911x.h.
#define INT_STS_TSFF_ 0x00000100 |
Definition at line 127 of file smsc911x.h.
#define INT_STS_TSFL_ 0x00000080 |
Definition at line 128 of file smsc911x.h.
#define INT_STS_TX_IOC_ 0x00200000 |
Definition at line 115 of file smsc911x.h.
#define INT_STS_TXE_ 0x00002000 |
Definition at line 123 of file smsc911x.h.
#define INT_STS_TXSO_ 0x00010000 |
Definition at line 120 of file smsc911x.h.
#define INT_STS_TXSTOP_INT_ 0x02000000 |
Definition at line 111 of file smsc911x.h.
#define LAN9118_PHY_ID 0x00C0001C |
Definition at line 370 of file smsc911x.h.
#define LAN_REGISTER_EXTENT 0x00000100 |
Definition at line 305 of file smsc911x.h.
#define LPA_PAUSE_ALL |
Definition at line 390 of file smsc911x.h.
#define MAC_CR 0x01 |
Definition at line 311 of file smsc911x.h.
#define MAC_CR_BCAST_ 0x00000800 |
Definition at line 324 of file smsc911x.h.
#define MAC_CR_BOLMT_MASK_ 0x000000C0 |
Definition at line 327 of file smsc911x.h.
#define MAC_CR_DFCHK_ 0x00000020 |
Definition at line 328 of file smsc911x.h.
#define MAC_CR_DISRTY_ 0x00000400 |
Definition at line 325 of file smsc911x.h.
#define MAC_CR_FDPX_ 0x00100000 |
Definition at line 316 of file smsc911x.h.
#define MAC_CR_HBDIS_ 0x10000000 |
Definition at line 313 of file smsc911x.h.
#define MAC_CR_HFILT_ 0x00008000 |
Definition at line 321 of file smsc911x.h.
#define MAC_CR_HPFILT_ 0x00002000 |
Definition at line 322 of file smsc911x.h.
#define MAC_CR_INVFILT_ 0x00020000 |
Definition at line 319 of file smsc911x.h.
#define MAC_CR_LCOLL_ 0x00001000 |
Definition at line 323 of file smsc911x.h.
#define MAC_CR_LOOPBK_ 0x00200000 |
Definition at line 315 of file smsc911x.h.
#define MAC_CR_MCPAS_ 0x00080000 |
Definition at line 317 of file smsc911x.h.
#define MAC_CR_PADSTR_ 0x00000100 |
Definition at line 326 of file smsc911x.h.
#define MAC_CR_PASSBAD_ 0x00010000 |
Definition at line 320 of file smsc911x.h.
#define MAC_CR_PRMS_ 0x00040000 |
Definition at line 318 of file smsc911x.h.
#define MAC_CR_RCVOWN_ 0x00800000 |
Definition at line 314 of file smsc911x.h.
#define MAC_CR_RXALL_ 0x80000000 |
Definition at line 312 of file smsc911x.h.
#define MAC_CR_RXEN_ 0x00000004 |
Definition at line 330 of file smsc911x.h.
#define MAC_CR_TXEN_ 0x00000008 |
Definition at line 329 of file smsc911x.h.
#define MAC_CSR_CMD 0xA4 |
Definition at line 272 of file smsc911x.h.
#define MAC_CSR_CMD_CSR_ADDR_ 0x000000FF |
Definition at line 275 of file smsc911x.h.
#define MAC_CSR_CMD_CSR_BUSY_ 0x80000000 |
Definition at line 273 of file smsc911x.h.
#define MAC_CSR_CMD_R_NOT_W_ 0x40000000 |
Definition at line 274 of file smsc911x.h.
#define MAC_CSR_DATA 0xA8 |
Definition at line 277 of file smsc911x.h.
#define MII_ACC 0x06 |
Definition at line 340 of file smsc911x.h.
#define MII_ACC_MII_BUSY_ 0x00000001 |
Definition at line 344 of file smsc911x.h.
#define MII_ACC_MII_WRITE_ 0x00000002 |
Definition at line 343 of file smsc911x.h.
#define MII_ACC_MIIRINDA_ 0x000007C0 |
Definition at line 342 of file smsc911x.h.
#define MII_ACC_PHY_ADDR_ 0x0000F800 |
Definition at line 341 of file smsc911x.h.
#define MII_DATA 0x07 |
Definition at line 346 of file smsc911x.h.
#define MII_INTMSK 0x1E |
Definition at line 374 of file smsc911x.h.
#define MII_INTSTS 0x1D |
Definition at line 372 of file smsc911x.h.
#define PHY_INTMSK_AN_ACK_ (1 << 3) |
Definition at line 377 of file smsc911x.h.
#define PHY_INTMSK_AN_COMP_ (1 << 6) |
Definition at line 380 of file smsc911x.h.
#define PHY_INTMSK_AN_RCV_ (1 << 1) |
Definition at line 375 of file smsc911x.h.
#define PHY_INTMSK_DEFAULT_ |
Definition at line 382 of file smsc911x.h.
#define PHY_INTMSK_ENERGYON_ (1 << 7) |
Definition at line 381 of file smsc911x.h.
#define PHY_INTMSK_LNKDOWN_ (1 << 4) |
Definition at line 378 of file smsc911x.h.
#define PHY_INTMSK_PDFAULT_ (1 << 2) |
Definition at line 376 of file smsc911x.h.
#define PHY_INTMSK_RFAULT_ (1 << 5) |
Definition at line 379 of file smsc911x.h.
#define PMT_CTRL 0x84 |
Definition at line 219 of file smsc911x.h.
#define PMT_CTRL_ED_EN_ 0x00000100 |
Definition at line 227 of file smsc911x.h.
#define PMT_CTRL_PHY_RST_ 0x00000400 |
Definition at line 225 of file smsc911x.h.
#define PMT_CTRL_PM_MODE_ 0x00003000 |
Definition at line 220 of file smsc911x.h.
#define PMT_CTRL_PM_MODE_D0_ 0x00000000 |
Definition at line 221 of file smsc911x.h.
#define PMT_CTRL_PM_MODE_D1_ 0x00001000 |
Definition at line 222 of file smsc911x.h.
#define PMT_CTRL_PM_MODE_D2_ 0x00002000 |
Definition at line 223 of file smsc911x.h.
#define PMT_CTRL_PM_MODE_D3_ 0x00003000 |
Definition at line 224 of file smsc911x.h.
#define PMT_CTRL_PME_EN_ 0x00000002 |
Definition at line 236 of file smsc911x.h.
#define PMT_CTRL_PME_IND_ 0x00000008 |
Definition at line 234 of file smsc911x.h.
#define PMT_CTRL_PME_POL_ 0x00000004 |
Definition at line 235 of file smsc911x.h.
#define PMT_CTRL_PME_TYPE_ 0x00000040 |
Definition at line 228 of file smsc911x.h.
#define PMT_CTRL_READY_ 0x00000001 |
Definition at line 237 of file smsc911x.h.
#define PMT_CTRL_WOL_EN_ 0x00000200 |
Definition at line 226 of file smsc911x.h.
#define PMT_CTRL_WUPS_ 0x00000030 |
Definition at line 229 of file smsc911x.h.
#define PMT_CTRL_WUPS_ED_ 0x00000010 |
Definition at line 231 of file smsc911x.h.
#define PMT_CTRL_WUPS_MULTI_ 0x00000030 |
Definition at line 233 of file smsc911x.h.
#define PMT_CTRL_WUPS_NOWAKE_ 0x00000000 |
Definition at line 230 of file smsc911x.h.
#define PMT_CTRL_WUPS_WOL_ 0x00000020 |
Definition at line 232 of file smsc911x.h.
#define RX_CFG 0x6C |
Definition at line 172 of file smsc911x.h.
#define RX_CFG_RX_DMA_CNT_ 0x0FFF0000 |
Definition at line 177 of file smsc911x.h.
#define RX_CFG_RX_DUMP_ 0x00008000 |
Definition at line 178 of file smsc911x.h.
#define RX_CFG_RX_END_ALGN16_ 0x40000000 |
Definition at line 175 of file smsc911x.h.
#define RX_CFG_RX_END_ALGN32_ 0x80000000 |
Definition at line 176 of file smsc911x.h.
#define RX_CFG_RX_END_ALGN4_ 0x00000000 |
Definition at line 174 of file smsc911x.h.
#define RX_CFG_RX_END_ALGN_ 0xC0000000 |
Definition at line 173 of file smsc911x.h.
#define RX_CFG_RXDOFF_ 0x00001F00 |
Definition at line 179 of file smsc911x.h.
#define RX_DATA_FIFO 0x00 |
Definition at line 61 of file smsc911x.h.
#define RX_DP_CTRL 0x78 |
Definition at line 208 of file smsc911x.h.
#define RX_DP_CTRL_RX_FFWD_ 0x80000000 |
Definition at line 209 of file smsc911x.h.
#define RX_DROP 0xA0 |
Definition at line 270 of file smsc911x.h.
#define RX_FIFO_INF 0x7C |
Definition at line 211 of file smsc911x.h.
#define RX_FIFO_INF_RXDUSED_ 0x0000FFFF |
Definition at line 213 of file smsc911x.h.
#define RX_FIFO_INF_RXSUSED_ 0x00FF0000 |
Definition at line 212 of file smsc911x.h.
#define RX_STATUS_FIFO 0x40 |
Definition at line 78 of file smsc911x.h.
#define RX_STATUS_FIFO_PEEK 0x44 |
Definition at line 85 of file smsc911x.h.
#define RX_STS_CRC_ERR_ 0x00000002 |
Definition at line 83 of file smsc911x.h.
#define RX_STS_ES_ 0x00008000 |
Definition at line 79 of file smsc911x.h.
#define RX_STS_FRAME_TYPE_ 0x00000020 |
Definition at line 82 of file smsc911x.h.
#define RX_STS_LENGTH_ERR_ 0x00001000 |
Definition at line 80 of file smsc911x.h.
#define RX_STS_MCAST_ 0x00000400 |
Definition at line 81 of file smsc911x.h.
#define SMSC911X_EEPROM_SIZE ((u32)128) |
Definition at line 25 of file smsc911x.h.
#define SMSC_ASSERT_MAC_LOCK | ( | pdata | ) | do {} while (0) |
Definition at line 57 of file smsc911x.h.
Definition at line 398 of file smsc911x.h.
#define SMSC_INITIALIZE | ( | ) | do {} while (0) |
Definition at line 397 of file smsc911x.h.
#define SMSC_NAPI_WEIGHT 16 |
Definition at line 30 of file smsc911x.h.
Definition at line 49 of file smsc911x.h.
Definition at line 41 of file smsc911x.h.
#define TX_CFG 0x70 |
Definition at line 181 of file smsc911x.h.
#define TX_CFG_STOP_TX_ 0x00000001 |
Definition at line 186 of file smsc911x.h.
#define TX_CFG_TX_ON_ 0x00000002 |
Definition at line 185 of file smsc911x.h.
#define TX_CFG_TXD_DUMP_ 0x00004000 |
Definition at line 183 of file smsc911x.h.
#define TX_CFG_TXS_DUMP_ 0x00008000 |
Definition at line 182 of file smsc911x.h.
#define TX_CFG_TXSAO_ 0x00000004 |
Definition at line 184 of file smsc911x.h.
#define TX_CMD_A_16_BYTE_ALGN_ 0x01000000 |
Definition at line 67 of file smsc911x.h.
#define TX_CMD_A_32_BYTE_ALGN_ 0x02000000 |
Definition at line 68 of file smsc911x.h.
#define TX_CMD_A_4_BYTE_ALGN_ 0x00000000 |
Definition at line 66 of file smsc911x.h.
#define TX_CMD_A_BUF_END_ALGN_ 0x03000000 |
Definition at line 65 of file smsc911x.h.
#define TX_CMD_A_BUF_SIZE_ 0x000007FF |
Definition at line 72 of file smsc911x.h.
#define TX_CMD_A_DATA_OFFSET_ 0x001F0000 |
Definition at line 69 of file smsc911x.h.
#define TX_CMD_A_FIRST_SEG_ 0x00002000 |
Definition at line 70 of file smsc911x.h.
#define TX_CMD_A_LAST_SEG_ 0x00001000 |
Definition at line 71 of file smsc911x.h.
#define TX_CMD_A_ON_COMP_ 0x80000000 |
Definition at line 64 of file smsc911x.h.
#define TX_CMD_B_ADD_CRC_DISABLE_ 0x00002000 |
Definition at line 74 of file smsc911x.h.
#define TX_CMD_B_DISABLE_PADDING_ 0x00001000 |
Definition at line 75 of file smsc911x.h.
#define TX_CMD_B_PKT_BYTE_LENGTH_ 0x000007FF |
Definition at line 76 of file smsc911x.h.
#define TX_CMD_B_PKT_TAG_ 0xFFFF0000 |
Definition at line 73 of file smsc911x.h.
#define TX_DATA_FIFO 0x20 |
Definition at line 63 of file smsc911x.h.
#define TX_FIFO_INF 0x80 |
Definition at line 215 of file smsc911x.h.
#define TX_FIFO_INF_TDFREE_ 0x0000FFFF |
Definition at line 217 of file smsc911x.h.
#define TX_FIFO_INF_TSUSED_ 0x00FF0000 |
Definition at line 216 of file smsc911x.h.
#define TX_FIFO_LOW_THRESHOLD ((u32)1600) |
Definition at line 24 of file smsc911x.h.
#define TX_STATUS_FIFO 0x48 |
Definition at line 87 of file smsc911x.h.
#define TX_STATUS_FIFO_PEEK 0x4C |
Definition at line 94 of file smsc911x.h.
#define TX_STS_ES_ 0x00008000 |
Definition at line 88 of file smsc911x.h.
#define TX_STS_EXCESS_COL_ 0x00000100 |
Definition at line 92 of file smsc911x.h.
#define TX_STS_LATE_COL_ 0x00000200 |
Definition at line 91 of file smsc911x.h.
#define TX_STS_LOST_CARRIER_ 0x00000800 |
Definition at line 89 of file smsc911x.h.
#define TX_STS_NO_CARRIER_ 0x00000400 |
Definition at line 90 of file smsc911x.h.
#define USE_DEBUG 0 |
Definition at line 26 of file smsc911x.h.
#define USE_PHY_WORK_AROUND |
Definition at line 34 of file smsc911x.h.
#define VLAN1 0x09 |
Definition at line 354 of file smsc911x.h.
#define VLAN2 0x0A |
Definition at line 356 of file smsc911x.h.
#define WORD_SWAP 0x98 |
Definition at line 266 of file smsc911x.h.
#define WUCSR 0x0C |
Definition at line 360 of file smsc911x.h.
#define WUCSR_GUE_ 0x00000200 |
Definition at line 361 of file smsc911x.h.
#define WUCSR_MPEN_ 0x00000002 |
Definition at line 365 of file smsc911x.h.
#define WUCSR_MPR_ 0x00000020 |
Definition at line 363 of file smsc911x.h.
#define WUCSR_WAKE_EN_ 0x00000004 |
Definition at line 364 of file smsc911x.h.
#define WUCSR_WUFR_ 0x00000040 |
Definition at line 362 of file smsc911x.h.
#define WUFF 0x0B |
Definition at line 358 of file smsc911x.h.