Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
smc911x.h File Reference
#include <linux/smc911x.h>

Go to the source code of this file.

Data Structures

struct  smc911x_local
 
struct  chip_id
 

Macros

#define SMC_DYNAMIC_BUS_CONFIG
 
#define SMC911X_TX_FIFO_LOW_THRESHOLD   (1536*2)
 
#define SMC911X_IO_EXTENT   0x100
 
#define SMC911X_EEPROM_LEN   7
 
#define RX_DATA_FIFO   (0x00)
 
#define TX_DATA_FIFO   (0x20)
 
#define TX_CMD_A_INT_ON_COMP_   (0x80000000)
 
#define TX_CMD_A_INT_BUF_END_ALGN_   (0x03000000)
 
#define TX_CMD_A_INT_4_BYTE_ALGN_   (0x00000000)
 
#define TX_CMD_A_INT_16_BYTE_ALGN_   (0x01000000)
 
#define TX_CMD_A_INT_32_BYTE_ALGN_   (0x02000000)
 
#define TX_CMD_A_INT_DATA_OFFSET_   (0x001F0000)
 
#define TX_CMD_A_INT_FIRST_SEG_   (0x00002000)
 
#define TX_CMD_A_INT_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_PKT_LEN_   (0x3FFF0000)
 
#define RX_STS_ES_   (0x00008000)
 
#define RX_STS_BCST_   (0x00002000)
 
#define RX_STS_LEN_ERR_   (0x00001000)
 
#define RX_STS_RUNT_ERR_   (0x00000800)
 
#define RX_STS_MCAST_   (0x00000400)
 
#define RX_STS_TOO_LONG_   (0x00000080)
 
#define RX_STS_COLL_   (0x00000040)
 
#define RX_STS_ETH_TYPE_   (0x00000020)
 
#define RX_STS_WDOG_TMT_   (0x00000010)
 
#define RX_STS_MII_ERR_   (0x00000008)
 
#define RX_STS_DRIBBLING_   (0x00000004)
 
#define RX_STS_CRC_ERR_   (0x00000002)
 
#define RX_STATUS_FIFO_PEEK   (0x44)
 
#define TX_STATUS_FIFO   (0x48)
 
#define TX_STS_TAG_   (0xFFFF0000)
 
#define TX_STS_ES_   (0x00008000)
 
#define TX_STS_LOC_   (0x00000800)
 
#define TX_STS_NO_CARR_   (0x00000400)
 
#define TX_STS_LATE_COLL_   (0x00000200)
 
#define TX_STS_MANY_COLL_   (0x00000100)
 
#define TX_STS_COLL_CNT_   (0x00000078)
 
#define TX_STS_MANY_DEFER_   (0x00000004)
 
#define TX_STS_UNDERRUN_   (0x00000002)
 
#define TX_STS_DEFERRED_   (0x00000001)
 
#define TX_STATUS_FIFO_PEEK   (0x4C)
 
#define ID_REV   (0x50)
 
#define ID_REV_CHIP_ID_   (0xFFFF0000) /* RO */
 
#define ID_REV_REV_ID_   (0x0000FFFF) /* RO */
 
#define INT_CFG   (0x54)
 
#define INT_CFG_INT_DEAS_   (0xFF000000) /* R/W */
 
#define INT_CFG_INT_DEAS_CLR_   (0x00004000)
 
#define INT_CFG_INT_DEAS_STS_   (0x00002000)
 
#define INT_CFG_IRQ_INT_   (0x00001000) /* RO */
 
#define INT_CFG_IRQ_EN_   (0x00000100) /* R/W */
 
#define INT_CFG_IRQ_POL_   (0x00000010) /* R/W Not Affected by SW Reset */
 
#define INT_CFG_IRQ_TYPE_   (0x00000001) /* R/W Not Affected by SW Reset */
 
#define INT_STS   (0x58)
 
#define INT_STS_SW_INT_   (0x80000000) /* R/WC */
 
#define INT_STS_TXSTOP_INT_   (0x02000000) /* R/WC */
 
#define INT_STS_RXSTOP_INT_   (0x01000000) /* R/WC */
 
#define INT_STS_RXDFH_INT_   (0x00800000) /* R/WC */
 
#define INT_STS_RXDF_INT_   (0x00400000) /* R/WC */
 
#define INT_STS_TX_IOC_   (0x00200000) /* R/WC */
 
#define INT_STS_RXD_INT_   (0x00100000) /* R/WC */
 
#define INT_STS_GPT_INT_   (0x00080000) /* R/WC */
 
#define INT_STS_PHY_INT_   (0x00040000) /* RO */
 
#define INT_STS_PME_INT_   (0x00020000) /* R/WC */
 
#define INT_STS_TXSO_   (0x00010000) /* R/WC */
 
#define INT_STS_RWT_   (0x00008000) /* R/WC */
 
#define INT_STS_RXE_   (0x00004000) /* R/WC */
 
#define INT_STS_TXE_   (0x00002000) /* R/WC */
 
#define INT_STS_TDFU_   (0x00000800) /* R/WC */
 
#define INT_STS_TDFO_   (0x00000400) /* R/WC */
 
#define INT_STS_TDFA_   (0x00000200) /* R/WC */
 
#define INT_STS_TSFF_   (0x00000100) /* R/WC */
 
#define INT_STS_TSFL_   (0x00000080) /* R/WC */
 
#define INT_STS_RDFO_   (0x00000040) /* R/WC */
 
#define INT_STS_RDFL_   (0x00000020) /* R/WC */
 
#define INT_STS_RSFF_   (0x00000010) /* R/WC */
 
#define INT_STS_RSFL_   (0x00000008) /* R/WC */
 
#define INT_STS_GPIO2_INT_   (0x00000004) /* R/WC */
 
#define INT_STS_GPIO1_INT_   (0x00000002) /* R/WC */
 
#define INT_STS_GPIO0_INT_   (0x00000001) /* R/WC */
 
#define INT_EN   (0x5C)
 
#define INT_EN_SW_INT_EN_   (0x80000000) /* R/W */
 
#define INT_EN_TXSTOP_INT_EN_   (0x02000000) /* R/W */
 
#define INT_EN_RXSTOP_INT_EN_   (0x01000000) /* R/W */
 
#define INT_EN_RXDFH_INT_EN_   (0x00800000) /* R/W */
 
#define INT_EN_TIOC_INT_EN_   (0x00200000) /* R/W */
 
#define INT_EN_RXD_INT_EN_   (0x00100000) /* R/W */
 
#define INT_EN_GPT_INT_EN_   (0x00080000) /* R/W */
 
#define INT_EN_PHY_INT_EN_   (0x00040000) /* R/W */
 
#define INT_EN_PME_INT_EN_   (0x00020000) /* R/W */
 
#define INT_EN_TXSO_EN_   (0x00010000) /* R/W */
 
#define INT_EN_RWT_EN_   (0x00008000) /* R/W */
 
#define INT_EN_RXE_EN_   (0x00004000) /* R/W */
 
#define INT_EN_TXE_EN_   (0x00002000) /* R/W */
 
#define INT_EN_TDFU_EN_   (0x00000800) /* R/W */
 
#define INT_EN_TDFO_EN_   (0x00000400) /* R/W */
 
#define INT_EN_TDFA_EN_   (0x00000200) /* R/W */
 
#define INT_EN_TSFF_EN_   (0x00000100) /* R/W */
 
#define INT_EN_TSFL_EN_   (0x00000080) /* R/W */
 
#define INT_EN_RDFO_EN_   (0x00000040) /* R/W */
 
#define INT_EN_RDFL_EN_   (0x00000020) /* R/W */
 
#define INT_EN_RSFF_EN_   (0x00000010) /* R/W */
 
#define INT_EN_RSFL_EN_   (0x00000008) /* R/W */
 
#define INT_EN_GPIO2_INT_   (0x00000004) /* R/W */
 
#define INT_EN_GPIO1_INT_   (0x00000002) /* R/W */
 
#define INT_EN_GPIO0_INT_   (0x00000001) /* R/W */
 
#define BYTE_TEST   (0x64)
 
#define FIFO_INT   (0x68)
 
#define FIFO_INT_TX_AVAIL_LEVEL_   (0xFF000000) /* R/W */
 
#define FIFO_INT_TX_STS_LEVEL_   (0x00FF0000) /* R/W */
 
#define FIFO_INT_RX_AVAIL_LEVEL_   (0x0000FF00) /* R/W */
 
#define FIFO_INT_RX_STS_LEVEL_   (0x000000FF) /* R/W */
 
#define RX_CFG   (0x6C)
 
#define RX_CFG_RX_END_ALGN_   (0xC0000000) /* R/W */
 
#define RX_CFG_RX_END_ALGN4_   (0x00000000) /* R/W */
 
#define RX_CFG_RX_END_ALGN16_   (0x40000000) /* R/W */
 
#define RX_CFG_RX_END_ALGN32_   (0x80000000) /* R/W */
 
#define RX_CFG_RX_DMA_CNT_   (0x0FFF0000) /* R/W */
 
#define RX_CFG_RX_DUMP_   (0x00008000) /* R/W */
 
#define RX_CFG_RXDOFF_   (0x00001F00) /* R/W */
 
#define TX_CFG   (0x70)
 
#define TX_CFG_TXS_DUMP_   (0x00008000) /* Self Clearing */
 
#define TX_CFG_TXD_DUMP_   (0x00004000) /* Self Clearing */
 
#define TX_CFG_TXSAO_   (0x00000004) /* R/W */
 
#define TX_CFG_TX_ON_   (0x00000002) /* R/W */
 
#define TX_CFG_STOP_TX_   (0x00000001) /* Self Clearing */
 
#define HW_CFG   (0x74)
 
#define HW_CFG_TTM_   (0x00200000) /* R/W */
 
#define HW_CFG_SF_   (0x00100000) /* R/W */
 
#define HW_CFG_TX_FIF_SZ_   (0x000F0000) /* R/W */
 
#define HW_CFG_TR_   (0x00003000) /* R/W */
 
#define HW_CFG_PHY_CLK_SEL_   (0x00000060) /* R/W */
 
#define HW_CFG_PHY_CLK_SEL_INT_PHY_   (0x00000000) /* R/W */
 
#define HW_CFG_PHY_CLK_SEL_EXT_PHY_   (0x00000020) /* R/W */
 
#define HW_CFG_PHY_CLK_SEL_CLK_DIS_   (0x00000040) /* R/W */
 
#define HW_CFG_SMI_SEL_   (0x00000010) /* R/W */
 
#define HW_CFG_EXT_PHY_DET_   (0x00000008) /* RO */
 
#define HW_CFG_EXT_PHY_EN_   (0x00000004) /* R/W */
 
#define HW_CFG_32_16_BIT_MODE_   (0x00000004) /* RO */
 
#define HW_CFG_SRST_TO_   (0x00000002) /* RO */
 
#define HW_CFG_SRST_   (0x00000001) /* Self Clearing */
 
#define RX_DP_CTRL   (0x78)
 
#define RX_DP_CTRL_RX_FFWD_   (0x80000000) /* R/W */
 
#define RX_DP_CTRL_FFWD_BUSY_   (0x80000000) /* RO */
 
#define RX_FIFO_INF   (0x7C)
 
