iPXE
|
#include "atl1e.h"
Go to the source code of this file.
Macros | |
#define | TX_DESC_COUNT 32 /* TX descriptors, minimum 32 */ |
#define | RX_MEM_SIZE 8192 /* RX area size, minimum 8kb */ |
#define | MAX_FRAME_SIZE 1500 /* Maximum MTU supported, minimum 1500 */ |
#define | PREAMBLE_LEN 7 |
#define | RX_JUMBO_THRESH |
#define | IMT_VAL 100 /* interrupt moderator timer, us */ |
#define | ICT_VAL 50000 /* interrupt clear timer, us */ |
#define | SMB_TIMER 200000 |
#define | RRD_THRESH 1 /* packets to queue before interrupt */ |
#define | TPD_BURST 5 |
#define | TPD_THRESH (TX_DESC_COUNT / 2) |
#define | RX_COUNT_DOWN 4 |
#define | TX_COUNT_DOWN (IMT_VAL * 4 / 3) |
#define | DMAR_DLY_CNT 15 |
#define | DMAW_DLY_CNT 4 |
#define | PCI_DEVICE_ID_ATTANSIC_L1E 0x1026 |
Variables | |
static struct pci_device_id | atl1e_pci_tbl [] |
static const u16 | atl1e_rx_page_vld_regs [AT_PAGE_NUM_PER_QUEUE] |
static const u16 | atl1e_rx_page_lo_addr_regs [AT_PAGE_NUM_PER_QUEUE] |
static const u16 | atl1e_rx_page_write_offset_regs [AT_PAGE_NUM_PER_QUEUE] |
static const u16 | atl1e_pay_load_size [] |
static struct net_device_operations | atl1e_netdev_ops |
struct pci_driver atl1e_driver | __pci_driver |
#define MAX_FRAME_SIZE 1500 /* Maximum MTU supported, minimum 1500 */ |
#define RX_JUMBO_THRESH |
#define TPD_THRESH (TX_DESC_COUNT / 2) |
FILE_LICENCE | ( | GPL2_OR_LATER | ) |
|
static |
Definition at line 611 of file atl1e.c.
References atl1e_hw::adapter, AT_WRITE_REG, FULL_DUPLEX, atl1e_adapter::hw, atl1e_adapter::link_duplex, atl1e_adapter::link_speed, MAC_CTRL_ADD_CRC, MAC_CTRL_BC_EN, MAC_CTRL_DUPLX, MAC_CTRL_MC_ALL_EN, MAC_CTRL_PAD, MAC_CTRL_PRMLEN_MASK, MAC_CTRL_PRMLEN_SHIFT, MAC_CTRL_RX_EN, MAC_CTRL_RX_FLOW, MAC_CTRL_SPEED_1000, MAC_CTRL_SPEED_10_100, MAC_CTRL_SPEED_SHIFT, MAC_CTRL_TX_EN, MAC_CTRL_TX_FLOW, PREAMBLE_LEN, REG_MAC_CTRL, SPEED_1000, u32, and value.
Referenced by atl1e_check_link().
|
inlinestatic |
Definition at line 92 of file atl1e.c.
References AT_WRITE_FLUSH, AT_WRITE_REG, atl1e_adapter::hw, IMR_NORMAL_MASK, REG_IMR, and REG_ISR.
Referenced by atl1e_irq().
|
inlinestatic |
Definition at line 103 of file atl1e.c.
References AT_WRITE_FLUSH, AT_WRITE_REG, atl1e_adapter::hw, and REG_IMR.
Referenced by atl1e_irq(), and atl1e_up().
|
inlinestatic |
Definition at line 113 of file atl1e.c.
References AT_WRITE_FLUSH, AT_WRITE_REG, atl1e_adapter::hw, REG_IMR, and REG_ISR.
Referenced by atl1e_poll().
|
static |
Definition at line 120 of file atl1e.c.
References atl1e_down(), and atl1e_up().
Referenced by atl1e_clean_rx_irq(), and atl1e_poll().
|
static |
Definition at line 126 of file atl1e.c.
References atl1e_hw::adapter, AT_READ_REG, AT_WRITE_REG, atl1e_get_speed_and_duplex(), atl1e_read_phy_reg(), atl1e_setup_mac_ctrl(), BMSR_LSTATUS, DBG, FULL_DUPLEX, atl1e_adapter::hw, atl1e_adapter::link_duplex, atl1e_adapter::link_speed, MAC_CTRL_RX_EN, MII_BMSR, net_device::name, netdev, atl1e_adapter::netdev, netdev_link_down(), netdev_link_ok(), netdev_link_up(), REG_MAC_CTRL, SPEED_0, and value.
Referenced by atl1e_poll().
|
static |
Definition at line 173 of file atl1e.c.
References atl1e_read_phy_reg(), atl1e_adapter::hw, MDIO_REG_ADDR_MASK, netdev, netdev_priv(), and result.
Referenced by atl1e_probe().
|
static |
Definition at line 183 of file atl1e.c.
References atl1e_write_phy_reg(), atl1e_adapter::hw, MDIO_REG_ADDR_MASK, netdev, netdev_priv(), and val.
Referenced by atl1e_probe().
|
static |
Definition at line 191 of file atl1e.c.
References cmd, mdelay(), PCI_COMMAND, PCI_COMMAND_MASTER, PCI_COMMAND_MEM, pci_read_config_word(), pci_write_config_dword(), pci_write_config_word(), atl1e_adapter::pdev, and REG_PM_CTRLSTAT.
Referenced by atl1e_probe().
|
static |
Definition at line 216 of file atl1e.c.
References atl1e_hw::adapter, AT_READ_REG, athr_l1e, athr_l2e_revA, athr_l2e_revB, atl1e_dma_req_1024, FULL_DUPLEX, atl1e_adapter::hw, atl1e_adapter::link_duplex, atl1e_adapter::link_speed, pci_read_config_byte(), PCI_REVISION, atl1e_adapter::pdev, PHY_STATUS_100M, PHY_STATUS_EMI_CA, REG_PHY_STATUS, and SPEED_0.
Referenced by atl1e_probe().
|
static |
Definition at line 258 of file atl1e.c.
References atl1e_tx_buffer::dma, if(), index, atl1e_tx_buffer::iob, memset(), atl1e_adapter::netdev, netdev_tx_complete(), NULL, atl1e_tx_ring::tx_buffer, tx_ring, and atl1e_adapter::tx_ring.
Referenced by atl1e_down(), and atl1e_free_ring_resources().
|
static |
Definition at line 288 of file atl1e.c.
References atl1e_rx_page::addr, AT_PAGE_NUM_PER_QUEUE, if(), memset(), NULL, atl1e_adapter::ring_vir_addr, atl1e_rx_page_desc::rx_page, atl1e_rx_ring::rx_page_desc, rx_ring, and atl1e_adapter::rx_ring.
Referenced by atl1e_down(), and atl1e_free_ring_resources().
|
static |
Definition at line 307 of file atl1e.c.
References AT_PAGE_NUM_PER_QUEUE, atl1e_tx_ring::count, atl1e_rx_ring::real_page_size, atl1e_adapter::rx_ring, atl1e_adapter::tx_ring, and u32.
Referenced by atl1e_init_ring_resources().
|
static |
Definition at line 320 of file atl1e.c.
References atl1e_cal_ring_size(), atl1e_rx_ring::desc, ETH_FCS_LEN, ETH_HLEN, MAX_FRAME_SIZE, NULL, atl1e_rx_ring::page_size, atl1e_adapter::ring_size, atl1e_adapter::ring_vir_addr, rx_ring, atl1e_adapter::rx_ring, and VLAN_HLEN.
Referenced by atl1e_open().
|
static |
Definition at line 339 of file atl1e.c.
References AT_PAGE_NUM_PER_QUEUE, NULL, atl1e_rx_page::read_offset, atl1e_rx_page_desc::rx_nxseq, atl1e_rx_page_desc::rx_page, rx_ring, atl1e_adapter::rx_ring, atl1e_rx_page_desc::rx_using, tx_ring, atl1e_adapter::tx_ring, and atl1e_rx_page::write_offset_addr.
Referenced by atl1e_up().
|
static |
Definition at line 367 of file atl1e.c.
References atl1e_clean_rx_ring(), atl1e_clean_tx_ring(), free, free_phys(), NULL, atl1e_adapter::ring_dma, atl1e_adapter::ring_size, atl1e_adapter::ring_vir_addr, atl1e_tx_ring::tx_buffer, and atl1e_adapter::tx_ring.
Referenced by atl1e_close(), atl1e_open(), atl1e_remove(), and atl1e_setup_ring_resources().
|
static |
Definition at line 390 of file atl1e.c.
References atl1e_rx_page::addr, AT_PAGE_NUM_PER_QUEUE, atl1e_free_ring_resources(), DBG, atl1e_rx_page::dma, EINVAL, ENOMEM, malloc_phys(), memset(), net_device::name, atl1e_adapter::netdev, NULL, offset, atl1e_adapter::ring_dma, atl1e_adapter::ring_size, atl1e_adapter::ring_vir_addr, atl1e_rx_page_desc::rx_page, rx_ring, atl1e_adapter::rx_ring, size, tx_ring, atl1e_adapter::tx_ring, u32, virt_to_bus(), atl1e_rx_page::write_offset_addr, atl1e_rx_page::write_offset_dma, and zalloc().
Referenced by atl1e_open().
|
inlinestatic |
Definition at line 473 of file atl1e.c.
References atl1e_hw::adapter, AT_PAGE_NUM_PER_QUEUE, AT_WRITE_REG, AT_WRITE_REGB, atl1e_rx_page_lo_addr_regs, atl1e_rx_page_vld_regs, atl1e_rx_page_write_offset_regs, atl1e_adapter::hw, NULL, REG_DESC_BASE_ADDR_HI, REG_HOST_RXFPAGE_SIZE, REG_HOST_TX_CMB_LO, REG_LOAD_PTR, REG_RXF0_BASE_ADDR_HI, REG_TPD_BASE_ADDR_LO, REG_TPD_RING_SIZE, rx_ring, atl1e_adapter::rx_ring, tx_ring, and atl1e_adapter::tx_ring.
Referenced by atl1e_configure().
|
inlinestatic |
Definition at line 515 of file atl1e.c.
References atl1e_hw::adapter, AT_READ_REG, AT_WRITE_REG, AT_WRITE_REGW, athr_l2e_revB, atl1e_pay_load_size, DEVICE_CTRL_MAX_PAYLOAD_MASK, DEVICE_CTRL_MAX_PAYLOAD_SHIFT, DEVICE_CTRL_MAX_RREQ_SZ_MASK, DEVICE_CTRL_MAX_RREQ_SZ_SHIFT, atl1e_hw::dmar_block, atl1e_hw::dmaw_block, ETH_FCS_LEN, ETH_HLEN, atl1e_adapter::hw, if(), MAX_FRAME_SIZE, REG_DEVICE_CTRL, REG_TX_EARLY_TH, REG_TXQ_CTRL, TPD_BURST, TXQ_CTRL_EN, TXQ_CTRL_ENH_MODE, TXQ_CTRL_NUM_TPD_BURST_MASK, TXQ_CTRL_NUM_TPD_BURST_SHIFT, and VLAN_HLEN.
Referenced by atl1e_configure().
|
inlinestatic |
Definition at line 553 of file atl1e.c.
References atl1e_hw::adapter, AT_READ_REG, AT_WRITE_REG, AT_WRITE_REGW, athr_l2e_revB, atl1e_adapter::hw, if(), REG_BASE_CPU_NUMBER, REG_IDT_TABLE, REG_RXQ_CTRL, REG_RXQ_JMBOSZ_RRDTIM, REG_RXQ_RXF_PAUSE_THRESH, REG_SRAM_RXF_LEN, RX_JUMBO_THRESH, RXQ_CTRL_CUT_THRU_EN, RXQ_CTRL_EN, RXQ_CTRL_PBA_ALIGN_32, RXQ_JMBO_LKAH_MASK, RXQ_JMBO_LKAH_SHIFT, RXQ_JMBOSZ_TH_MASK, RXQ_JMBOSZ_TH_SHIFT, RXQ_RXF_PAUSE_TH_HI_MASK, RXQ_RXF_PAUSE_TH_HI_SHIFT, RXQ_RXF_PAUSE_TH_LO_MASK, and RXQ_RXF_PAUSE_TH_LO_SHIFT.
Referenced by atl1e_configure().
|
inlinestatic |
Definition at line 591 of file atl1e.c.
References atl1e_hw::adapter, AT_WRITE_REG, DMA_CTRL_DMAR_BURST_LEN_MASK, DMA_CTRL_DMAR_BURST_LEN_SHIFT, DMA_CTRL_DMAR_DLY_CNT_MASK, DMA_CTRL_DMAR_DLY_CNT_SHIFT, DMA_CTRL_DMAR_OUT_ORDER, DMA_CTRL_DMAR_REQ_PRI, DMA_CTRL_DMAW_BURST_LEN_MASK, DMA_CTRL_DMAW_BURST_LEN_SHIFT, DMA_CTRL_DMAW_DLY_CNT_MASK, DMA_CTRL_DMAW_DLY_CNT_SHIFT, DMA_CTRL_RXCMB_EN, DMAR_DLY_CNT, DMAW_DLY_CNT, atl1e_adapter::hw, REG_DMA_CTRL, and u32.
Referenced by atl1e_configure().
|
static |
Definition at line 643 of file atl1e.c.
References atl1e_hw::adapter, AT_READ_REG, AT_WRITE_REG, AT_WRITE_REG_ARRAY, AT_WRITE_REGW, atl1e_configure_des_ring(), atl1e_configure_dma(), atl1e_configure_rx(), atl1e_configure_tx(), atl1e_hw_set_mac_addr(), DBG, ETH_FCS_LEN, ETH_HLEN, atl1e_adapter::hw, ICT_VAL, IMT_VAL, ISR_PHY_LINKDOWN, MASTER_CTRL_ITIMER2_EN, MASTER_CTRL_ITIMER_EN, MASTER_CTRL_LED_MODE, MAX_FRAME_SIZE, REG_CMBDISDMA_TIMER, REG_IRQ_MODU_TIMER2_INIT, REG_IRQ_MODU_TIMER_INIT, REG_ISR, REG_MASTER_CTRL, REG_MTU, REG_RX_HASH_TABLE, REG_SMB_STAT_TIMER, REG_TRIG_RRD_THRESH, REG_TRIG_RXTIMER, REG_TRIG_TPD_THRESH, REG_TRIG_TXTIMER, REG_WOL_CTRL, RRD_THRESH, RX_COUNT_DOWN, SMB_TIMER, TPD_THRESH, TX_COUNT_DOWN, and VLAN_HLEN.
Referenced by atl1e_up().
|
inlinestatic |
Definition at line 707 of file atl1e.c.
References atl1e_hw::adapter, atl1e_read_phy_reg(), atl1e_adapter::hw, and MII_INT_STATUS.
Referenced by atl1e_poll().
|
static |
Definition at line 714 of file atl1e.c.
References AT_READ_REGW, atl1e_tx_buffer::dma, atl1e_adapter::hw, atl1e_tx_buffer::iob, atl1e_adapter::netdev, netdev_tx_complete(), atl1e_tx_ring::next_to_clean, NULL, REG_TPD_CONS_IDX, atl1e_tx_ring::tx_buffer, tx_ring, and atl1e_adapter::tx_ring.
Referenced by atl1e_poll().
|
static |
Definition at line 740 of file atl1e.c.
References return, atl1e_rx_page_desc::rx_page, atl1e_rx_ring::rx_page_desc, atl1e_adapter::rx_ring, and atl1e_rx_page_desc::rx_using.
Referenced by atl1e_clean_rx_irq().
|
static |
Definition at line 749 of file atl1e.c.
References atl1e_rx_page::addr, alloc_iob(), AT_WRITE_REGB, atl1e_get_rx_page(), atl1e_reset(), atl1e_rx_page_vld_regs, io_buffer::data, DBG, EIO, atl1e_recv_ret_status::err_flag, ETH_FCS_LEN, atl1e_adapter::hw, iob_put, iob_reserve, memcpy(), net_device::name, NET_IP_ALIGN, netdev, atl1e_adapter::netdev, netdev_link_ok(), netdev_rx(), netdev_rx_err(), NULL, atl1e_recv_ret_status::pkt_flag, atl1e_rx_page::read_offset, RRS_ERR_BAD_CRC, RRS_ERR_CODE, RRS_ERR_DRIBBLE, RRS_ERR_TRUNC, RRS_IS_ERR_FRAME, RRS_PKT_SIZE_MASK, RRS_PKT_SIZE_SHIFT, atl1e_rx_ring::rx_page_desc, rx_ring, atl1e_adapter::rx_ring, atl1e_recv_ret_status::seq_num, u32, atl1e_recv_ret_status::word1, and atl1e_rx_page::write_offset_addr.
Referenced by atl1e_poll().
|
static |
Definition at line 842 of file atl1e.c.
References atl1e_hw::adapter, AT_READ_REG, AT_WRITE_REG, atl1e_check_link(), atl1e_clean_rx_irq(), atl1e_clean_tx_irq(), atl1e_clear_phy_int(), atl1e_irq_reset(), atl1e_reset(), DBG, atl1e_adapter::hw, IMR_NORMAL_MASK, ISR_DIS_INT, ISR_DMAR_TO_RST, ISR_DMAW_TO_RST, ISR_GPHY, ISR_MANUAL, ISR_PHY_LINKDOWN, ISR_RX_EVENT, ISR_TX_EVENT, netdev, atl1e_adapter::netdev, netdev_link_ok(), netdev_priv(), REG_ISR, and status.
|
inlinestatic |
Definition at line 899 of file atl1e.c.
References atl1e_tx_ring::next_to_clean, atl1e_tx_ring::next_to_use, tx_ring, and atl1e_adapter::tx_ring.
Referenced by atl1e_xmit_frame().
|
static |
Definition at line 918 of file atl1e.c.
References memset(), atl1e_tx_ring::next_to_use, tx_ring, and atl1e_adapter::tx_ring.
Referenced by atl1e_xmit_frame().
|
static |
Definition at line 932 of file atl1e.c.
References tx_ring, and atl1e_adapter::tx_ring.
Referenced by atl1e_tx_map().
|
static |
Definition at line 939 of file atl1e.c.
References atl1e_get_tx_buffer(), atl1e_tpd_desc::buffer_addr, cpu_to_le32, cpu_to_le64, io_buffer::data, atl1e_tx_buffer::dma, atl1e_tx_buffer::iob, iob_len(), atl1e_tx_buffer::length, NULL, TPD_BUFLEN_MASK, TPD_BUFLEN_SHIFT, TPD_EOP_SHIFT, virt_to_bus(), atl1e_tpd_desc::word2, and atl1e_tpd_desc::word3.
Referenced by atl1e_xmit_frame().
|
static |
Definition at line 956 of file atl1e.c.
References AT_WRITE_REG, atl1e_adapter::hw, REG_MB_TPD_PROD_IDX, tx_ring, atl1e_adapter::tx_ring, and wmb().
Referenced by atl1e_xmit_frame().
|
static |
Definition at line 964 of file atl1e.c.
References atl1e_get_tpd(), atl1e_tpd_avail(), atl1e_tx_map(), atl1e_tx_queue(), EBUSY, EINVAL, netdev, netdev_link_ok(), and netdev_priv().
int atl1e_up | ( | struct atl1e_adapter * | adapter | ) |
Definition at line 986 of file atl1e.c.
References AT_READ_REG, AT_WRITE_REG, atl1e_configure(), atl1e_init_hw(), atl1e_init_ring_ptrs(), atl1e_irq_disable(), EIO, ETH_ALEN, atl1e_adapter::hw, net_device::ll_addr, atl1e_hw::mac_addr, MASTER_CTRL_MANUAL_INT, memcpy(), netdev, atl1e_adapter::netdev, REG_MASTER_CTRL, and val.
Referenced by atl1e_open(), and atl1e_reset().
void atl1e_irq | ( | struct net_device * | netdev, |
int | enable | ||
) |
Definition at line 1014 of file atl1e.c.
References atl1e_irq_disable(), atl1e_irq_enable(), netdev, and netdev_priv().
void atl1e_down | ( | struct atl1e_adapter * | adapter | ) |
Definition at line 1024 of file atl1e.c.
References atl1e_clean_rx_ring(), atl1e_clean_tx_ring(), atl1e_reset_hw(), atl1e_adapter::hw, atl1e_adapter::link_duplex, atl1e_adapter::link_speed, mdelay(), netdev, atl1e_adapter::netdev, netdev_link_down(), and SPEED_0.
Referenced by atl1e_close(), and atl1e_reset().
|
static |
Definition at line 1052 of file atl1e.c.
References atl1e_free_ring_resources(), atl1e_init_ring_resources(), atl1e_reset_hw(), atl1e_setup_ring_resources(), atl1e_up(), atl1e_adapter::hw, netdev, and netdev_priv().
|
static |
Definition at line 1087 of file atl1e.c.
References atl1e_down(), atl1e_free_ring_resources(), netdev, and netdev_priv().
|
static |
Definition at line 1103 of file atl1e.c.
References atl1e_netdev_ops, pci_device::dev, net_device::dev, netdev, netdev_init(), and pci_set_drvdata().
Referenced by atl1e_probe().
|
static |
Definition at line 1122 of file atl1e.c.
References atl1e_hw::adapter, adjust_pci_device(), alloc_etherdev(), atl1e_init_netdev(), atl1e_mdio_read(), atl1e_mdio_write(), atl1e_phy_init(), atl1e_read_mac_addr(), atl1e_reset_hw(), atl1e_restart_autoneg(), atl1e_setup_pcicmd(), atl1e_sw_init(), atl1e_adapter::bd_number, bus_to_virt(), atl1e_tx_ring::count, DBG, mii_if_info::dev, EIO, ENOMEM, ETH_ALEN, atl1e_adapter::hw, atl1e_hw::hw_addr, net_device::hw_addr, net_device::ll_addr, atl1e_hw::mac_addr, mii_if_info::mdio_read, MDIO_REG_ADDR_MASK, mii_if_info::mdio_write, pci_device::membase, memcpy(), atl1e_adapter::mii, net_device::name, netdev, atl1e_adapter::netdev, netdev_nullify(), netdev_priv(), netdev_put(), NULL, atl1e_rx_ring::page_size, atl1e_adapter::pdev, atl1e_hw::perm_mac_addr, mii_if_info::phy_id_mask, mii_if_info::reg_num_mask, register_netdev(), RX_MEM_SIZE, atl1e_adapter::rx_ring, TX_DESC_COUNT, and atl1e_adapter::tx_ring.
|
static |
Definition at line 1227 of file atl1e.c.
References atl1e_force_ps(), atl1e_free_ring_resources(), atl1e_adapter::hw, netdev, netdev_nullify(), netdev_priv(), netdev_put(), pci_get_drvdata(), and unregister_netdev().
int atl1e_check_eeprom_exist | ( | struct atl1e_hw * | hw | ) |
Definition at line 1252 of file atl1e.c.
References AT_READ_REG, AT_READ_REGW, AT_WRITE_REG, REG_PCIE_CAP_LIST, REG_SPI_FLASH_CTRL, SPI_FLASH_CTRL_EN_VPD, and value.
Referenced by atl1e_get_permanent_address().
void atl1e_hw_set_mac_addr | ( | struct atl1e_hw * | hw | ) |
Definition at line 1265 of file atl1e.c.
References AT_WRITE_REG_ARRAY, REG_MAC_STA_ADDR, u32, and value.
Referenced by atl1e_configure().
|
static |
Definition at line 1288 of file atl1e.c.
References AT_ERR_TIMEOUT, AT_READ_REG, AT_TWSI_EEPROM_TIMEOUT, AT_WRITE_REG, atl1e_check_eeprom_exist(), ETH_ALEN, mdelay(), memcpy(), REG_MAC_STA_ADDR, REG_TWSI_CTRL, and TWSI_CTRL_SW_LDSTART.
Referenced by atl1e_read_mac_addr().
void atl1e_force_ps | ( | struct atl1e_hw * | hw | ) |
Definition at line 1324 of file atl1e.c.
References AT_WRITE_REGW, GPHY_CTRL_EXT_RESET, GPHY_CTRL_PW_WOL_DIS, and REG_GPHY_CTRL.
Referenced by atl1e_remove().
int atl1e_read_mac_addr | ( | struct atl1e_hw * | hw | ) |
Definition at line 1335 of file atl1e.c.
References AT_ERR_EEPROM, atl1e_get_permanent_address(), and memcpy().
Referenced by atl1e_probe().
Definition at line 1351 of file atl1e.c.
References AT_ERR_PHY, AT_READ_REG, AT_WRITE_REG, MDIO_BUSY, MDIO_CLK_25_4, MDIO_CLK_SEL_SHIFT, MDIO_REG_ADDR_MASK, MDIO_REG_ADDR_SHIFT, MDIO_RW, MDIO_START, MDIO_SUP_PREAMBLE, MDIO_WAIT_TIMES, REG_MDIO_CTRL, u16, u32, udelay(), val, and wmb().
Referenced by atl1e_check_link(), atl1e_clear_phy_int(), atl1e_get_speed_and_duplex(), and atl1e_mdio_read().
Definition at line 1385 of file atl1e.c.
References AT_ERR_PHY, AT_READ_REG, AT_WRITE_REG, MDIO_BUSY, MDIO_CLK_25_4, MDIO_CLK_SEL_SHIFT, MDIO_DATA_MASK, MDIO_DATA_SHIFT, MDIO_REG_ADDR_MASK, MDIO_REG_ADDR_SHIFT, MDIO_START, MDIO_SUP_PREAMBLE, MDIO_WAIT_TIMES, REG_MDIO_CTRL, u32, udelay(), val, and wmb().
Referenced by atl1e_mdio_write(), atl1e_phy_commit(), atl1e_phy_init(), atl1e_phy_setup_autoneg_adv(), and atl1e_restart_autoneg().
|
static |
Definition at line 1416 of file atl1e.c.
References AT_READ_REG, AT_WRITE_REG, and value.
Referenced by atl1e_init_hw().
|
static |
Definition at line 1434 of file atl1e.c.
References athr_l1e, athr_l2e_revA, atl1e_write_phy_reg(), MII_ADVERTISE, MII_AR_100TX_FD_CAPS, MII_AR_100TX_HD_CAPS, MII_AR_10T_FD_CAPS, MII_AR_10T_HD_CAPS, MII_AR_ASM_DIR, MII_AR_DEFAULT_CAP_MASK, MII_AR_PAUSE, MII_AR_SPEED_MASK, MII_AT001_CR, MII_AT001_CR_1000T_DEFAULT_CAP_MASK, MII_AT001_CR_1000T_FD_CAPS, and MII_AT001_CR_1000T_SPEED_MASK.
Referenced by atl1e_phy_init().
int atl1e_phy_commit | ( | struct atl1e_hw * | hw | ) |
Definition at line 1491 of file atl1e.c.
References AT_READ_REG, atl1e_write_phy_reg(), DBG, mdelay(), MDIO_BUSY, MDIO_START, MII_BMCR, MII_CR_AUTO_NEG_EN, MII_CR_RESET, MII_CR_RESTART_AUTO_NEG, REG_MDIO_CTRL, and val.
Referenced by atl1e_phy_init().
int atl1e_phy_init | ( | struct atl1e_hw * | hw | ) |
Definition at line 1522 of file atl1e.c.
References AT_WRITE_REGW, atl1e_phy_commit(), atl1e_phy_setup_autoneg_adv(), atl1e_restart_autoneg(), atl1e_write_phy_reg(), DBG, GPHY_CTRL_DEFAULT, GPHY_CTRL_EXT_RESET, mdelay(), MII_DBG_ADDR, MII_DBG_DATA, MII_INT_CTRL, and REG_GPHY_CTRL.
Referenced by atl1e_init_hw(), and atl1e_probe().
Definition at line 1614 of file atl1e.c.
References AT_ERR_TIMEOUT, AT_HW_MAX_IDLE_DELAY, AT_READ_REG, AT_WRITE_REG, DBG, MASTER_CTRL_LED_MODE, MASTER_CTRL_SOFT_RST, mdelay(), PCI_COMMAND, PCI_COMMAND_IO, PCI_COMMAND_MASTER, PCI_COMMAND_MEM, pci_read_config_word(), pci_write_config_word(), atl1e_adapter::pdev, REG_IDLE_STATUS, REG_MASTER_CTRL, timeout(), and wmb().
Referenced by atl1e_down(), atl1e_open(), and atl1e_probe().
int atl1e_init_hw | ( | struct atl1e_hw * | hw | ) |
Definition at line 1670 of file atl1e.c.
References AT_WRITE_REG, AT_WRITE_REG_ARRAY, atl1e_init_pcie(), atl1e_phy_init(), and REG_RX_HASH_TABLE.
Referenced by atl1e_up().
Definition at line 1693 of file atl1e.c.
References AT_ERR_PHY_RES, AT_ERR_PHY_SPEED, atl1e_read_phy_reg(), FULL_DUPLEX, HALF_DUPLEX, MII_AT001_PSSR, MII_AT001_PSSR_1000MBS, MII_AT001_PSSR_100MBS, MII_AT001_PSSR_10MBS, MII_AT001_PSSR_DPLX, MII_AT001_PSSR_SPD_DPLX_RESOLVED, MII_AT001_PSSR_SPEED, SPEED_10, SPEED_100, and SPEED_1000.
Referenced by atl1e_check_link().
int atl1e_restart_autoneg | ( | struct atl1e_hw * | hw | ) |
Definition at line 1729 of file atl1e.c.
References athr_l1e, athr_l2e_revA, atl1e_write_phy_reg(), MII_ADVERTISE, MII_AT001_CR, MII_BMCR, MII_CR_AUTO_NEG_EN, MII_CR_RESET, and MII_CR_RESTART_AUTO_NEG.
Referenced by atl1e_phy_init(), and atl1e_probe().
|
static |
|
static |
Definition at line 67 of file atl1e.c.
Referenced by atl1e_clean_rx_irq(), and atl1e_configure_des_ring().
|
static |
|
static |
|
static |
Definition at line 84 of file atl1e.c.
Referenced by atl1e_configure_tx().
|
static |
Definition at line 1095 of file atl1e.c.
Referenced by atl1e_init_netdev().
struct pci_driver atl1e_driver __pci_driver |