#include "stdint.h"Go to the source code of this file.
| #define TG3_64BIT_REG_HIGH 0x00UL |
| #define TG3_64BIT_REG_LOW 0x04UL |
Definition at line 83 of file tg3.h.
Referenced by tg3_ack_irqs(), tg3_disable_ints(), tg3_poll(), tg3_set_bdinfo(), tg3_setup_hw(), and tg3_transmit().
| #define TG3_BDINFO_HOST_ADDR 0x0UL |
| #define TG3_BDINFO_MAXLEN_FLAGS 0x8UL |
| #define BDINFO_FLAGS_DISABLED 0x00000002 |
| #define BDINFO_FLAGS_MAXLEN_SHIFT 16 |
| #define TG3_BDINFO_NIC_ADDR 0xcUL |
| #define TG3_BDINFO_SIZE 0x10UL |
| #define RX_STD_MAX_SIZE 1536 |
| #define RX_STD_MAX_SIZE_5705 512 |
| #define TG3PCI_X_CAPS 0x00000040 |
| #define PCIX_CAPS_RELAXED_ORDERING 0x00020000 |
| #define PCIX_CAPS_SPLIT_MASK 0x00700000 |
| #define PCIX_CAPS_SPLIT_SHIFT 20 |
| #define PCIX_CAPS_BURST_MASK 0x000c0000 |
| #define PCIX_CAPS_BURST_SHIFT 18 |
| #define PCIX_CAPS_MAX_BURST_CPIOB 2 |
| #define TG3PCI_MISC_HOST_CTRL 0x00000068 |
Definition at line 156 of file tg3.h.
Referenced by tg3_chip_reset(), tg3_disable_ints(), tg3_get_invariants(), and tg3_set_power_state_0().
| #define MISC_HOST_CTRL_MASK_PCI_INT 0x00000002 |
| #define MISC_HOST_CTRL_WORD_SWAP 0x00000008 |
| #define MISC_HOST_CTRL_PCISTATE_RW 0x00000010 |
| #define MISC_HOST_CTRL_INDIR_ACCESS 0x00000080 |
| #define MISC_HOST_CTRL_CHIPREV 0xffff0000 |
| #define MISC_HOST_CTRL_CHIPREV_SHIFT 16 |
| #define GET_CHIP_REV_ID | ( | MISC_HOST_CTRL | ) |
Value:
(((MISC_HOST_CTRL) & MISC_HOST_CTRL_CHIPREV) >> \ MISC_HOST_CTRL_CHIPREV_SHIFT)
| #define CHIPREV_ID_5700_ALTIMA 0x7104 |
| #define CHIPREV_ID_5701_A0 0x0000 |
Definition at line 179 of file tg3.h.
Referenced by tg3_phy_copper_begin(), tg3_phy_probe(), tg3_setup_copper_phy(), and tg3_setup_hw().
| #define CHIPREV_ID_5701_B0 0x0100 |
Definition at line 180 of file tg3.h.
Referenced by tg3_phy_copper_begin(), tg3_phy_probe(), and tg3_setup_copper_phy().
| #define CHIPREV_ID_5703_A1 0x1001 |
| #define CHIPREV_ID_5704_A0 0x2000 |
Definition at line 187 of file tg3.h.
Referenced by tg3_chip_reset(), tg3_get_invariants(), and tg3_setup_hw().
| #define CHIPREV_ID_5705_A0 0x3000 |
Definition at line 190 of file tg3.h.
Referenced by tg3_get_invariants(), tg3_setup_copper_phy(), and tg3_setup_hw().
| #define CHIPREV_ID_5705_A1 0x3001 |
| #define CHIPREV_ID_5721 0x4101 |
| #define CHIPREV_ID_5750_A0 0x4000 |
| #define GET_ASIC_REV | ( | CHIP_REV_ID | ) | ((CHIP_REV_ID) >> 12) |
Definition at line 198 of file tg3.h.
Referenced by __tg3_set_mac_addr(), tg3_chip_reset(), tg3_get_invariants(), tg3_nvram_init(), tg3_phy_probe(), tg3_phy_reset(), tg3_restart_fw(), tg3_set_bdinfo(), tg3_setup_copper_phy(), tg3_setup_dma(), tg3_setup_hw(), tg3_stop_block(), and tg3_switch_clocks().
| #define ASIC_REV_5700 0x07 |
Definition at line 199 of file tg3.h.
Referenced by __tg3_set_mac_addr(), tg3_get_invariants(), tg3_nvram_init(), tg3_setup_copper_phy(), and tg3_setup_hw().
| #define ASIC_REV_5701 0x00 |
| #define ASIC_REV_5703 0x01 |
Definition at line 201 of file tg3.h.
Referenced by tg3_get_invariants(), tg3_phy_probe(), tg3_phy_reset(), tg3_setup_copper_phy(), tg3_setup_dma(), and tg3_setup_hw().
| #define ASIC_REV_5704 0x02 |
Definition at line 202 of file tg3.h.
Referenced by tg3_get_invariants(), tg3_phy_probe(), tg3_phy_reset(), tg3_setup_copper_phy(), tg3_setup_dma(), and tg3_setup_hw().
| #define ASIC_REV_5705 0x03 |
Definition at line 203 of file tg3.h.
Referenced by __tg3_set_mac_addr(), tg3_chip_reset(), tg3_get_invariants(), tg3_phy_probe(), tg3_phy_reset(), tg3_set_bdinfo(), tg3_setup_dma(), tg3_setup_hw(), tg3_stop_block(), and tg3_switch_clocks().
| #define ASIC_REV_5750 0x04 |
Definition at line 204 of file tg3.h.
Referenced by tg3_chip_reset(), tg3_get_invariants(), tg3_phy_reset(), tg3_setup_hw(), and tg3_switch_clocks().
| #define ASIC_REV_5787 0x0b |
Definition at line 205 of file tg3.h.
Referenced by tg3_chip_reset(), tg3_restart_fw(), tg3_setup_hw(), and tg3_stop_block().
| #define TG3PCI_DMA_RW_CTRL 0x0000006c |
| #define DMA_RWCTRL_MIN_DMA 0x000000ff |
| #define DMA_RWCTRL_MIN_DMA_SHIFT 0 |
| #define DMA_RWCTRL_ONE_DMA 0x00004000 |
| #define DMA_RWCTRL_READ_WATER_SHIFT 16 |
| #define DMA_RWCTRL_WRITE_WATER_SHIFT 19 |
| #define DMA_RWCTRL_ASSERT_ALL_BE 0x00800000 |
| #define DMA_RWCTRL_PCI_READ_CMD_SHIFT 24 |
| #define DMA_RWCTRL_PCI_WRITE_CMD_SHIFT 28 |
| #define TG3PCI_PCISTATE 0x00000070 |
Definition at line 249 of file tg3.h.
Referenced by tg3_chip_reset(), tg3_get_invariants(), and tg3_setup_hw().
| #define PCISTATE_CONV_PCI_MODE 0x00000004 |
| #define PCISTATE_BUS_SPEED_HIGH 0x00000008 |
| #define PCISTATE_BUS_32BIT 0x00000010 |
| #define PCISTATE_ROM_ENABLE 0x00000020 |
| #define PCISTATE_ROM_RETRY_ENABLE 0x00000040 |
| #define PCISTATE_RETRY_SAME_DMA 0x00002000 |
Definition at line 258 of file tg3.h.
Referenced by tg3_chip_reset(), tg3_get_invariants(), and tg3_setup_hw().
| #define TG3PCI_CLOCK_CTRL 0x00000074 |
Definition at line 259 of file tg3.h.
Referenced by tg3_chip_reset(), tg3_setup_dma(), tg3_setup_hw(), and tg3_switch_clocks().
| #define CLOCK_CTRL_ALTCLK 0x00001000 |
| #define CLOCK_CTRL_44MHZ_CORE 0x00040000 |
| #define CLOCK_CTRL_FORCE_CLKRUN 0x00200000 |
| #define CLOCK_CTRL_CLKRUN_OENABLE 0x00400000 |
| #define CLOCK_CTRL_DELAY_PCI_GRANT 0x80000000 |
| #define TG3PCI_REG_BASE_ADDR 0x00000078 |
| #define TG3PCI_MEM_WIN_BASE_ADDR 0x0000007c |
Definition at line 271 of file tg3.h.
Referenced by tg3_get_invariants(), tg3_read_mem(), tg3_setup_hw(), and tg3_write_mem().
| #define TG3PCI_REG_DATA 0x00000080 |
| #define TG3PCI_MEM_WIN_DATA 0x00000084 |
| #define MAILBOX_INTERRUPT_0 0x00000200 |
Definition at line 286 of file tg3.h.
Referenced by tg3_ack_irqs(), tg3_disable_ints(), and tg3_setup_hw().
| #define MAILBOX_RCV_STD_PROD_IDX 0x00000268 |
| #define MAILBOX_RCV_JUMBO_PROD_IDX 0x00000270 |
| #define MAILBOX_RCVRET_CON_IDX_0 0x00000280 |
| #define MAILBOX_SNDHOST_PROD_IDX_0 0x00000300 |
| #define MAILBOX_SNDNIC_PROD_IDX_0 0x00000380 |
| #define MAC_MODE 0x00000400 |
Definition at line 352 of file tg3.h.
Referenced by tg3_abort_hw(), tg3_fiber_aneg_smachine(), tg3_poll_link(), tg3_setup_copper_phy(), tg3_setup_fiber_phy(), and tg3_setup_hw().
| #define MAC_MODE_HALF_DUPLEX 0x00000002 |
Definition at line 354 of file tg3.h.
Referenced by tg3_setup_copper_phy(), and tg3_setup_fiber_phy().
| #define MAC_MODE_PORT_MODE_MASK 0x0000000c |
Definition at line 355 of file tg3.h.
Referenced by tg3_poll_link(), tg3_setup_copper_phy(), and tg3_setup_fiber_phy().
| #define MAC_MODE_PORT_MODE_TBI 0x0000000c |
| #define MAC_MODE_PORT_MODE_GMII 0x00000008 |
Definition at line 357 of file tg3.h.
Referenced by tg3_setup_copper_phy(), and tg3_setup_fiber_phy().
| #define MAC_MODE_PORT_MODE_MII 0x00000004 |
| #define MAC_MODE_LINK_POLARITY 0x00000400 |
Definition at line 364 of file tg3.h.
Referenced by tg3_setup_copper_phy(), and tg3_setup_fiber_phy().
| #define MAC_MODE_RXSTAT_ENABLE 0x00000800 |
| #define MAC_MODE_RXSTAT_CLEAR 0x00001000 |
| #define MAC_MODE_TXSTAT_ENABLE 0x00004000 |
| #define MAC_MODE_TXSTAT_CLEAR 0x00008000 |
| #define MAC_MODE_SEND_CONFIGS 0x00020000 |
Definition at line 371 of file tg3.h.
Referenced by tg3_fiber_aneg_smachine(), and tg3_setup_fiber_phy().
| #define MAC_MODE_TDE_ENABLE 0x00200000 |
| #define MAC_MODE_RDE_ENABLE 0x00400000 |
| #define MAC_MODE_FHDE_ENABLE 0x00800000 |
| #define MAC_STATUS 0x00000404 |
Definition at line 378 of file tg3.h.
Referenced by tg3_fiber_aneg_smachine(), tg3_poll_link(), tg3_setup_copper_phy(), and tg3_setup_fiber_phy().
| #define MAC_STATUS_PCS_SYNCED 0x00000001 |
| #define MAC_STATUS_RCVD_CFG 0x00000004 |
| #define MAC_STATUS_CFG_CHANGED 0x00000008 |
Definition at line 382 of file tg3.h.
Referenced by tg3_setup_copper_phy(), and tg3_setup_fiber_phy().
| #define MAC_STATUS_SYNC_CHANGED 0x00000010 |
Definition at line 383 of file tg3.h.
Referenced by tg3_setup_copper_phy(), and tg3_setup_fiber_phy().
| #define MAC_STATUS_LNKSTATE_CHANGED 0x00001000 |
| #define MAC_EVENT 0x00000408 |
Definition at line 392 of file tg3.h.
Referenced by tg3_setup_copper_phy(), and tg3_setup_fiber_phy().
| #define MAC_LED_CTRL 0x0000040c |
| #define LED_CTRL_PHY_MODE_1 0x00000800 |
| #define MAC_ADDR_0_HIGH 0x00000410 |
Definition at line 420 of file tg3.h.
Referenced by __tg3_set_mac_addr(), and tg3_get_device_address().
| #define MAC_ADDR_0_LOW 0x00000414 |
Definition at line 421 of file tg3.h.
Referenced by __tg3_set_mac_addr(), and tg3_get_device_address().
| #define MAC_TX_BACKOFF_SEED 0x00000438 |
| #define TX_BACKOFF_SEED_MASK 0x000003ff |
| #define MAC_RX_MTU_SIZE 0x0000043c |
| #define MAC_TX_AUTO_NEG 0x00000444 |
Definition at line 442 of file tg3.h.
Referenced by tg3_fiber_aneg_smachine(), and tg3_setup_fiber_phy().
| #define MAC_RX_AUTO_NEG 0x00000448 |
| #define MAC_MI_COM 0x0000044c |
| #define MI_COM_CMD_WRITE 0x04000000 |
| #define MI_COM_CMD_READ 0x08000000 |
| #define MI_COM_START 0x20000000 |
| #define MI_COM_BUSY 0x20000000 |
| #define MI_COM_PHY_ADDR_MASK 0x03e00000 |
| #define MI_COM_PHY_ADDR_SHIFT 21 |
| #define MI_COM_REG_ADDR_MASK 0x001f0000 |
| #define MI_COM_REG_ADDR_SHIFT 16 |
| #define MI_COM_DATA_MASK 0x0000ffff |
| #define MAC_MI_STAT 0x00000450 |
| #define MAC_MI_STAT_LNKSTAT_ATTN_ENAB 0x00000001 |
| #define MAC_MI_MODE 0x00000454 |
Definition at line 462 of file tg3.h.
Referenced by tg3_get_invariants(), tg3_readphy(), tg3_setup_copper_phy(), tg3_setup_hw(), and tg3_writephy().
| #define MAC_MI_MODE_AUTO_POLL 0x00000010 |
Definition at line 465 of file tg3.h.
Referenced by tg3_readphy(), tg3_setup_copper_phy(), and tg3_writephy().
| #define MAC_MI_MODE_BASE 0x000c0000 |
Definition at line 467 of file tg3.h.
Referenced by tg3_probe(), tg3_setup_copper_phy(), and tg3_setup_hw().
| #define MAC_TX_MODE 0x0000045c |
| #define TX_MODE_ENABLE 0x00000002 |
| #define TX_MODE_FLOW_CTRL_ENABLE 0x00000010 |
| #define MAC_TX_LENGTHS 0x00000464 |
| #define TX_LENGTHS_SLOT_TIME_SHIFT 0 |
| #define TX_LENGTHS_IPG_SHIFT 8 |
| #define TX_LENGTHS_IPG_CRS_SHIFT 12 |
| #define MAC_RX_MODE 0x00000468 |
| #define RX_MODE_RESET 0x00000001 |
| #define RX_MODE_ENABLE 0x00000002 |
| #define RX_MODE_FLOW_CTRL_ENABLE 0x00000004 |
| #define RX_MODE_KEEP_VLAN_TAG 0x00000400 |
| #define MAC_HASH_REG_0 0x00000470 |
| #define MAC_HASH_REG_1 0x00000474 |
| #define MAC_HASH_REG_2 0x00000478 |
| #define MAC_HASH_REG_3 0x0000047c |
| #define MAC_RCV_RULE_0 0x00000480 |
| #define MAC_RCV_VALUE_0 0x00000484 |
| #define MAC_RCV_RULE_1 0x00000488 |
| #define MAC_RCV_VALUE_1 0x0000048c |
| #define MAC_RCV_RULE_4 0x000004a0 |
| #define MAC_RCV_VALUE_4 0x000004a4 |
| #define MAC_RCV_RULE_5 0x000004a8 |
| #define MAC_RCV_VALUE_5 0x000004ac |
| #define MAC_RCV_RULE_6 0x000004b0 |
| #define MAC_RCV_VALUE_6 0x000004b4 |
| #define MAC_RCV_RULE_7 0x000004b8 |
| #define MAC_RCV_VALUE_7 0x000004bc |
| #define MAC_RCV_RULE_8 0x000004c0 |
| #define MAC_RCV_VALUE_8 0x000004c4 |
| #define MAC_RCV_RULE_9 0x000004c8 |
| #define MAC_RCV_VALUE_9 0x000004cc |
| #define MAC_RCV_RULE_10 0x000004d0 |
| #define MAC_RCV_VALUE_10 0x000004d4 |
| #define MAC_RCV_RULE_11 0x000004d8 |
| #define MAC_RCV_VALUE_11 0x000004dc |
| #define MAC_RCV_RULE_12 0x000004e0 |
| #define MAC_RCV_VALUE_12 0x000004e4 |
| #define MAC_RCV_RULE_13 0x000004e8 |
| #define MAC_RCV_VALUE_13 0x000004ec |
| #define MAC_RCV_RULE_14 0x000004f0 |
| #define MAC_RCV_VALUE_14 0x000004f4 |
| #define MAC_RCV_RULE_15 0x000004f8 |
| #define MAC_RCV_VALUE_15 0x000004fc |
| #define RCV_RULE_DISABLE_MASK 0x7fffffff |
| #define MAC_RCV_RULE_CFG 0x00000500 |
| #define RCV_RULE_CFG_DEFAULT_CLASS 0x00000008 |
| #define MAC_LOW_WMARK_MAX_RX_FRAME 0x00000504 |
| #define MAC_EXTADDR_0_HIGH 0x00000530 |
| #define MAC_EXTADDR_0_LOW 0x00000534 |
| #define MAC_SERDES_CFG 0x00000590 |
| #define SNDDATAI_MODE 0x00000c00 |
| #define SNDDATAI_MODE_ENABLE 0x00000002 |
| #define SNDDATAI_STATSCTRL 0x00000c08 |
| #define SNDDATAI_SCTRL_ENABLE 0x00000001 |
| #define SNDDATAI_SCTRL_FASTUPD 0x00000002 |
| #define SNDDATAI_STATSENAB 0x00000c0c |
| #define SNDDATAC_MODE 0x00001000 |
| #define SNDDATAC_MODE_ENABLE 0x00000002 |
| #define SNDBDS_MODE 0x00001400 |
| #define SNDBDS_MODE_ENABLE 0x00000002 |
| #define SNDBDS_MODE_ATTN_ENABLE 0x00000004 |
| #define SNDBDI_MODE 0x00001800 |
| #define SNDBDI_MODE_ENABLE 0x00000002 |
| #define SNDBDI_MODE_ATTN_ENABLE 0x00000004 |
| #define SNDBDC_MODE 0x00001c00 |
| #define SNDBDC_MODE_ENABLE 0x00000002 |
| #define SNDBDC_MODE_ATTN_ENABLE 0x00000004 |
| #define RCVLPC_MODE 0x00002000 |
| #define RCVLPC_MODE_ENABLE 0x00000002 |
| #define RCVLPC_CONFIG 0x00002010 |
| #define RCVLPC_STATSCTRL 0x00002014 |
| #define RCVLPC_STATSCTRL_ENABLE 0x00000001 |
| #define RCVLPC_STATS_ENABLE 0x00002018 |
| #define RCVDBDI_MODE 0x00002400 |
| #define RCVDBDI_MODE_ENABLE 0x00000002 |
| #define RCVDBDI_MODE_INV_RING_SZ 0x00000010 |
| #define RCVDBDI_JUMBO_BD 0x00002440 |
| #define RCVDBDI_STD_BD 0x00002450 |
| #define RCVDBDI_MINI_BD 0x00002460 |
| #define RCVDCC_MODE 0x00002800 |
| #define RCVDCC_MODE_ENABLE 0x00000002 |
| #define RCVDCC_MODE_ATTN_ENABLE 0x00000004 |
| #define RCVBDI_MODE 0x00002c00 |
| #define RCVBDI_MODE_ENABLE 0x00000002 |
| #define RCVBDI_MODE_RCB_ATTN_ENAB 0x00000004 |
| #define RCVBDI_STD_THRESH 0x00002c18 |
| #define RCVBDI_JUMBO_THRESH 0x00002c1c |
| #define RCVCC_MODE 0x00003000 |
| #define RCVCC_MODE_ENABLE 0x00000002 |
| #define RCVCC_MODE_ATTN_ENABLE 0x00000004 |
| #define RCVLSC_MODE 0x00003400 |
Definition at line 851 of file tg3.h.
Referenced by tg3_abort_hw(), tg3_setup_hw(), and tg3_stop_block().
| #define RCVLSC_MODE_ENABLE 0x00000002 |
| #define RCVLSC_MODE_ATTN_ENABLE 0x00000004 |
| #define MBFREE_MODE 0x00003800 |
Definition at line 860 of file tg3.h.
Referenced by tg3_abort_hw(), tg3_setup_hw(), and tg3_stop_block().
| #define MBFREE_MODE_ENABLE 0x00000002 |
| #define HOSTCC_MODE 0x00003c00 |
| #define HOSTCC_MODE_ENABLE 0x00000002 |
| #define HOSTCC_RXCOL_TICKS 0x00003c08 |
| #define HOSTCC_TXCOL_TICKS 0x00003c0c |
| #define LOW_TXCOL_TICKS 0x00000096 |
| #define HOSTCC_RXMAX_FRAMES 0x00003c10 |
| #define LOW_RXMAX_FRAMES 0x00000005 |
| #define HOSTCC_TXMAX_FRAMES 0x00003c14 |
| #define HOSTCC_RXCOAL_TICK_INT 0x00003c18 |
| #define HOSTCC_TXCOAL_TICK_INT 0x00003c1c |
| #define HOSTCC_RXCOAL_MAXF_INT 0x00003c20 |
| #define HOSTCC_TXCOAL_MAXF_INT 0x00003c24 |
| #define HOSTCC_STAT_COAL_TICKS 0x00003c28 |
| #define DEFAULT_STAT_COAL_TICKS 0x000f4240 |
| #define HOSTCC_STATS_BLK_HOST_ADDR 0x00003c30 |
| #define HOSTCC_STATUS_BLK_HOST_ADDR 0x00003c38 |
| #define HOSTCC_STATS_BLK_NIC_ADDR 0x00003c40 |
| #define HOSTCC_STATUS_BLK_NIC_ADDR 0x00003c44 |
| #define MEMARB_MODE 0x00004000 |
Definition at line 953 of file tg3.h.
Referenced by tg3_abort_hw(), tg3_chip_reset(), and tg3_stop_block().
| #define MEMARB_MODE_ENABLE 0x00000002 |
| #define BUFMGR_MODE 0x00004400 |
Definition at line 962 of file tg3.h.
Referenced by tg3_abort_hw(), tg3_setup_hw(), and tg3_stop_block().
| #define BUFMGR_MODE_ENABLE 0x00000002 |
| #define BUFMGR_MODE_ATTN_ENABLE 0x00000004 |
| #define BUFMGR_MB_POOL_ADDR 0x00004408 |
| #define BUFMGR_MB_POOL_SIZE 0x0000440c |
| #define BUFMGR_MB_RDMA_LOW_WATER 0x00004410 |
| #define BUFMGR_MB_MACRX_LOW_WATER 0x00004414 |
| #define BUFMGR_MB_HIGH_WATER 0x00004418 |
| #define BUFMGR_DMA_DESC_POOL_ADDR 0x0000442c |
| #define BUFMGR_DMA_DESC_POOL_SIZE 0x00004430 |
| #define BUFMGR_DMA_LOW_WATER 0x00004434 |
| #define BUFMGR_DMA_HIGH_WATER 0x00004438 |
| #define RDMAC_MODE 0x00004800 |
| #define RDMAC_MODE_ENABLE 0x00000002 |
| #define RDMAC_MODE_TGTABORT_ENAB 0x00000004 |
| #define RDMAC_MODE_MSTABORT_ENAB 0x00000008 |
| #define RDMAC_MODE_PARITYERR_ENAB 0x00000010 |
| #define RDMAC_MODE_ADDROFLOW_ENAB 0x00000020 |
| #define RDMAC_MODE_FIFOOFLOW_ENAB 0x00000040 |
| #define RDMAC_MODE_FIFOURUN_ENAB 0x00000080 |
| #define RDMAC_MODE_FIFOOREAD_ENAB 0x00000100 |
| #define RDMAC_MODE_LNGREAD_ENAB 0x00000200 |
| #define RDMAC_MODE_SPLIT_ENABLE 0x00000800 |
| #define RDMAC_MODE_FIFO_LONG_BURST 0x00030000 |
| #define WDMAC_MODE 0x00004c00 |
| #define WDMAC_MODE_ENABLE 0x00000002 |
| #define WDMAC_MODE_TGTABORT_ENAB 0x00000004 |
| #define WDMAC_MODE_MSTABORT_ENAB 0x00000008 |
| #define WDMAC_MODE_PARITYERR_ENAB 0x00000010 |
| #define WDMAC_MODE_ADDROFLOW_ENAB 0x00000020 |
| #define WDMAC_MODE_FIFOOFLOW_ENAB 0x00000040 |
| #define WDMAC_MODE_FIFOURUN_ENAB 0x00000080 |
| #define WDMAC_MODE_FIFOOREAD_ENAB 0x00000100 |
| #define WDMAC_MODE_LNGREAD_ENAB 0x00000200 |
| #define WDMAC_MODE_RX_ACCEL 0x00000400 |
| #define FTQ_RESET 0x00005c00 |
| #define FTQ_RESET_DMA_READ_QUEUE (1 << 1) |
| #define FTQ_RESET_DMA_HIGH_PRI_READ (1 << 2) |
| #define FTQ_RESET_SEND_BD_COMPLETION (1 << 4) |
| #define FTQ_RESET_DMA_WRITE (1 << 6) |
| #define FTQ_RESET_DMA_HIGH_PRI_WRITE (1 << 7) |
| #define FTQ_RESET_SEND_DATA_COMPLETION (1 << 9) |
| #define FTQ_RESET_HOST_COALESCING (1 << 10) |
| #define FTQ_RESET_MAC_TX (1 << 11) |
| #define FTQ_RESET_RX_BD_COMPLETE (1 << 13) |
| #define FTQ_RESET_RX_LIST_PLCMT (1 << 14) |
| #define FTQ_RESET_RX_DATA_COMPLETION (1 << 16) |
| #define DMAC_MODE 0x00006400 |
| #define DMAC_MODE_ENABLE 0x00000002 |
| #define GRC_MODE 0x00006800 |
| #define GRC_MODE_BSWAP_NONFRM_DATA 0x00000002 |
| #define GRC_MODE_WSWAP_NONFRM_DATA 0x00000004 |
| #define GRC_MODE_BSWAP_DATA 0x00000010 |
| #define GRC_MODE_WSWAP_DATA 0x00000020 |
| #define GRC_MODE_HOST_STACKUP 0x00010000 |
| #define GRC_MODE_HOST_SENDBDS 0x00020000 |
| #define GRC_MODE_NO_TX_PHDR_CSUM 0x00100000 |
| #define GRC_MODE_NO_RX_PHDR_CSUM 0x00800000 |
| #define GRC_MODE_IRQ_ON_MAC_ATTN 0x04000000 |
| #define GRC_MODE_4X_NIC_SEND_RINGS 0x20000000 |
| #define GRC_MISC_CFG 0x00006804 |
Definition at line 1306 of file tg3.h.
Referenced by tg3_chip_reset(), tg3_get_invariants(), and tg3_setup_hw().
| #define GRC_MISC_CFG_CORECLK_RESET 0x00000001 |
| #define GRC_MISC_CFG_PRESCALAR_SHIFT 1 |
| #define GRC_MISC_CFG_BOARD_ID_MASK 0x0001e000 |
| #define GRC_MISC_CFG_BOARD_ID_5704CIOBE 0x00004000 |
| #define GRC_MISC_CFG_BOARD_ID_5788 0x00010000 |
| #define GRC_MISC_CFG_BOARD_ID_5788M 0x00018000 |
| #define GRC_MISC_CFG_KEEP_GPHY_POWER 0x04000000 |
| #define GRC_LOCAL_CTRL 0x00006808 |
Definition at line 1323 of file tg3.h.
Referenced by tg3_nvram_init(), tg3_set_power_state_0(), and tg3_setup_hw().
| #define GRC_LCLCTRL_INT_ON_ATTN 0x00000008 |
| #define GRC_LCLCTRL_GPIO_OE1 0x00001000 |
| #define GRC_LCLCTRL_GPIO_OUTPUT1 0x00008000 |
| #define GRC_LCLCTRL_AUTO_SEEPROM 0x01000000 |
| #define GRC_RX_CPU_EVENT 0x00006810 |
| #define GRC_EEPROM_ADDR 0x00006838 |
Definition at line 1359 of file tg3.h.
Referenced by tg3_nvram_init(), and tg3_nvram_read_using_eeprom().
| #define EEPROM_ADDR_READ 0x80000000 |
| #define EEPROM_ADDR_COMPLETE 0x40000000 |
| #define EEPROM_ADDR_FSM_RESET 0x20000000 |
| #define EEPROM_ADDR_DEVID_MASK 0x1c000000 |
| #define EEPROM_ADDR_DEVID_SHIFT 26 |
| #define EEPROM_ADDR_START 0x02000000 |
| #define EEPROM_ADDR_CLKPERD_SHIFT 16 |
| #define EEPROM_ADDR_ADDR_MASK 0x0000ffff |
| #define EEPROM_ADDR_ADDR_SHIFT 0 |
| #define EEPROM_DEFAULT_CLOCK_PERIOD 0x60 |
| #define GRC_EEPROM_DATA 0x0000683c |
| #define NVRAM_CMD 0x00007000 |
| #define NVRAM_CMD_DONE 0x00000008 |
| #define NVRAM_CMD_GO 0x00000010 |
| #define NVRAM_CMD_RD 0x00000000 |
| #define NVRAM_CMD_FIRST 0x00000080 |
| #define NVRAM_CMD_LAST 0x00000100 |
| #define NVRAM_ADDR 0x0000700c |
| #define NVRAM_ADDR_MSK 0x00ffffff |
| #define NVRAM_RDDATA 0x00007010 |
| #define NVRAM_CFG1 0x00007014 |
| #define NVRAM_CFG1_FLASHIF_ENAB 0x00000001 |
| #define NVRAM_CFG1_BUFFERED_MODE 0x00000002 |
| #define NVRAM_CFG1_COMPAT_BYPASS 0x80000000 |
| #define NVRAM_SWARB 0x00007020 |
| #define SWARB_REQ_SET1 0x00000002 |
| #define SWARB_REQ_CLR1 0x00000020 |
| #define SWARB_GNT1 0x00000200 |
| #define NVRAM_BUFFERED_PAGE_SIZE 264 |
| #define NVRAM_BUFFERED_PAGE_POS 9 |
| #define NIC_SRAM_SEND_RCB 0x00000100 |
| #define NIC_SRAM_RCV_RET_RCB 0x00000200 |
| #define NIC_SRAM_STATS_BLK 0x00000300 |
| #define NIC_SRAM_STATUS_BLK 0x00000b00 |
| #define NIC_SRAM_FIRMWARE_MBOX 0x00000b50 |
| #define NIC_SRAM_FIRMWARE_MBOX_MAGIC1 0x4B657654 |
| #define NIC_SRAM_FIRMWARE_MBOX_MAGIC2 0x4861764b |
| #define NIC_SRAM_DATA_SIG 0x00000b54 |
| #define NIC_SRAM_DATA_SIG_MAGIC 0x4b657654 |
| #define NIC_SRAM_DATA_CFG 0x00000b58 |
| #define NIC_SRAM_DATA_CFG_LED_MODE_MASK 0x0000000c |
| #define NIC_SRAM_DATA_CFG_LED_TRIPLE_SPD 0x00000004 |
| #define NIC_SRAM_DATA_CFG_LED_LINK_SPD 0x00000008 |
| #define NIC_SRAM_DATA_CFG_PHY_TYPE_MASK 0x00000030 |
| #define NIC_SRAM_DATA_CFG_PHY_TYPE_FIBER 0x00000020 |
| #define NIC_SRAM_DATA_CFG_ASF_ENABLE 0x00000080 |
| #define NIC_SRAM_DATA_CFG_EEPROM_WP 0x00000100 |
| #define NIC_SRAM_DATA_CFG_MINI_PCI 0x00001000 |
| #define NIC_SRAM_DATA_CFG_FIBER_WOL 0x00004000 |
| #define NIC_SRAM_DATA_PHY_ID 0x00000b74 |
| #define NIC_SRAM_DATA_PHY_ID1_MASK 0xffff0000 |
| #define NIC_SRAM_DATA_PHY_ID2_MASK 0x0000ffff |
| #define NIC_SRAM_FW_CMD_MBOX 0x00000b78 |
| #define FWCMD_NICDRV_PAUSE_FW 0x00000002 |
| #define NIC_SRAM_FW_DRV_STATE_MBOX 0x00000c04 |
| #define DRV_STATE_START 0x00000001 |
| #define DRV_STATE_UNLOAD 0x00000002 |
| #define DRV_STATE_SUSPEND 0x00000004 |
| #define NIC_SRAM_MAC_ADDR_HIGH_MBOX 0x00000c14 |
| #define NIC_SRAM_MAC_ADDR_LOW_MBOX 0x00000c18 |
| #define NIC_SRAM_DMA_DESC_POOL_BASE 0x00002000 |
| #define NIC_SRAM_DMA_DESC_POOL_SIZE 0x00002000 |
| #define NIC_SRAM_TX_BUFFER_DESC 0x00004000 |
| #define NIC_SRAM_RX_BUFFER_DESC 0x00006000 |
| #define NIC_SRAM_MBUF_POOL_BASE 0x00008000 |
| #define NIC_SRAM_MBUF_POOL_SIZE96 0x00018000 |
| #define NIC_SRAM_MBUF_POOL_SIZE64 0x00010000 |
| #define PHY_ADDR 0x01 |
| #define TG3_BMCR_SPEED1000 0x0040 |
| #define MII_TG3_CTRL 0x09 |
Definition at line 1504 of file tg3.h.
Referenced by tg3_phy_copper_begin(), tg3_phy_probe(), tg3_phy_reset_5703_4_5(), and tg3_setup_copper_phy().
| #define MII_TG3_CTRL_ADV_1000_HALF 0x0100 |
Definition at line 1505 of file tg3.h.
Referenced by tg3_phy_copper_begin(), tg3_phy_probe(), and tg3_setup_copper_phy().
| #define MII_TG3_CTRL_ADV_1000_FULL 0x0200 |
Definition at line 1506 of file tg3.h.
Referenced by tg3_phy_copper_begin(), tg3_phy_probe(), and tg3_setup_copper_phy().
| #define MII_TG3_CTRL_AS_MASTER 0x0800 |
Definition at line 1507 of file tg3.h.
Referenced by tg3_phy_copper_begin(), tg3_phy_probe(), and tg3_phy_reset_5703_4_5().
| #define MII_TG3_CTRL_ENABLE_AS_MASTER 0x1000 |
Definition at line 1508 of file tg3.h.
Referenced by tg3_phy_copper_begin(), tg3_phy_probe(), and tg3_phy_reset_5703_4_5().
| #define MII_TG3_EXT_CTRL 0x10 |
Definition at line 1510 of file tg3.h.
Referenced by tg3_phy_reset_5703_4_5(), and tg3_setup_copper_phy().
| #define MII_TG3_EXT_CTRL_LNK3_LED_MODE 0x0002 |
| #define MII_TG3_DSP_RW_PORT 0x15 |
Definition at line 1517 of file tg3.h.
Referenced by tg3_phy_probe(), tg3_phy_reset_5703_4_5(), tg3_phy_reset_chanpat(), tg3_phy_write_and_check_testpat(), and tg3_writedsp().
| #define MII_TG3_DSP_ADDRESS 0x17 |
Definition at line 1519 of file tg3.h.
Referenced by tg3_phy_probe(), tg3_phy_reset_5703_4_5(), tg3_phy_reset_chanpat(), tg3_phy_write_and_check_testpat(), and tg3_writedsp().
| #define MII_TG3_AUX_CTRL 0x18 |
Definition at line 1521 of file tg3.h.
Referenced by tg3_init_5401phy_dsp(), tg3_phy_probe(), tg3_phy_reset_5703_4_5(), tg3_phy_set_wirespeed(), and tg3_setup_copper_phy().
| #define MII_TG3_AUX_STAT 0x19 |
| #define MII_TG3_AUX_STAT_SPDMASK 0x0700 |
| #define MII_TG3_AUX_STAT_10HALF 0x0100 |
| #define MII_TG3_AUX_STAT_10FULL 0x0200 |
| #define MII_TG3_AUX_STAT_100HALF 0x0300 |
| #define MII_TG3_AUX_STAT_100_4 0x0400 |
| #define MII_TG3_AUX_STAT_100FULL 0x0500 |
| #define MII_TG3_AUX_STAT_1000HALF 0x0600 |
| #define MII_TG3_AUX_STAT_1000FULL 0x0700 |
| #define MII_TG3_ISTAT 0x1a |
| #define MII_TG3_IMASK 0x1b |
| #define TXD_FLAG_END 0x0004 |
| #define TXD_LEN_SHIFT 16 |
| #define TXD_VLAN_TAG_SHIFT 0 |
| #define RXD_LEN_MASK 0x0000ffff |
| #define RXD_LEN_SHIFT 0 |
| #define RXD_FLAGS_SHIFT 0 |
| #define RXD_FLAG_END 0x0004 |
| #define RXD_OPAQUE_INDEX_SHIFT 0 |
| #define RXD_OPAQUE_RING_STD 0x00010000 |
| #define RXD_OPAQUE_RING_MASK 0x00070000 |
| #define TG3_HW_STATUS_SIZE 0x50 |
| #define SD_STATUS_UPDATED 0x00000001 |
| #define SD_STATUS_LINK_CHG 0x00000002 |
| #define TG3_FLAG_ENABLE_ASF 0x00000020 |
Definition at line 1944 of file tg3.h.
Referenced by tg3_phy_probe(), tg3_restart_fw(), tg3_setup_hw(), tg3_stop_fw(), and tg3_switch_clocks().
| #define TG3_FLAG_EEPROM_WRITE_PROT 0x00001000 |
| #define TG3_FLAG_NVRAM 0x00002000 |
Definition at line 1952 of file tg3.h.
Referenced by tg3_chip_reset(), tg3_nvram_init(), and tg3_nvram_read().
| #define TG3_FLAG_NVRAM_BUFFERED 0x00004000 |
| #define TG3_FLAG_RX_PAUSE 0x00008000 |
Definition at line 1954 of file tg3.h.
Referenced by tg3_link_report(), tg3_setup_fiber_phy(), and tg3_setup_flow_control().
| #define TG3_FLAG_TX_PAUSE 0x00010000 |
Definition at line 1955 of file tg3.h.
Referenced by tg3_link_report(), tg3_setup_fiber_phy(), and tg3_setup_flow_control().
| #define TG3_FLAG_PCIX_MODE 0x00020000 |
Definition at line 1956 of file tg3.h.
Referenced by tg3_chip_reset(), tg3_get_invariants(), tg3_probe(), tg3_setup_copper_phy(), tg3_setup_dma(), and tg3_setup_hw().
| #define TG3_FLAG_PCI_HIGH_SPEED 0x00040000 |
Definition at line 1957 of file tg3.h.
Referenced by tg3_get_invariants(), tg3_probe(), and tg3_setup_copper_phy().
| #define TG3_FLAG_PCI_32BIT 0x00080000 |
| #define TG3_FLAG_SERDES_WOL_CAP 0x00400000 |
| #define TG3_FLAG_JUMBO_ENABLE 0x00800000 |
| #define TG3_FLAG_10_100_ONLY 0x01000000 |
Definition at line 1963 of file tg3.h.
Referenced by tg3_get_invariants(), tg3_phy_copper_begin(), and tg3_phy_probe().
| #define TG3_FLAG_GOT_SERDES_FLOWCTL 0x20000000 |
| #define TG3_FLAG_SPLIT_MODE 0x40000000 |
| #define TG3_FLAG_INIT_COMPLETE 0x80000000 |
Definition at line 1970 of file tg3.h.
Referenced by tg3_disable(), tg3_probe(), tg3_setup_copper_phy(), and tg3_setup_fiber_phy().
| #define TG3_FLG2_SUN_5704 0x00000002 |
| #define TG3_FLG2_NO_ETH_WIRE_SPEED 0x00000004 |
Definition at line 1975 of file tg3.h.
Referenced by tg3_get_invariants(), and tg3_phy_set_wirespeed().
| #define TG3_FLG2_IS_5788 0x00000008 |
| #define TG3_FLG2_PCI_EXPRESS 0x00000040 |
Definition at line 1980 of file tg3.h.
Referenced by tg3_chip_reset(), tg3_get_invariants(), tg3_restart_fw(), and tg3_setup_hw().
| #define SPLIT_MODE_5704_MAX_REQ 3 |
| #define PHY_ID_MASK 0xfffffff0 |
Definition at line 2032 of file tg3.h.
Referenced by tg3_phy_probe(), tg3_phy_string(), and tg3_setup_copper_phy().
| #define PHY_ID_BCM5400 0x60008040 |
| #define PHY_ID_BCM5401 0x60008050 |
Definition at line 2034 of file tg3.h.
Referenced by tg3_phy_probe(), tg3_phy_string(), and tg3_setup_copper_phy().
| #define PHY_ID_BCM5411 0x60008070 |
| #define PHY_ID_BCM5701 0x60008110 |
| #define PHY_ID_BCM5703 0x60008160 |
| #define PHY_ID_BCM5704 0x60008190 |
| #define PHY_ID_BCM5705 0x600081a0 |
| #define PHY_ID_BCM5750 0x60008180 |
| #define PHY_ID_BCM5787 0xbc050ce0 |
| #define PHY_ID_BCM8002 0x60010140 |
| #define PHY_ID_BCM5751 0x00206180 |
| #define PHY_ID_SERDES 0xfeedbee0 |
Definition at line 2044 of file tg3.h.
Referenced by tg3_phy_probe(), tg3_phy_string(), tg3_poll_link(), tg3_setup_hw(), and tg3_setup_phy().
| #define PHY_ID_INVALID 0xffffffff |
| #define PHY_ID_REV_MASK 0x0000000f |
| #define PHY_REV_BCM5401_B0 0x1 |
| #define KNOWN_PHY_ID | ( | X | ) |
Value:
((X) == PHY_ID_BCM5400 || (X) == PHY_ID_BCM5401 || \ (X) == PHY_ID_BCM5411 || (X) == PHY_ID_BCM5701 || \ (X) == PHY_ID_BCM5703 || (X) == PHY_ID_BCM5704 || \ (X) == PHY_ID_BCM5705 || (X) == PHY_ID_BCM5750 || \ (X) == PHY_ID_BCM5751 || (X) == PHY_ID_BCM5787 || \ (X) == PHY_ID_BCM8002 || (X) == PHY_ID_SERDES)
Definition at line 2064 of file tg3.h.
Referenced by tg3_phy_probe().
| typedef unsigned long dma_addr_t |
| enum phy_led_mode |
Definition at line 1833 of file tg3.h.
01833 { 01834 led_mode_auto, 01835 led_mode_three_link, 01836 led_mode_link10 01837 };
| FILE_LICENCE | ( | GPL2_ONLY | ) |
1.5.7.1