#define RX_FIFO_INF_RXSUSED_   (0x00FF0000) /* RO */
 
#define RX_FIFO_INF_RXDUSED_   (0x0000FFFF) /* RO */
 
#define TX_FIFO_INF   (0x80)
 
#define TX_FIFO_INF_TSUSED_   (0x00FF0000) /* RO */
 
#define TX_FIFO_INF_TDFREE_   (0x0000FFFF) /* RO */
 
#define PMT_CTRL   (0x84)
 
#define PMT_CTRL_PM_MODE_   (0x00003000) /* Self Clearing */
 
#define PMT_CTRL_PHY_RST_   (0x00000400) /* Self Clearing */
 
#define PMT_CTRL_WOL_EN_   (0x00000200) /* R/W */
 
#define PMT_CTRL_ED_EN_   (0x00000100) /* R/W */
 
#define PMT_CTRL_PME_TYPE_   (0x00000040) /* R/W Not Affected by SW Reset */
 
#define PMT_CTRL_WUPS_   (0x00000030) /* R/WC */
 
#define PMT_CTRL_WUPS_NOWAKE_   (0x00000000) /* R/WC */
 
#define PMT_CTRL_WUPS_ED_   (0x00000010) /* R/WC */
 
#define PMT_CTRL_WUPS_WOL_   (0x00000020) /* R/WC */
 
#define PMT_CTRL_WUPS_MULTI_   (0x00000030) /* R/WC */
 
#define PMT_CTRL_PME_IND_   (0x00000008) /* R/W */
 
#define PMT_CTRL_PME_POL_   (0x00000004) /* R/W */
 
#define PMT_CTRL_PME_EN_   (0x00000002) /* R/W Not Affected by SW Reset */
 
#define PMT_CTRL_READY_   (0x00000001) /* RO */
 
#define GPIO_CFG   (0x88)
 
#define GPIO_CFG_LED3_EN_   (0x40000000) /* R/W */
 
#define GPIO_CFG_LED2_EN_   (0x20000000) /* R/W */
 
#define GPIO_CFG_LED1_EN_   (0x10000000) /* R/W */
 
#define GPIO_CFG_GPIO2_INT_POL_   (0x04000000) /* R/W */
 
#define GPIO_CFG_GPIO1_INT_POL_   (0x02000000) /* R/W */
 
#define GPIO_CFG_GPIO0_INT_POL_   (0x01000000) /* R/W */
 
#define GPIO_CFG_EEPR_EN_   (0x00700000) /* R/W */
 
#define GPIO_CFG_GPIOBUF2_   (0x00040000) /* R/W */
 
#define GPIO_CFG_GPIOBUF1_   (0x00020000) /* R/W */
 
#define GPIO_CFG_GPIOBUF0_   (0x00010000) /* R/W */
 
#define GPIO_CFG_GPIODIR2_   (0x00000400) /* R/W */
 
#define GPIO_CFG_GPIODIR1_   (0x00000200) /* R/W */
 
#define GPIO_CFG_GPIODIR0_   (0x00000100) /* R/W */
 
#define GPIO_CFG_GPIOD4_   (0x00000010) /* R/W */
 
#define GPIO_CFG_GPIOD3_   (0x00000008) /* R/W */
 
#define GPIO_CFG_GPIOD2_   (0x00000004) /* R/W */
 
#define GPIO_CFG_GPIOD1_   (0x00000002) /* R/W */
 
#define GPIO_CFG_GPIOD0_   (0x00000001) /* R/W */
 
#define GPT_CFG   (0x8C)
 
#define GPT_CFG_TIMER_EN_   (0x20000000) /* R/W */
 
#define GPT_CFG_GPT_LOAD_   (0x0000FFFF) /* R/W */
 
#define GPT_CNT   (0x90)
 
#define GPT_CNT_GPT_CNT_   (0x0000FFFF) /* RO */
 
#define ENDIAN   (0x98)
 
#define FREE_RUN   (0x9C)
 
#define RX_DROP   (0xA0)
 
#define MAC_CSR_CMD   (0xA4)
 
#define MAC_CSR_CMD_CSR_BUSY_   (0x80000000) /* Self Clearing */
 
#define MAC_CSR_CMD_R_NOT_W_   (0x40000000) /* R/W */
 
#define MAC_CSR_CMD_CSR_ADDR_   (0x000000FF) /* R/W */
 
#define MAC_CSR_DATA   (0xA8)
 
#define AFC_CFG   (0xAC)
 
#define AFC_CFG_AFC_HI_   (0x00FF0000) /* R/W */
 
#define AFC_CFG_AFC_LO_   (0x0000FF00) /* R/W */
 
#define AFC_CFG_BACK_DUR_   (0x000000F0) /* R/W */
 
#define AFC_CFG_FCMULT_   (0x00000008) /* R/W */
 
#define AFC_CFG_FCBRD_   (0x00000004) /* R/W */
 
#define AFC_CFG_FCADD_   (0x00000002) /* R/W */
 
#define AFC_CFG_FCANY_   (0x00000001) /* R/W */
 
#define E2P_CMD   (0xB0)
 
#define E2P_CMD_EPC_BUSY_   (0x80000000) /* Self Clearing */
 
#define E2P_CMD_EPC_CMD_   (0x70000000) /* R/W */
 
#define E2P_CMD_EPC_CMD_READ_   (0x00000000) /* R/W */
 
#define E2P_CMD_EPC_CMD_EWDS_   (0x10000000) /* R/W */
 
#define E2P_CMD_EPC_CMD_EWEN_   (0x20000000) /* R/W */
 
#define E2P_CMD_EPC_CMD_WRITE_   (0x30000000) /* R/W */
 
#define E2P_CMD_EPC_CMD_WRAL_   (0x40000000) /* R/W */
 
#define E2P_CMD_EPC_CMD_ERASE_   (0x50000000) /* R/W */
 
#define E2P_CMD_EPC_CMD_ERAL_   (0x60000000) /* R/W */
 
#define E2P_CMD_EPC_CMD_RELOAD_   (0x70000000) /* R/W */
 
#define E2P_CMD_EPC_TIMEOUT_   (0x00000200) /* RO */
 
#define E2P_CMD_MAC_ADDR_LOADED_   (0x00000100) /* RO */
 
#define E2P_CMD_EPC_ADDR_   (0x000000FF) /* R/W */
 
#define E2P_DATA   (0xB4)
 
#define E2P_DATA_EEPROM_DATA_   (0x000000FF) /* R/W */
 
#define MAC_CR   (0x01) /* R/W */
 
#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) /* R/W mask 0x0000FFFFUL */
 
#define ADDRL   (0x03) /* R/W mask 0xFFFFFFFFUL */
 
#define HASHH   (0x04) /* R/W */
 
#define HASHL   (0x05) /* R/W */
 
#define MII_ACC   (0x06) /* R/W */
 
#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) /* R/W mask 0x0000FFFFUL */
 
#define FLOW   (0x08) /* R/W */
 
#define FLOW_FCPT_   (0xFFFF0000)
 
#define FLOW_FCPASS_   (0x00000004)
 
#define FLOW_FCEN_   (0x00000002)
 
#define FLOW_FCBSY_   (0x00000001)
 
#define VLAN1   (0x09) /* R/W mask 0x0000FFFFUL */
 
#define VLAN1_VTI1_   (0x0000ffff)
 
#define VLAN2   (0x0A) /* R/W mask 0x0000FFFFUL */
 
#define VLAN2_VTI2_   (0x0000ffff)
 
#define WUFF   (0x0B) /* WO */
 
#define WUCSR   (0x0C) /* R/W */
 
#define WUCSR_GUE_   (0x00000200)
 
#define WUCSR_WUFR_   (0x00000040)
 
#define WUCSR_MPR_   (0x00000020)
 
#define WUCSR_WAKE_EN_   (0x00000004)
 
#define WUCSR_MPEN_   (0x00000002)
 
#define PHY_MODE_CTRL_STS   ((u32)17) /* Mode Control/Status Register */
 
#define MODE_CTRL_STS_EDPWRDOWN_   ((u16)0x2000)
 
#define MODE_CTRL_STS_ENERGYON_   ((u16)0x0002)
 
#define PHY_INT_SRC   ((u32)29)
 
#define PHY_INT_SRC_ENERGY_ON_   ((u16)0x0080)
 
#define PHY_INT_SRC_ANEG_COMP_   ((u16)0x0040)
 
#define PHY_INT_SRC_REMOTE_FAULT_   ((u16)0x0020)
 
#define PHY_INT_SRC_LINK_DOWN_   ((u16)0x0010)
 
#define PHY_INT_SRC_ANEG_LP_ACK_   ((u16)0x0008)
 
#define PHY_INT_SRC_PAR_DET_FAULT_   ((u16)0x0004)
 
#define PHY_INT_SRC_ANEG_PGRX_   ((u16)0x0002)
 
#define PHY_INT_MASK   ((u32)30)
 
#define PHY_INT_MASK_ENERGY_ON_   ((u16)0x0080)
 
#define PHY_INT_MASK_ANEG_COMP_   ((u16)0x0040)
 
#define PHY_INT_MASK_REMOTE_FAULT_   ((u16)0x0020)
 
#define PHY_INT_MASK_LINK_DOWN_   ((u16)0x0010)
 
#define PHY_INT_MASK_ANEG_LP_ACK_   ((u16)0x0008)
 
#define PHY_INT_MASK_PAR_DET_FAULT_   ((u16)0x0004)
 
#define PHY_INT_MASK_ANEG_PGRX_   ((u16)0x0002)
 
#define PHY_SPECIAL   ((u32)31)
 
#define PHY_SPECIAL_ANEG_DONE_   ((u16)0x1000)
 
#define PHY_SPECIAL_RES_   ((u16)0x0040)
 
#define PHY_SPECIAL_RES_MASK_   ((u16)0x0FE1)
 
#define PHY_SPECIAL_SPD_   ((u16)0x001C)
 
#define PHY_SPECIAL_SPD_10HALF_   ((u16)0x0004)
 
#define PHY_SPECIAL_SPD_10FULL_   ((u16)0x0014)
 
#define PHY_SPECIAL_SPD_100HALF_   ((u16)0x0008)
 
#define PHY_SPECIAL_SPD_100FULL_   ((u16)0x0018)
 
#define LAN911X_INTERNAL_PHY_ID   (0x0007C000)
 
#define CHIP_9115   0x0115
 
#define CHIP_9116   0x0116
 
#define CHIP_9117   0x0117
 
#define CHIP_9118   0x0118
 
#define CHIP_9211   0x9211
 
#define CHIP_9215   0x115A
 
#define CHIP_9217   0x117A
 
#define CHIP_9218   0x118A
 
#define IS_REV_A(x)   ((x & 0xFFFF)==0)
 
#define SMC_PUSH_DATA(lp, p, l)   SMC_outsl( lp, TX_DATA_FIFO, p, (l) >> 2 )
 
#define SMC_PULL_DATA(lp, p, l)   SMC_insl ( lp, RX_DATA_FIFO, p, (l) >> 2 )
 
#define SMC_SET_TX_FIFO(lp, x)   SMC_outl( x, lp, TX_DATA_FIFO )
 
#define SMC_GET_RX_FIFO(lp)   SMC_inl( lp, RX_DATA_FIFO )
 
#define SMC_GET_TX_STS_FIFO(lp)   SMC_inl( lp, TX_STATUS_FIFO )
 
#define SMC_GET_RX_STS_FIFO(lp)   SMC_inl( lp, RX_STATUS_FIFO )
 
#define SMC_GET_RX_STS_FIFO_PEEK(lp)   SMC_inl( lp, RX_STATUS_FIFO_PEEK )
 
#define SMC_GET_PN(lp)   (SMC_inl( lp, ID_REV ) >> 16)
 
#define SMC_GET_REV(lp)   (SMC_inl( lp, ID_REV ) & 0xFFFF)
 
#define SMC_GET_IRQ_CFG(lp)   SMC_inl( lp, INT_CFG )
 
#define SMC_SET_IRQ_CFG(lp, x)   SMC_outl( x, lp, INT_CFG )
 
#define SMC_GET_INT(lp)   SMC_inl( lp, INT_STS )
 
#define SMC_ACK_INT(lp, x)   SMC_outl( x, lp, INT_STS )
 
#define SMC_GET_INT_EN(lp)   SMC_inl( lp, INT_EN )
 
#define SMC_SET_INT_EN(lp, x)   SMC_outl( x, lp, INT_EN )
 
#define SMC_GET_BYTE_TEST(lp)   SMC_inl( lp, BYTE_TEST )
 
#define SMC_SET_BYTE_TEST(lp, x)   SMC_outl( x, lp, BYTE_TEST )
 
#define SMC_GET_FIFO_INT(lp)   SMC_inl( lp, FIFO_INT )
 
#define SMC_SET_FIFO_INT(lp, x)   SMC_outl( x, lp, FIFO_INT )
 
#define SMC_SET_FIFO_TDA(lp, x)
 
#define SMC_SET_FIFO_TSL(lp, x)
 
#define SMC_SET_FIFO_RSA(lp, x)
 
#define SMC_SET_FIFO_RSL(lp, x)
 
#define SMC_GET_RX_CFG(lp)   SMC_inl( lp, RX_CFG )
 
#define SMC_SET_RX_CFG(lp, x)   SMC_outl( x, lp, RX_CFG )
 
#define SMC_GET_TX_CFG(lp)   SMC_inl( lp, TX_CFG )
 
#define SMC_SET_TX_CFG(lp, x)   SMC_outl( x, lp, TX_CFG )
 
#define SMC_GET_HW_CFG(lp)   SMC_inl( lp, HW_CFG )
 
#define SMC_SET_HW_CFG(lp, x)   SMC_outl( x, lp, HW_CFG )
 
#define SMC_GET_RX_DP_CTRL(lp)   SMC_inl( lp, RX_DP_CTRL )
 
#define SMC_SET_RX_DP_CTRL(lp, x)   SMC_outl( x, lp, RX_DP_CTRL )
 
#define SMC_GET_PMT_CTRL(lp)   SMC_inl( lp, PMT_CTRL )
 
#define SMC_SET_PMT_CTRL(lp, x)   SMC_outl( x, lp, PMT_CTRL )
 
#define SMC_GET_GPIO_CFG(lp)   SMC_inl( lp, GPIO_CFG )
 
#define SMC_SET_GPIO_CFG(lp, x)   SMC_outl( x, lp, GPIO_CFG )
 
#define SMC_GET_RX_FIFO_INF(lp)   SMC_inl( lp, RX_FIFO_INF )
 
#define SMC_SET_RX_FIFO_INF(lp, x)   SMC_outl( x, lp, RX_FIFO_INF )
 
#define SMC_GET_TX_FIFO_INF(lp)   SMC_inl( lp, TX_FIFO_INF )
 
#define SMC_SET_TX_FIFO_INF(lp, x)   SMC_outl( x, lp, TX_FIFO_INF )
 
#define SMC_GET_GPT_CFG(lp)   SMC_inl( lp, GPT_CFG )
 
#define SMC_SET_GPT_CFG(lp, x)   SMC_outl( x, lp, GPT_CFG )
 
#define SMC_GET_RX_DROP(lp)   SMC_inl( lp, RX_DROP )
 
#define SMC_SET_RX_DROP(lp, x)   SMC_outl( x, lp, RX_DROP )
 
#define SMC_GET_MAC_CMD(lp)   SMC_inl( lp, MAC_CSR_CMD )
 
#define SMC_SET_MAC_CMD(lp, x)   SMC_outl( x, lp, MAC_CSR_CMD )
 
#define SMC_GET_MAC_DATA(lp)   SMC_inl( lp, MAC_CSR_DATA )
 
#define SMC_SET_MAC_DATA(lp, x)   SMC_outl( x, lp, MAC_CSR_DATA )
 
#define SMC_GET_AFC_CFG(lp)   SMC_inl( lp, AFC_CFG )
 
#define SMC_SET_AFC_CFG(lp, x)   SMC_outl( x, lp, AFC_CFG )
 
#define SMC_GET_E2P_CMD(lp)   SMC_inl( lp, E2P_CMD )
 
#define SMC_SET_E2P_CMD(lp, x)   SMC_outl( x, lp, E2P_CMD )
 
#define SMC_GET_E2P_DATA(lp)   SMC_inl( lp, E2P_DATA )
 
#define SMC_SET_E2P_DATA(lp, x)   SMC_outl( x, lp, E2P_DATA )
 
#define SMC_GET_MAC_CSR(lp, a, v)
 
#define SMC_SET_MAC_CSR(lp, a, v)
 
#define SMC_GET_MAC_CR(lp, x)   SMC_GET_MAC_CSR( (lp), MAC_CR, x )
 
#define SMC_SET_MAC_CR(lp, x)   SMC_SET_MAC_CSR( (lp), MAC_CR, x )
 
#define SMC_GET_ADDRH(lp, x)   SMC_GET_MAC_CSR( (lp), ADDRH, x )
 
#define SMC_SET_ADDRH(lp, x)   SMC_SET_MAC_CSR( (lp), ADDRH, x )
 
#define SMC_GET_ADDRL(lp, x)   SMC_GET_MAC_CSR( (lp), ADDRL, x )
 
#define SMC_SET_ADDRL(lp, x)   SMC_SET_MAC_CSR( (lp), ADDRL, x )
 
#define SMC_GET_HASHH(lp, x)   SMC_GET_MAC_CSR( (lp), HASHH, x )
 
#define SMC_SET_HASHH(lp, x)   SMC_SET_MAC_CSR( (lp), HASHH, x )
 
#define SMC_GET_HASHL(lp, x)   SMC_GET_MAC_CSR( (lp), HASHL, x )
 
#define SMC_SET_HASHL(lp, x)   SMC_SET_MAC_CSR( (lp), HASHL, x )
 
#define SMC_GET_MII_ACC(lp, x)   SMC_GET_MAC_CSR( (lp), MII_ACC, x )
 
#define SMC_SET_MII_ACC(lp, x)   SMC_SET_MAC_CSR( (lp), MII_ACC, x )
 
#define SMC_GET_MII_DATA(lp, x)   SMC_GET_MAC_CSR( (lp), MII_DATA, x )
 
#define SMC_SET_MII_DATA(lp, x)   SMC_SET_MAC_CSR( (lp), MII_DATA, x )
 
#define SMC_GET_FLOW(lp, x)   SMC_GET_MAC_CSR( (lp), FLOW, x )
 
#define SMC_SET_FLOW(lp, x)   SMC_SET_MAC_CSR( (lp), FLOW, x )
 
#define SMC_GET_VLAN1(lp, x)   SMC_GET_MAC_CSR( (lp), VLAN1, x )
 
#define SMC_SET_VLAN1(lp, x)   SMC_SET_MAC_CSR( (lp), VLAN1, x )
 
#define SMC_GET_VLAN2(lp, x)   SMC_GET_MAC_CSR( (lp), VLAN2, x )
 
#define SMC_SET_VLAN2(lp, x)   SMC_SET_MAC_CSR( (lp), VLAN2, x )
 
#define SMC_SET_WUFF(lp, x)   SMC_SET_MAC_CSR( (lp), WUFF, x )
 
#define SMC_GET_WUCSR(lp, x)   SMC_GET_MAC_CSR( (lp), WUCSR, x )
 
#define SMC_SET_WUCSR(lp, x)   SMC_SET_MAC_CSR( (lp), WUCSR, x )
 
#define SMC_GET_MII(lp, a, phy, v)
 
#define SMC_SET_MII(lp, a, phy, v)
 
#define SMC_GET_PHY_BMCR(lp, phy, x)   SMC_GET_MII( (lp), MII_BMCR, phy, x )
 
#define SMC_SET_PHY_BMCR(lp, phy, x)   SMC_SET_MII( (lp), MII_BMCR, phy, x )
 
#define SMC_GET_PHY_BMSR(lp, phy, x)   SMC_GET_MII( (lp), MII_BMSR, phy, x )
 
#define SMC_GET_PHY_ID1(lp, phy, x)   SMC_GET_MII( (lp), MII_PHYSID1, phy, x )
 
#define SMC_GET_PHY_ID2(lp, phy, x)   SMC_GET_MII( (lp), MII_PHYSID2, phy, x )
 
#define SMC_GET_PHY_MII_ADV(lp, phy, x)   SMC_GET_MII( (lp), MII_ADVERTISE, phy, x )
 
#define SMC_SET_PHY_MII_ADV(lp, phy, x)   SMC_SET_MII( (lp), MII_ADVERTISE, phy, x )
 
#define SMC_GET_PHY_MII_LPA(lp, phy, x)   SMC_GET_MII( (lp), MII_LPA, phy, x )
 
#define SMC_SET_PHY_MII_LPA(lp, phy, x)   SMC_SET_MII( (lp), MII_LPA, phy, x )
 
#define SMC_GET_PHY_CTRL_STS(lp, phy, x)   SMC_GET_MII( (lp), PHY_MODE_CTRL_STS, phy, x )
 
#define SMC_SET_PHY_CTRL_STS(lp, phy, x)   SMC_SET_MII( (lp), PHY_MODE_CTRL_STS, phy, x )
 
#define SMC_GET_PHY_INT_SRC(lp, phy, x)   SMC_GET_MII( (lp), PHY_INT_SRC, phy, x )
 
#define SMC_SET_PHY_INT_SRC(lp, phy, x)   SMC_SET_MII( (lp), PHY_INT_SRC, phy, x )
 
#define SMC_GET_PHY_INT_MASK(lp, phy, x)   SMC_GET_MII( (lp), PHY_INT_MASK, phy, x )
 
#define SMC_SET_PHY_INT_MASK(lp, phy, x)   SMC_SET_MII( (lp), PHY_INT_MASK, phy, x )
 
#define SMC_GET_PHY_SPECIAL(lp, phy, x)   SMC_GET_MII( (lp), PHY_SPECIAL, phy, x )
 
#define SMC_GET_MAC_ADDR(lp, addr)
 
#define SMC_SET_MAC_ADDR(lp, addr)
 
#define SMC_WRITE_EEPROM_CMD(lp, cmd, addr)
 

Macro Definition Documentation

#define ADDRH   (0x02) /* R/W mask 0x0000FFFFUL */

Definition at line 596 of file smc911x.h.

#define ADDRL   (0x03) /* R/W mask 0xFFFFFFFFUL */

Definition at line 597 of file smc911x.h.

#define AFC_CFG   (0xAC)

Definition at line 535 of file smc911x.h.

#define AFC_CFG_AFC_HI_   (0x00FF0000) /* R/W */

Definition at line 536 of file smc911x.h.

#define AFC_CFG_AFC_LO_   (0x0000FF00) /* R/W */

Definition at line 537 of file smc911x.h.

#define AFC_CFG_BACK_DUR_   (0x000000F0) /* R/W */

Definition at line 538 of file smc911x.h.

#define AFC_CFG_FCADD_   (0x00000002) /* R/W */

Definition at line 541 of file smc911x.h.

#define AFC_CFG_FCANY_   (0x00000001) /* R/W */

Definition at line 542 of file smc911x.h.

#define AFC_CFG_FCBRD_   (0x00000004) /* R/W */

Definition at line 540 of file smc911x.h.

#define AFC_CFG_FCMULT_   (0x00000008) /* R/W */

Definition at line 539 of file smc911x.h.

#define BYTE_TEST   (0x64)

Definition at line 429 of file smc911x.h.

#define CHIP_9115   0x0115

Definition at line 682 of file smc911x.h.

#define CHIP_9116   0x0116

Definition at line 683 of file smc911x.h.

#define CHIP_9117   0x0117

Definition at line 684 of file smc911x.h.

#define CHIP_9118   0x0118

Definition at line 685 of file smc911x.h.

#define CHIP_9211   0x9211

Definition at line 686 of file smc911x.h.

#define CHIP_9215   0x115A

Definition at line 687 of file smc911x.h.

#define CHIP_9217   0x117A

Definition at line 688 of file smc911x.h.

#define CHIP_9218   0x118A

Definition at line 689 of file smc911x.h.

#define E2P_CMD   (0xB0)

Definition at line 544 of file smc911x.h.

#define E2P_CMD_EPC_ADDR_   (0x000000FF) /* R/W */

Definition at line 557 of file smc911x.h.

#define E2P_CMD_EPC_BUSY_   (0x80000000) /* Self Clearing */

Definition at line 545 of file smc911x.h.

#define E2P_CMD_EPC_CMD_   (0x70000000) /* R/W */

Definition at line 546 of file smc911x.h.

#define E2P_CMD_EPC_CMD_ERAL_   (0x60000000) /* R/W */

Definition at line 553 of file smc911x.h.

#define E2P_CMD_EPC_CMD_ERASE_   (0x50000000) /* R/W */

Definition at line 552 of file smc911x.h.

#define E2P_CMD_EPC_CMD_EWDS_   (0x10000000) /* R/W */

Definition at line 548 of file smc911x.h.

#define E2P_CMD_EPC_CMD_EWEN_   (0x20000000) /* R/W */

Definition at line 549 of file smc911x.h.

#define E2P_CMD_EPC_CMD_READ_   (0x00000000) /* R/W */

Definition at line 547 of file smc911x.h.

#define E2P_CMD_EPC_CMD_RELOAD_   (0x70000000) /* R/W */

Definition at line 554 of file smc911x.h.

#define E2P_CMD_EPC_CMD_WRAL_   (0x40000000) /* R/W */

Definition at line 551 of file smc911x.h.

#define E2P_CMD_EPC_CMD_WRITE_   (0x30000000) /* R/W */

Definition at line 550 of file smc911x.h.

#define E2P_CMD_EPC_TIMEOUT_   (0x00000200) /* RO */

Definition at line 555 of file smc911x.h.

#define E2P_CMD_MAC_ADDR_LOADED_   (0x00000100) /* RO */

Definition at line 556 of file smc911x.h.

#define E2P_DATA   (0xB4)

Definition at line 559 of file smc911x.h.

#define E2P_DATA_EEPROM_DATA_   (0x000000FF) /* R/W */

Definition at line 560 of file smc911x.h.

#define ENDIAN   (0x98)

Definition at line 526 of file smc911x.h.

#define FIFO_INT   (0x68)

Definition at line 430 of file smc911x.h.

#define FIFO_INT_RX_AVAIL_LEVEL_   (0x0000FF00) /* R/W */

Definition at line 433 of file smc911x.h.

#define FIFO_INT_RX_STS_LEVEL_   (0x000000FF) /* R/W */

Definition at line 434 of file smc911x.h.

#define FIFO_INT_TX_AVAIL_LEVEL_   (0xFF000000) /* R/W */

Definition at line 431 of file smc911x.h.

#define FIFO_INT_TX_STS_LEVEL_   (0x00FF0000) /* R/W */

Definition at line 432 of file smc911x.h.

#define FLOW   (0x08) /* R/W */

Definition at line 609 of file smc911x.h.

#define FLOW_FCBSY_   (0x00000001)

Definition at line 613 of file smc911x.h.

#define FLOW_FCEN_   (0x00000002)

Definition at line 612 of file smc911x.h.

#define FLOW_FCPASS_   (0x00000004)

Definition at line 611 of file smc911x.h.

#define FLOW_FCPT_   (0xFFFF0000)

Definition at line 610 of file smc911x.h.

#define FREE_RUN   (0x9C)

Definition at line 527 of file smc911x.h.

#define GPIO_CFG   (0x88)

Definition at line 499 of file smc911x.h.

#define GPIO_CFG_EEPR_EN_   (0x00700000) /* R/W */

Definition at line 506 of file smc911x.h.

#define GPIO_CFG_GPIO0_INT_POL_   (0x01000000) /* R/W */

Definition at line 505 of file smc911x.h.

#define GPIO_CFG_GPIO1_INT_POL_   (0x02000000) /* R/W */

Definition at line 504 of file smc911x.h.

#define GPIO_CFG_GPIO2_INT_POL_   (0x04000000) /* R/W */

Definition at line 503 of file smc911x.h.

#define GPIO_CFG_GPIOBUF0_   (0x00010000) /* R/W */

Definition at line 509 of file smc911x.h.

#define GPIO_CFG_GPIOBUF1_   (0x00020000) /* R/W */

Definition at line 508 of file smc911x.h.

#define GPIO_CFG_GPIOBUF2_   (0x00040000) /* R/W */

Definition at line 507 of file smc911x.h.

#define GPIO_CFG_GPIOD0_   (0x00000001) /* R/W */

Definition at line 517 of file smc911x.h.

#define GPIO_CFG_GPIOD1_   (0x00000002) /* R/W */

Definition at line 516 of file smc911x.h.

#define GPIO_CFG_GPIOD2_   (0x00000004) /* R/W */

Definition at line 515 of file smc911x.h.

#define GPIO_CFG_GPIOD3_   (0x00000008) /* R/W */

Definition at line 514 of file smc911x.h.

#define GPIO_CFG_GPIOD4_   (0x00000010) /* R/W */

Definition at line 513 of file smc911x.h.

#define GPIO_CFG_GPIODIR0_   (0x00000100) /* R/W */

Definition at line 512 of file smc911x.h.

#define GPIO_CFG_GPIODIR1_   (0x00000200) /* R/W */

Definition at line 511 of file smc911x.h.

#define GPIO_CFG_GPIODIR2_   (0x00000400) /* R/W */

Definition at line 510 of file smc911x.h.

#define GPIO_CFG_LED1_EN_   (0x10000000) /* R/W */

Definition at line 502 of file smc911x.h.

#define GPIO_CFG_LED2_EN_   (0x20000000) /* R/W */

Definition at line 501 of file smc911x.h.

#define GPIO_CFG_LED3_EN_   (0x40000000) /* R/W */

Definition at line 500 of file smc911x.h.

#define GPT_CFG   (0x8C)

Definition at line 519 of file smc911x.h.

#define GPT_CFG_GPT_LOAD_   (0x0000FFFF) /* R/W */

Definition at line 521 of file smc911x.h.

#define GPT_CFG_TIMER_EN_   (0x20000000) /* R/W */

Definition at line 520 of file smc911x.h.

#define GPT_CNT   (0x90)

Definition at line 523 of file smc911x.h.

#define GPT_CNT_GPT_CNT_   (0x0000FFFF) /* RO */

Definition at line 524 of file smc911x.h.

#define HASHH   (0x04) /* R/W */

Definition at line 598 of file smc911x.h.

#define HASHL   (0x05) /* R/W */

Definition at line 599 of file smc911x.h.

#define HW_CFG   (0x74)

Definition at line 455 of file smc911x.h.

#define HW_CFG_32_16_BIT_MODE_   (0x00000004) /* RO */

Definition at line 467 of file smc911x.h.

#define HW_CFG_EXT_PHY_DET_   (0x00000008) /* RO */

Definition at line 465 of file smc911x.h.

#define HW_CFG_EXT_PHY_EN_   (0x00000004) /* R/W */

Definition at line 466 of file smc911x.h.

#define HW_CFG_PHY_CLK_SEL_   (0x00000060) /* R/W */

Definition at line 460 of file smc911x.h.

#define HW_CFG_PHY_CLK_SEL_CLK_DIS_   (0x00000040) /* R/W */

Definition at line 463 of file smc911x.h.

#define HW_CFG_PHY_CLK_SEL_EXT_PHY_   (0x00000020) /* R/W */

Definition at line 462 of file smc911x.h.

#define HW_CFG_PHY_CLK_SEL_INT_PHY_   (0x00000000) /* R/W */

Definition at line 461 of file smc911x.h.

#define HW_CFG_SF_   (0x00100000) /* R/W */

Definition at line 457 of file smc911x.h.

#define HW_CFG_SMI_SEL_   (0x00000010) /* R/W */

Definition at line 464 of file smc911x.h.

#define HW_CFG_SRST_   (0x00000001) /* Self Clearing */

Definition at line 469 of file smc911x.h.

#define HW_CFG_SRST_TO_   (0x00000002) /* RO */

Definition at line 468 of file smc911x.h.

#define HW_CFG_TR_   (0x00003000) /* R/W */

Definition at line 459 of file smc911x.h.

#define HW_CFG_TTM_   (0x00200000) /* R/W */

Definition at line 456 of file smc911x.h.

#define HW_CFG_TX_FIF_SZ_   (0x000F0000) /* R/W */

Definition at line 458 of file smc911x.h.

#define ID_REV   (0x50)

Definition at line 356 of file smc911x.h.

#define ID_REV_CHIP_ID_   (0xFFFF0000) /* RO */

Definition at line 357 of file smc911x.h.

#define ID_REV_REV_ID_   (0x0000FFFF) /* RO */

Definition at line 358 of file smc911x.h.

#define INT_CFG   (0x54)

Definition at line 360 of file smc911x.h.

#define INT_CFG_INT_DEAS_   (0xFF000000) /* R/W */

Definition at line 361 of file smc911x.h.

#define INT_CFG_INT_DEAS_CLR_   (0x00004000)

Definition at line 362 of file smc911x.h.

#define INT_CFG_INT_DEAS_STS_   (0x00002000)

Definition at line 363 of file smc911x.h.

#define INT_CFG_IRQ_EN_   (0x00000100) /* R/W */

Definition at line 365 of file smc911x.h.

#define INT_CFG_IRQ_INT_   (0x00001000) /* RO */

Definition at line 364 of file smc911x.h.

#define INT_CFG_IRQ_POL_   (0x00000010) /* R/W Not Affected by SW Reset */

Definition at line 366 of file smc911x.h.

#define INT_CFG_IRQ_TYPE_   (0x00000001) /* R/W Not Affected by SW Reset */

Definition at line 367 of file smc911x.h.

#define INT_EN   (0x5C)

Definition at line 399 of file smc911x.h.

#define INT_EN_GPIO0_INT_   (0x00000001) /* R/W */

Definition at line 427 of file smc911x.h.

#define INT_EN_GPIO1_INT_   (0x00000002) /* R/W */

Definition at line 426 of file smc911x.h.

#define INT_EN_GPIO2_INT_   (0x00000004) /* R/W */

Definition at line 425 of file smc911x.h.

#define INT_EN_GPT_INT_EN_   (0x00080000) /* R/W */

Definition at line 407 of file smc911x.h.

#define INT_EN_PHY_INT_EN_   (0x00040000) /* R/W */

Definition at line 408 of file smc911x.h.

#define INT_EN_PME_INT_EN_   (0x00020000) /* R/W */

Definition at line 409 of file smc911x.h.

#define INT_EN_RDFL_EN_   (0x00000020) /* R/W */

Definition at line 422 of file smc911x.h.

#define INT_EN_RDFO_EN_   (0x00000040) /* R/W */

Definition at line 421 of file smc911x.h.

#define INT_EN_RSFF_EN_   (0x00000010) /* R/W */

Definition at line 423 of file smc911x.h.

#define INT_EN_RSFL_EN_   (0x00000008) /* R/W */

Definition at line 424 of file smc911x.h.

#define INT_EN_RWT_EN_   (0x00008000) /* R/W */

Definition at line 411 of file smc911x.h.

#define INT_EN_RXD_INT_EN_   (0x00100000) /* R/W */

Definition at line 406 of file smc911x.h.

#define INT_EN_RXDFH_INT_EN_   (0x00800000) /* R/W */

Definition at line 403 of file smc911x.h.

#define INT_EN_RXE_EN_   (0x00004000) /* R/W */

Definition at line 412 of file smc911x.h.

#define INT_EN_RXSTOP_INT_EN_   (0x01000000) /* R/W */

Definition at line 402 of file smc911x.h.

#define INT_EN_SW_INT_EN_   (0x80000000) /* R/W */

Definition at line 400 of file smc911x.h.

#define INT_EN_TDFA_EN_   (0x00000200) /* R/W */

Definition at line 417 of file smc911x.h.

#define INT_EN_TDFO_EN_   (0x00000400) /* R/W */

Definition at line 416 of file smc911x.h.

#define INT_EN_TDFU_EN_   (0x00000800) /* R/W */

Definition at line 415 of file smc911x.h.

#define INT_EN_TIOC_INT_EN_   (0x00200000) /* R/W */

Definition at line 405 of file smc911x.h.

#define INT_EN_TSFF_EN_   (0x00000100) /* R/W */

Definition at line 418 of file smc911x.h.

#define INT_EN_TSFL_EN_   (0x00000080) /* R/W */

Definition at line 419 of file smc911x.h.

#define INT_EN_TXE_EN_   (0x00002000) /* R/W */

Definition at line 413 of file smc911x.h.

#define INT_EN_TXSO_EN_   (0x00010000) /* R/W */

Definition at line 410 of file smc911x.h.

#define INT_EN_TXSTOP_INT_EN_   (0x02000000) /* R/W */

Definition at line 401 of file smc911x.h.

#define INT_STS   (0x58)

Definition at line 369 of file smc911x.h.

#define INT_STS_GPIO0_INT_   (0x00000001) /* R/WC */

Definition at line 397 of file smc911x.h.

#define INT_STS_GPIO1_INT_   (0x00000002) /* R/WC */

Definition at line 396 of file smc911x.h.

#define INT_STS_GPIO2_INT_   (0x00000004) /* R/WC */

Definition at line 395 of file smc911x.h.

#define INT_STS_GPT_INT_   (0x00080000) /* R/WC */

Definition at line 377 of file smc911x.h.

#define INT_STS_PHY_INT_   (0x00040000) /* RO */

Definition at line 378 of file smc911x.h.

#define INT_STS_PME_INT_   (0x00020000) /* R/WC */

Definition at line 379 of file smc911x.h.

#define INT_STS_RDFL_   (0x00000020) /* R/WC */

Definition at line 392 of file smc911x.h.

#define INT_STS_RDFO_   (0x00000040) /* R/WC */

Definition at line 391 of file smc911x.h.

#define INT_STS_RSFF_   (0x00000010) /* R/WC */

Definition at line 393 of file smc911x.h.

#define INT_STS_RSFL_   (0x00000008) /* R/WC */

Definition at line 394 of file smc911x.h.

#define INT_STS_RWT_   (0x00008000) /* R/WC */

Definition at line 381 of file smc911x.h.

#define INT_STS_RXD_INT_   (0x00100000) /* R/WC */

Definition at line 376 of file smc911x.h.

#define INT_STS_RXDF_INT_   (0x00400000) /* R/WC */

Definition at line 374 of file smc911x.h.

#define INT_STS_RXDFH_INT_   (0x00800000) /* R/WC */

Definition at line 373 of file smc911x.h.

#define INT_STS_RXE_   (0x00004000) /* R/WC */

Definition at line 382 of file smc911x.h.

#define INT_STS_RXSTOP_INT_   (0x01000000) /* R/WC */

Definition at line 372 of file smc911x.h.

#define INT_STS_SW_INT_   (0x80000000) /* R/WC */

Definition at line 370 of file smc911x.h.

#define INT_STS_TDFA_   (0x00000200) /* R/WC */

Definition at line 387 of file smc911x.h.

#define INT_STS_TDFO_   (0x00000400) /* R/WC */

Definition at line 386 of file smc911x.h.

#define INT_STS_TDFU_   (0x00000800) /* R/WC */

Definition at line 385 of file smc911x.h.

#define INT_STS_TSFF_   (0x00000100) /* R/WC */

Definition at line 388 of file smc911x.h.

#define INT_STS_TSFL_   (0x00000080) /* R/WC */

Definition at line 389 of file smc911x.h.

#define INT_STS_TX_IOC_   (0x00200000) /* R/WC */

Definition at line 375 of file smc911x.h.

#define INT_STS_TXE_   (0x00002000) /* R/WC */

Definition at line 383 of file smc911x.h.

#define INT_STS_TXSO_   (0x00010000) /* R/WC */

Definition at line 380 of file smc911x.h.

#define INT_STS_TXSTOP_INT_   (0x02000000) /* R/WC */

Definition at line 371 of file smc911x.h.

#define IS_REV_A (   x)    ((x & 0xFFFF)==0)

Definition at line 708 of file smc911x.h.

#define LAN911X_INTERNAL_PHY_ID   (0x0007C000)

Definition at line 679 of file smc911x.h.

#define MAC_CR   (0x01) /* R/W */

Definition at line 572 of file smc911x.h.

#define MAC_CR_BCAST_   (0x00000800)

Definition at line 588 of file smc911x.h.

#define MAC_CR_BOLMT_MASK_   (0x000000C0)

Definition at line 591 of file smc911x.h.

#define MAC_CR_DFCHK_   (0x00000020)

Definition at line 592 of file smc911x.h.

#define MAC_CR_DISRTY_   (0x00000400)

Definition at line 589 of file smc911x.h.

#define MAC_CR_FDPX_   (0x00100000)

Definition at line 580 of file smc911x.h.

#define MAC_CR_HBDIS_   (0x10000000)

Definition at line 577 of file smc911x.h.

#define MAC_CR_HFILT_   (0x00008000)

Definition at line 585 of file smc911x.h.

#define MAC_CR_HPFILT_   (0x00002000)

Definition at line 586 of file smc911x.h.

#define MAC_CR_INVFILT_   (0x00020000)

Definition at line 583 of file smc911x.h.

#define MAC_CR_LCOLL_   (0x00001000)

Definition at line 587 of file smc911x.h.

#define MAC_CR_LOOPBK_   (0x00200000)

Definition at line 579 of file smc911x.h.

#define MAC_CR_MCPAS_   (0x00080000)

Definition at line 581 of file smc911x.h.

#define MAC_CR_PADSTR_   (0x00000100)

Definition at line 590 of file smc911x.h.

#define MAC_CR_PASSBAD_   (0x00010000)

Definition at line 584 of file smc911x.h.

#define MAC_CR_PRMS_   (0x00040000)

Definition at line 582 of file smc911x.h.

#define MAC_CR_RCVOWN_   (0x00800000)

Definition at line 578 of file smc911x.h.

#define MAC_CR_RXALL_   (0x80000000)

Definition at line 575 of file smc911x.h.

#define MAC_CR_RXEN_   (0x00000004)

Definition at line 594 of file smc911x.h.

#define MAC_CR_TXEN_   (0x00000008)

Definition at line 593 of file smc911x.h.

#define MAC_CSR_CMD   (0xA4)

Definition at line 529 of file smc911x.h.

#define MAC_CSR_CMD_CSR_ADDR_   (0x000000FF) /* R/W */

Definition at line 532 of file smc911x.h.

#define MAC_CSR_CMD_CSR_BUSY_   (0x80000000) /* Self Clearing */

Definition at line 530 of file smc911x.h.

#define MAC_CSR_CMD_R_NOT_W_   (0x40000000) /* R/W */

Definition at line 531 of file smc911x.h.

#define MAC_CSR_DATA   (0xA8)

Definition at line 534 of file smc911x.h.

#define MII_ACC   (0x06) /* R/W */

Definition at line 601 of file smc911x.h.

#define MII_ACC_MII_BUSY_   (0x00000001)

Definition at line 605 of file smc911x.h.

#define MII_ACC_MII_WRITE_   (0x00000002)

Definition at line 604 of file smc911x.h.

#define MII_ACC_MIIRINDA_   (0x000007C0)

Definition at line 603 of file smc911x.h.

#define MII_ACC_PHY_ADDR_   (0x0000F800)

Definition at line 602 of file smc911x.h.

#define MII_DATA   (0x07) /* R/W mask 0x0000FFFFUL */

Definition at line 607 of file smc911x.h.

#define MODE_CTRL_STS_EDPWRDOWN_   ((u16)0x2000)

Definition at line 641 of file smc911x.h.

#define MODE_CTRL_STS_ENERGYON_   ((u16)0x0002)

Definition at line 649 of file smc911x.h.

#define PHY_INT_MASK   ((u32)30)

Definition at line 660 of file smc911x.h.

#define PHY_INT_MASK_ANEG_COMP_   ((u16)0x0040)

Definition at line 662 of file smc911x.h.

#define PHY_INT_MASK_ANEG_LP_ACK_   ((u16)0x0008)

Definition at line 665 of file smc911x.h.

#define PHY_INT_MASK_ANEG_PGRX_   ((u16)0x0002)

Definition at line 667 of file smc911x.h.

#define PHY_INT_MASK_ENERGY_ON_   ((u16)0x0080)

Definition at line 661 of file smc911x.h.

#define PHY_INT_MASK_LINK_DOWN_   ((u16)0x0010)

Definition at line 664 of file smc911x.h.

#define PHY_INT_MASK_PAR_DET_FAULT_   ((u16)0x0004)

Definition at line 666 of file smc911x.h.

#define PHY_INT_MASK_REMOTE_FAULT_   ((u16)0x0020)

Definition at line 663 of file smc911x.h.

#define PHY_INT_SRC   ((u32)29)

Definition at line 651 of file smc911x.h.

#define PHY_INT_SRC_ANEG_COMP_   ((u16)0x0040)

Definition at line 653 of file smc911x.h.

#define PHY_INT_SRC_ANEG_LP_ACK_   ((u16)0x0008)

Definition at line 656 of file smc911x.h.

#define PHY_INT_SRC_ANEG_PGRX_   ((u16)0x0002)

Definition at line 658 of file smc911x.h.

#define PHY_INT_SRC_ENERGY_ON_   ((u16)0x0080)

Definition at line 652 of file smc911x.h.

#define PHY_INT_SRC_LINK_DOWN_   ((u16)0x0010)

Definition at line 655 of file smc911x.h.

#define PHY_INT_SRC_PAR_DET_FAULT_   ((u16)0x0004)

Definition at line 657 of file smc911x.h.

#define PHY_INT_SRC_REMOTE_FAULT_   ((u16)0x0020)

Definition at line 654 of file smc911x.h.

#define PHY_MODE_CTRL_STS   ((u32)17) /* Mode Control/Status Register */

Definition at line 639 of file smc911x.h.

#define PHY_SPECIAL   ((u32)31)

Definition at line 669 of file smc911x.h.

#define PHY_SPECIAL_ANEG_DONE_   ((u16)0x1000)

Definition at line 670 of file smc911x.h.

#define PHY_SPECIAL_RES_   ((u16)0x0040)

Definition at line 671 of file smc911x.h.

#define PHY_SPECIAL_RES_MASK_   ((u16)0x0FE1)

Definition at line 672 of file smc911x.h.

#define PHY_SPECIAL_SPD_   ((u16)0x001C)

Definition at line 673 of file smc911x.h.

#define PHY_SPECIAL_SPD_100FULL_   ((u16)0x0018)

Definition at line 677 of file smc911x.h.

#define PHY_SPECIAL_SPD_100HALF_   ((u16)0x0008)

Definition at line 676 of file smc911x.h.

#define PHY_SPECIAL_SPD_10FULL_   ((u16)0x0014)

Definition at line 675 of file smc911x.h.

#define PHY_SPECIAL_SPD_10HALF_   ((u16)0x0004)

Definition at line 674 of file smc911x.h.

#define PMT_CTRL   (0x84)

Definition at line 483 of file smc911x.h.

#define PMT_CTRL_ED_EN_   (0x00000100) /* R/W */

Definition at line 487 of file smc911x.h.

#define PMT_CTRL_PHY_RST_   (0x00000400) /* Self Clearing */

Definition at line 485 of file smc911x.h.

#define PMT_CTRL_PM_MODE_   (0x00003000) /* Self Clearing */

Definition at line 484 of file smc911x.h.

#define PMT_CTRL_PME_EN_   (0x00000002) /* R/W Not Affected by SW Reset */

Definition at line 496 of file smc911x.h.

#define PMT_CTRL_PME_IND_   (0x00000008) /* R/W */

Definition at line 494 of file smc911x.h.

#define PMT_CTRL_PME_POL_   (0x00000004) /* R/W */

Definition at line 495 of file smc911x.h.

#define PMT_CTRL_PME_TYPE_   (0x00000040) /* R/W Not Affected by SW Reset */

Definition at line 488 of file smc911x.h.

#define PMT_CTRL_READY_   (0x00000001) /* RO */

Definition at line 497 of file smc911x.h.

#define PMT_CTRL_WOL_EN_   (0x00000200) /* R/W */

Definition at line 486 of file smc911x.h.

#define PMT_CTRL_WUPS_   (0x00000030) /* R/WC */

Definition at line 489 of file smc911x.h.

#define PMT_CTRL_WUPS_ED_   (0x00000010) /* R/WC */

Definition at line 491 of file smc911x.h.

#define PMT_CTRL_WUPS_MULTI_   (0x00000030) /* R/WC */

Definition at line 493 of file smc911x.h.

#define PMT_CTRL_WUPS_NOWAKE_   (0x00000000) /* R/WC */

Definition at line 490 of file smc911x.h.

#define PMT_CTRL_WUPS_WOL_   (0x00000020) /* R/WC */

Definition at line 492 of file smc911x.h.

#define RX_CFG   (0x6C)

Definition at line 436 of file smc911x.h.

#define RX_CFG_RX_DMA_CNT_   (0x0FFF0000) /* R/W */

Definition at line 441 of file smc911x.h.

#define RX_CFG_RX_DUMP_   (0x00008000) /* R/W */

Definition at line 442 of file smc911x.h.

#define RX_CFG_RX_END_ALGN16_   (0x40000000) /* R/W */

Definition at line 439 of file smc911x.h.

#define RX_CFG_RX_END_ALGN32_   (0x80000000) /* R/W */

Definition at line 440 of file smc911x.h.

#define RX_CFG_RX_END_ALGN4_   (0x00000000) /* R/W */

Definition at line 438 of file smc911x.h.

#define RX_CFG_RX_END_ALGN_   (0xC0000000) /* R/W */

Definition at line 437 of file smc911x.h.

#define RX_CFG_RXDOFF_   (0x00001F00) /* R/W */

Definition at line 443 of file smc911x.h.

#define RX_DATA_FIFO   (0x00)

Definition at line 312 of file smc911x.h.

#define RX_DP_CTRL   (0x78)

Definition at line 471 of file smc911x.h.

#define RX_DP_CTRL_FFWD_BUSY_   (0x80000000) /* RO */

Definition at line 473 of file smc911x.h.

#define RX_DP_CTRL_RX_FFWD_   (0x80000000) /* R/W */

Definition at line 472 of file smc911x.h.

#define RX_DROP   (0xA0)

Definition at line 528 of file smc911x.h.

#define RX_FIFO_INF   (0x7C)

Definition at line 475 of file smc911x.h.

#define RX_FIFO_INF_RXDUSED_   (0x0000FFFF) /* RO */

Definition at line 477 of file smc911x.h.

#define RX_FIFO_INF_RXSUSED_   (0x00FF0000) /* RO */

Definition at line 476 of file smc911x.h.

#define RX_STATUS_FIFO   (0x40)

Definition at line 329 of file smc911x.h.

#define RX_STATUS_FIFO_PEEK   (0x44)

Definition at line 343 of file smc911x.h.

#define RX_STS_BCST_   (0x00002000)

Definition at line 332 of file smc911x.h.

#define RX_STS_COLL_   (0x00000040)

Definition at line 337 of file smc911x.h.

#define RX_STS_CRC_ERR_   (0x00000002)

Definition at line 342 of file smc911x.h.

#define RX_STS_DRIBBLING_   (0x00000004)

Definition at line 341 of file smc911x.h.

#define RX_STS_ES_   (0x00008000)

Definition at line 331 of file smc911x.h.

#define RX_STS_ETH_TYPE_   (0x00000020)

Definition at line 338 of file smc911x.h.

#define RX_STS_LEN_ERR_   (0x00001000)

Definition at line 333 of file smc911x.h.

#define RX_STS_MCAST_   (0x00000400)

Definition at line 335 of file smc911x.h.

#define RX_STS_MII_ERR_   (0x00000008)

Definition at line 340 of file smc911x.h.

#define RX_STS_PKT_LEN_   (0x3FFF0000)

Definition at line 330 of file smc911x.h.

#define RX_STS_RUNT_ERR_   (0x00000800)

Definition at line 334 of file smc911x.h.

#define RX_STS_TOO_LONG_   (0x00000080)

Definition at line 336 of file smc911x.h.

#define RX_STS_WDOG_TMT_   (0x00000010)

Definition at line 339 of file smc911x.h.

#define SMC911X_EEPROM_LEN   7

Definition at line 307 of file smc911x.h.

#define SMC911X_IO_EXTENT   0x100

Definition at line 305 of file smc911x.h.

#define SMC911X_TX_FIFO_LOW_THRESHOLD   (1536*2)

Definition at line 303 of file smc911x.h.

#define SMC_ACK_INT (   lp,
  x 
)    SMC_outl( x, lp, INT_STS )

Definition at line 730 of file smc911x.h.

#define SMC_DYNAMIC_BUS_CONFIG

Definition at line 60 of file smc911x.h.

#define SMC_GET_ADDRH (   lp,
  x 
)    SMC_GET_MAC_CSR( (lp), ADDRH, x )

Definition at line 822 of file smc911x.h.

#define SMC_GET_ADDRL (   lp,
  x 
)    SMC_GET_MAC_CSR( (lp), ADDRL, x )

Definition at line 824 of file smc911x.h.

#define SMC_GET_AFC_CFG (   lp)    SMC_inl( lp, AFC_CFG )

Definition at line 797 of file smc911x.h.

#define SMC_GET_BYTE_TEST (   lp)    SMC_inl( lp, BYTE_TEST )

Definition at line 733 of file smc911x.h.

#define SMC_GET_E2P_CMD (   lp)    SMC_inl( lp, E2P_CMD )

Definition at line 799 of file smc911x.h.

#define SMC_GET_E2P_DATA (   lp)    SMC_inl( lp, E2P_DATA )

Definition at line 801 of file smc911x.h.

#define SMC_GET_FIFO_INT (   lp)    SMC_inl( lp, FIFO_INT )

Definition at line 735 of file smc911x.h.

#define SMC_GET_FLOW (   lp,
  x 
)    SMC_GET_MAC_CSR( (lp), FLOW, x )

Definition at line 834 of file smc911x.h.

#define SMC_GET_GPIO_CFG (   lp)    SMC_inl( lp, GPIO_CFG )

Definition at line 783 of file smc911x.h.

#define SMC_GET_GPT_CFG (   lp)    SMC_inl( lp, GPT_CFG )

Definition at line 789 of file smc911x.h.

#define SMC_GET_HASHH (   lp,
  x 
)    SMC_GET_MAC_CSR( (lp), HASHH, x )

Definition at line 826 of file smc911x.h.

#define SMC_GET_HASHL (   lp,
  x 
)    SMC_GET_MAC_CSR( (lp), HASHL, x )

Definition at line 828 of file smc911x.h.

#define SMC_GET_HW_CFG (   lp)    SMC_inl( lp, HW_CFG )

Definition at line 777 of file smc911x.h.

#define SMC_GET_INT (   lp)    SMC_inl( lp, INT_STS )

Definition at line 729 of file smc911x.h.

#define SMC_GET_INT_EN (   lp)    SMC_inl( lp, INT_EN )

Definition at line 731 of file smc911x.h.

#define SMC_GET_IRQ_CFG (   lp)    SMC_inl( lp, INT_CFG )

Definition at line 727 of file smc911x.h.

#define SMC_GET_MAC_ADDR (   lp,
  addr 
)
Value:
do { \
unsigned int __v; \
addr[0] = __v; addr[1] = __v >> 8; \
addr[2] = __v >> 16; addr[3] = __v >> 24; \
SMC_GET_MAC_CSR((lp), ADDRH, __v); \
addr[4] = __v; addr[5] = __v >> 8; \
} while (0)

Definition at line 894 of file smc911x.h.

#define SMC_GET_MAC_CMD (   lp)    SMC_inl( lp, MAC_CSR_CMD )

Definition at line 793 of file smc911x.h.

#define SMC_GET_MAC_CR (   lp,
  x 
)    SMC_GET_MAC_CSR( (lp), MAC_CR, x )

Definition at line 820 of file smc911x.h.

#define SMC_GET_MAC_CSR (   lp,
  a,
  v 
)
Value:
do { \
SMC_SET_MAC_CMD((lp),MAC_CSR_CMD_CSR_BUSY_ | \
v = SMC_GET_MAC_DATA((lp)); \
} while (0)

Definition at line 805 of file smc911x.h.

#define SMC_GET_MAC_DATA (   lp)    SMC_inl( lp, MAC_CSR_DATA )

Definition at line 795 of file smc911x.h.

#define SMC_GET_MII (   lp,
  a,
  phy,
  v 
)
Value:
do { \
u32 __v; \
do { \
SMC_GET_MII_ACC((lp), __v); \
} while ( __v & MII_ACC_MII_BUSY_ ); \
SMC_SET_MII_ACC( (lp), ((phy)<<11) | ((a)<<6) | \
MII_ACC_MII_BUSY_); \
do { \
SMC_GET_MII_ACC( (lp), __v); \
} while ( __v & MII_ACC_MII_BUSY_ ); \
SMC_GET_MII_DATA((lp), v); \
} while (0)

Definition at line 845 of file smc911x.h.

#define SMC_GET_MII_ACC (   lp,
  x 
)    SMC_GET_MAC_CSR( (lp), MII_ACC, x )

Definition at line 830 of file smc911x.h.

#define SMC_GET_MII_DATA (   lp,
  x 
)    SMC_GET_MAC_CSR( (lp), MII_DATA, x )

Definition at line 832 of file smc911x.h.

#define SMC_GET_PHY_BMCR (   lp,
  phy,
  x 
)    SMC_GET_MII( (lp), MII_BMCR, phy, x )

Definition at line 872 of file smc911x.h.

#define SMC_GET_PHY_BMSR (   lp,
  phy,
  x 
)    SMC_GET_MII( (lp), MII_BMSR, phy, x )

Definition at line 874 of file smc911x.h.

#define SMC_GET_PHY_CTRL_STS (   lp,
  phy,
  x 
)    SMC_GET_MII( (lp), PHY_MODE_CTRL_STS, phy, x )

Definition at line 881 of file smc911x.h.

#define SMC_GET_PHY_ID1 (   lp,
  phy,
  x 
)    SMC_GET_MII( (lp), MII_PHYSID1, phy, x )

Definition at line 875 of file smc911x.h.

#define SMC_GET_PHY_ID2 (   lp,
  phy,
  x 
)    SMC_GET_MII( (lp), MII_PHYSID2, phy, x )

Definition at line 876 of file smc911x.h.

#define SMC_GET_PHY_INT_MASK (   lp,
  phy,
  x 
)    SMC_GET_MII( (lp), PHY_INT_MASK, phy, x )

Definition at line 885 of file smc911x.h.

#define SMC_GET_PHY_INT_SRC (   lp,
  phy,
  x 
)    SMC_GET_MII( (lp), PHY_INT_SRC, phy, x )

Definition at line 883 of file smc911x.h.

#define SMC_GET_PHY_MII_ADV (   lp,
  phy,
  x 
)    SMC_GET_MII( (lp), MII_ADVERTISE, phy, x )

Definition at line 877 of file smc911x.h.

#define SMC_GET_PHY_MII_LPA (   lp,
  phy,
  x 
)    SMC_GET_MII( (lp), MII_LPA, phy, x )

Definition at line 879 of file smc911x.h.

#define SMC_GET_PHY_SPECIAL (   lp,
  phy,
  x 
)    SMC_GET_MII( (lp), PHY_SPECIAL, phy, x )

Definition at line 887 of file smc911x.h.

#define SMC_GET_PMT_CTRL (   lp)    SMC_inl( lp, PMT_CTRL )

Definition at line 781 of file smc911x.h.

#define SMC_GET_PN (   lp)    (SMC_inl( lp, ID_REV ) >> 16)

Definition at line 725 of file smc911x.h.

#define SMC_GET_REV (   lp)    (SMC_inl( lp, ID_REV ) & 0xFFFF)

Definition at line 726 of file smc911x.h.

#define SMC_GET_RX_CFG (   lp)    SMC_inl( lp, RX_CFG )

Definition at line 773 of file smc911x.h.

#define SMC_GET_RX_DP_CTRL (   lp)    SMC_inl( lp, RX_DP_CTRL )

Definition at line 779 of file smc911x.h.

#define SMC_GET_RX_DROP (   lp)    SMC_inl( lp, RX_DROP )

Definition at line 791 of file smc911x.h.

#define SMC_GET_RX_FIFO (   lp)    SMC_inl( lp, RX_DATA_FIFO )

Definition at line 718 of file smc911x.h.

#define SMC_GET_RX_FIFO_INF (   lp)    SMC_inl( lp, RX_FIFO_INF )

Definition at line 785 of file smc911x.h.

#define SMC_GET_RX_STS_FIFO (   lp)    SMC_inl( lp, RX_STATUS_FIFO )

Definition at line 723 of file smc911x.h.

#define SMC_GET_RX_STS_FIFO_PEEK (   lp)    SMC_inl( lp, RX_STATUS_FIFO_PEEK )

Definition at line 724 of file smc911x.h.

#define SMC_GET_TX_CFG (   lp)    SMC_inl( lp, TX_CFG )

Definition at line 775 of file smc911x.h.

#define SMC_GET_TX_FIFO_INF (   lp)    SMC_inl( lp, TX_FIFO_INF )

Definition at line 787 of file smc911x.h.

#define SMC_GET_TX_STS_FIFO (   lp)    SMC_inl( lp, TX_STATUS_FIFO )

Definition at line 722 of file smc911x.h.

#define SMC_GET_VLAN1 (   lp,
  x 
)    SMC_GET_MAC_CSR( (lp), VLAN1, x )

Definition at line 836 of file smc911x.h.

#define SMC_GET_VLAN2 (   lp,
  x 
)    SMC_GET_MAC_CSR( (lp), VLAN2, x )

Definition at line 838 of file smc911x.h.

#define SMC_GET_WUCSR (   lp,
  x 
)    SMC_GET_MAC_CSR( (lp), WUCSR, x )

Definition at line 841 of file smc911x.h.

#define SMC_PULL_DATA (   lp,
  p,
  l 
)    SMC_insl ( lp, RX_DATA_FIFO, p, (l) >> 2 )

Definition at line 716 of file smc911x.h.

#define SMC_PUSH_DATA (   lp,
  p,
  l 
)    SMC_outsl( lp, TX_DATA_FIFO, p, (l) >> 2 )

Definition at line 715 of file smc911x.h.

#define SMC_SET_ADDRH (   lp,
  x 
)    SMC_SET_MAC_CSR( (lp), ADDRH, x )

Definition at line 823 of file smc911x.h.

#define SMC_SET_ADDRL (   lp,
  x 
)    SMC_SET_MAC_CSR( (lp), ADDRL, x )

Definition at line 825 of file smc911x.h.

#define SMC_SET_AFC_CFG (   lp,
  x 
)    SMC_outl( x, lp, AFC_CFG )

Definition at line 798 of file smc911x.h.

#define SMC_SET_BYTE_TEST (   lp,
  x 
)    SMC_outl( x, lp, BYTE_TEST )

Definition at line 734 of file smc911x.h.

#define SMC_SET_E2P_CMD (   lp,
  x 
)    SMC_outl( x, lp, E2P_CMD )

Definition at line 800 of file smc911x.h.

#define SMC_SET_E2P_DATA (   lp,
  x 
)    SMC_outl( x, lp, E2P_DATA )

Definition at line 802 of file smc911x.h.

#define SMC_SET_FIFO_INT (   lp,
  x 
)    SMC_outl( x, lp, FIFO_INT )

Definition at line 736 of file smc911x.h.

#define SMC_SET_FIFO_RSA (   lp,
  x 
)
Value:
do { \
unsigned long __flags; \
int __mask; \
local_irq_save(__flags); \
__mask = SMC_GET_FIFO_INT((lp)) & ~(0xFF<<8); \
SMC_SET_FIFO_INT( (lp), __mask | (((x) & 0xFF)<<8)); \
local_irq_restore(__flags); \
} while (0)

Definition at line 755 of file smc911x.h.

#define SMC_SET_FIFO_RSL (   lp,
  x 
)
Value:
do { \
unsigned long __flags; \
int __mask; \
local_irq_save(__flags); \
__mask = SMC_GET_FIFO_INT((lp)) & ~0xFF; \
SMC_SET_FIFO_INT( (lp),__mask | ((x) & 0xFF)); \
local_irq_restore(__flags); \
} while (0)

Definition at line 764 of file smc911x.h.

#define SMC_SET_FIFO_TDA (   lp,
  x 
)
Value:
do { \
unsigned long __flags; \
int __mask; \
local_irq_save(__flags); \
__mask = SMC_GET_FIFO_INT((lp)) & ~(0xFF<<24); \
SMC_SET_FIFO_INT( (lp), __mask | (x)<<24 ); \
local_irq_restore(__flags); \
} while (0)

Definition at line 737 of file smc911x.h.

#define SMC_SET_FIFO_TSL (   lp,
  x 
)
Value:
do { \
unsigned long __flags; \
int __mask; \
local_irq_save(__flags); \
__mask = SMC_GET_FIFO_INT((lp)) & ~(0xFF<<16); \
SMC_SET_FIFO_INT( (lp), __mask | (((x) & 0xFF)<<16)); \
local_irq_restore(__flags); \
} while (0)

Definition at line 746 of file smc911x.h.

#define SMC_SET_FLOW (   lp,
  x 
)    SMC_SET_MAC_CSR( (lp), FLOW, x )

Definition at line 835 of file smc911x.h.

#define SMC_SET_GPIO_CFG (   lp,
  x 
)    SMC_outl( x, lp, GPIO_CFG )

Definition at line 784 of file smc911x.h.

#define SMC_SET_GPT_CFG (   lp,
  x 
)    SMC_outl( x, lp, GPT_CFG )

Definition at line 790 of file smc911x.h.

#define SMC_SET_HASHH (   lp,
  x 
)    SMC_SET_MAC_CSR( (lp), HASHH, x )

Definition at line 827 of file smc911x.h.

#define SMC_SET_HASHL (   lp,
  x 
)    SMC_SET_MAC_CSR( (lp), HASHL, x )

Definition at line 829 of file smc911x.h.

#define SMC_SET_HW_CFG (   lp,
  x 
)    SMC_outl( x, lp, HW_CFG )

Definition at line 778 of file smc911x.h.

#define SMC_SET_INT_EN (   lp,
  x 
)    SMC_outl( x, lp, INT_EN )

Definition at line 732 of file smc911x.h.

#define SMC_SET_IRQ_CFG (   lp,
  x 
)    SMC_outl( x, lp, INT_CFG )

Definition at line 728 of file smc911x.h.

#define SMC_SET_MAC_ADDR (   lp,
  addr 
)
Value:
do { \
SMC_SET_MAC_CSR((lp), ADDRL, \
addr[0] | \
(addr[1] << 8) | \
(addr[2] << 16) | \
(addr[3] << 24)); \
SMC_SET_MAC_CSR((lp), ADDRH, addr[4]|(addr[5] << 8));\
} while (0)

Definition at line 906 of file smc911x.h.

#define SMC_SET_MAC_CMD (   lp,
  x 
)    SMC_outl( x, lp, MAC_CSR_CMD )

Definition at line 794 of file smc911x.h.

#define SMC_SET_MAC_CR (   lp,
  x 
)    SMC_SET_MAC_CSR( (lp), MAC_CR, x )

Definition at line 821 of file smc911x.h.

#define SMC_SET_MAC_CSR (   lp,
  a,
  v 
)
Value:
do { \
SMC_SET_MAC_DATA((lp), v); \
SMC_SET_MAC_CMD((lp), MAC_CSR_CMD_CSR_BUSY_ | (a) ); \
} while (0)

Definition at line 813 of file smc911x.h.

#define SMC_SET_MAC_DATA (   lp,
  x 
)    SMC_outl( x, lp, MAC_CSR_DATA )

Definition at line 796 of file smc911x.h.

#define SMC_SET_MII (   lp,
  a,
  phy,
  v 
)
Value:
do { \
u32 __v; \
do { \
SMC_GET_MII_ACC((lp), __v); \
} while ( __v & MII_ACC_MII_BUSY_ ); \
SMC_SET_MII_DATA((lp), v); \
SMC_SET_MII_ACC( (lp), ((phy)<<11) | ((a)<<6) | \
MII_ACC_MII_BUSY_ | \
do { \
SMC_GET_MII_ACC((lp), __v); \
} while ( __v & MII_ACC_MII_BUSY_ ); \
} while (0)

Definition at line 858 of file smc911x.h.

#define SMC_SET_MII_ACC (   lp,
  x 
)    SMC_SET_MAC_CSR( (lp), MII_ACC, x )

Definition at line 831 of file smc911x.h.

#define SMC_SET_MII_DATA (   lp,
  x 
)    SMC_SET_MAC_CSR( (lp), MII_DATA, x )

Definition at line 833 of file smc911x.h.

#define SMC_SET_PHY_BMCR (   lp,
  phy,
  x 
)    SMC_SET_MII( (lp), MII_BMCR, phy, x )

Definition at line 873 of file smc911x.h.

#define SMC_SET_PHY_CTRL_STS (   lp,
  phy,
  x 
)    SMC_SET_MII( (lp), PHY_MODE_CTRL_STS, phy, x )

Definition at line 882 of file smc911x.h.

#define SMC_SET_PHY_INT_MASK (   lp,
  phy,
  x 
)    SMC_SET_MII( (lp), PHY_INT_MASK, phy, x )

Definition at line 886 of file smc911x.h.

#define SMC_SET_PHY_INT_SRC (   lp,
  phy,
  x 
)    SMC_SET_MII( (lp), PHY_INT_SRC, phy, x )

Definition at line 884 of file smc911x.h.

#define SMC_SET_PHY_MII_ADV (   lp,
  phy,
  x 
)    SMC_SET_MII( (lp), MII_ADVERTISE, phy, x )

Definition at line 878 of file smc911x.h.

#define SMC_SET_PHY_MII_LPA (   lp,
  phy,
  x 
)    SMC_SET_MII( (lp), MII_LPA, phy, x )

Definition at line 880 of file smc911x.h.

#define SMC_SET_PMT_CTRL (   lp,
  x 
)    SMC_outl( x, lp, PMT_CTRL )

Definition at line 782 of file smc911x.h.

#define SMC_SET_RX_CFG (   lp,
  x 
)    SMC_outl( x, lp, RX_CFG )

Definition at line 774 of file smc911x.h.

#define SMC_SET_RX_DP_CTRL (   lp,
  x 
)    SMC_outl( x, lp, RX_DP_CTRL )

Definition at line 780 of file smc911x.h.

#define SMC_SET_RX_DROP (   lp,
  x 
)    SMC_outl( x, lp, RX_DROP )

Definition at line 792 of file smc911x.h.

#define SMC_SET_RX_FIFO_INF (   lp,
  x 
)    SMC_outl( x, lp, RX_FIFO_INF )

Definition at line 786 of file smc911x.h.

#define SMC_SET_TX_CFG (   lp,
  x 
)    SMC_outl( x, lp, TX_CFG )

Definition at line 776 of file smc911x.h.

#define SMC_SET_TX_FIFO (   lp,
  x 
)    SMC_outl( x, lp, TX_DATA_FIFO )

Definition at line 717 of file smc911x.h.

#define SMC_SET_TX_FIFO_INF (   lp,
  x 
)    SMC_outl( x, lp, TX_FIFO_INF )

Definition at line 788 of file smc911x.h.

#define SMC_SET_VLAN1 (   lp,
  x 
)    SMC_SET_MAC_CSR( (lp), VLAN1, x )

Definition at line 837 of file smc911x.h.

#define SMC_SET_VLAN2 (   lp,
  x 
)    SMC_SET_MAC_CSR( (lp), VLAN2, x )

Definition at line 839 of file smc911x.h.

#define SMC_SET_WUCSR (   lp,
  x 
)    SMC_SET_MAC_CSR( (lp), WUCSR, x )

Definition at line 842 of file smc911x.h.

#define SMC_SET_WUFF (   lp,
  x 
)    SMC_SET_MAC_CSR( (lp), WUFF, x )

Definition at line 840 of file smc911x.h.

#define SMC_WRITE_EEPROM_CMD (   lp,
  cmd,
  addr 
)
Value:
do { \
SMC_SET_MAC_CMD((lp), MAC_CSR_CMD_R_NOT_W_ | a ); \
} while (0)

Definition at line 917 of file smc911x.h.

#define TX_CFG   (0x70)

Definition at line 446 of file smc911x.h.

#define TX_CFG_STOP_TX_   (0x00000001) /* Self Clearing */

Definition at line 453 of file smc911x.h.

#define TX_CFG_TX_ON_   (0x00000002) /* R/W */

Definition at line 452 of file smc911x.h.

#define TX_CFG_TXD_DUMP_   (0x00004000) /* Self Clearing */

Definition at line 450 of file smc911x.h.

#define TX_CFG_TXS_DUMP_   (0x00008000) /* Self Clearing */

Definition at line 449 of file smc911x.h.

#define TX_CFG_TXSAO_   (0x00000004) /* R/W */

Definition at line 451 of file smc911x.h.

#define TX_CMD_A_BUF_SIZE_   (0x000007FF)

Definition at line 323 of file smc911x.h.

#define TX_CMD_A_INT_16_BYTE_ALGN_   (0x01000000)

Definition at line 318 of file smc911x.h.

#define TX_CMD_A_INT_32_BYTE_ALGN_   (0x02000000)

Definition at line 319 of file smc911x.h.

#define TX_CMD_A_INT_4_BYTE_ALGN_   (0x00000000)

Definition at line 317 of file smc911x.h.

#define TX_CMD_A_INT_BUF_END_ALGN_   (0x03000000)

Definition at line 316 of file smc911x.h.

#define TX_CMD_A_INT_DATA_OFFSET_   (0x001F0000)

Definition at line 320 of file smc911x.h.

#define TX_CMD_A_INT_FIRST_SEG_   (0x00002000)

Definition at line 321 of file smc911x.h.

#define TX_CMD_A_INT_LAST_SEG_   (0x00001000)

Definition at line 322 of file smc911x.h.

#define TX_CMD_A_INT_ON_COMP_   (0x80000000)

Definition at line 315 of file smc911x.h.

#define TX_CMD_B_ADD_CRC_DISABLE_   (0x00002000)

Definition at line 325 of file smc911x.h.

#define TX_CMD_B_DISABLE_PADDING_   (0x00001000)

Definition at line 326 of file smc911x.h.

#define TX_CMD_B_PKT_BYTE_LENGTH_   (0x000007FF)

Definition at line 327 of file smc911x.h.

#define TX_CMD_B_PKT_TAG_   (0xFFFF0000)

Definition at line 324 of file smc911x.h.

#define TX_DATA_FIFO   (0x20)

Definition at line 314 of file smc911x.h.

#define TX_FIFO_INF   (0x80)

Definition at line 479 of file smc911x.h.

#define TX_FIFO_INF_TDFREE_   (0x0000FFFF) /* RO */

Definition at line 481 of file smc911x.h.

#define TX_FIFO_INF_TSUSED_   (0x00FF0000) /* RO */

Definition at line 480 of file smc911x.h.

#define TX_STATUS_FIFO   (0x48)

Definition at line 344 of file smc911x.h.

#define TX_STATUS_FIFO_PEEK   (0x4C)

Definition at line 355 of file smc911x.h.

#define TX_STS_COLL_CNT_   (0x00000078)

Definition at line 351 of file smc911x.h.

#define TX_STS_DEFERRED_   (0x00000001)

Definition at line 354 of file smc911x.h.

#define TX_STS_ES_   (0x00008000)

Definition at line 346 of file smc911x.h.

#define TX_STS_LATE_COLL_   (0x00000200)

Definition at line 349 of file smc911x.h.

#define TX_STS_LOC_   (0x00000800)

Definition at line 347 of file smc911x.h.

#define TX_STS_MANY_COLL_   (0x00000100)

Definition at line 350 of file smc911x.h.

#define TX_STS_MANY_DEFER_   (0x00000004)

Definition at line 352 of file smc911x.h.

#define TX_STS_NO_CARR_   (0x00000400)

Definition at line 348 of file smc911x.h.

#define TX_STS_TAG_   (0xFFFF0000)

Definition at line 345 of file smc911x.h.

#define TX_STS_UNDERRUN_   (0x00000002)

Definition at line 353 of file smc911x.h.

#define VLAN1   (0x09) /* R/W mask 0x0000FFFFUL */

Definition at line 615 of file smc911x.h.

#define VLAN1_VTI1_   (0x0000ffff)

Definition at line 616 of file smc911x.h.

#define VLAN2   (0x0A) /* R/W mask 0x0000FFFFUL */

Definition at line 618 of file smc911x.h.

#define VLAN2_VTI2_   (0x0000ffff)

Definition at line 619 of file smc911x.h.

#define WUCSR   (0x0C) /* R/W */

Definition at line 623 of file smc911x.h.

#define WUCSR_GUE_   (0x00000200)

Definition at line 624 of file smc911x.h.

#define WUCSR_MPEN_   (0x00000002)

Definition at line 628 of file smc911x.h.

#define WUCSR_MPR_   (0x00000020)

Definition at line 626 of file smc911x.h.

#define WUCSR_WAKE_EN_   (0x00000004)

Definition at line 627 of file smc911x.h.

#define WUCSR_WUFR_   (0x00000040)

Definition at line 625 of file smc911x.h.

#define WUFF   (0x0B) /* WO */

Definition at line 621 of file smc911x.h.