tg3
pci_write_config_dword(tg3.pdev, TG3PCI_REG_BASE_ADDR, off);
pci_write_config_dword(tg3.pdev, TG3PCI_REG_DATA, val);
#define tw32_mailbox(reg, val) writel(((val) & 0xffffffff), tg3.regs + (reg))
#define tw16(reg,val) writew(((val) & 0xffff), tg3.regs + (reg))
#define tw8(reg,val) writeb(((val) & 0xff), tg3.regs + (reg))
#define tr32(reg) readl(tg3.regs + (reg))
#define tr16(reg) readw(tg3.regs + (reg))
#define tr8(reg) readb(tg3.regs + (reg))
static int tg3_setup_fiber_phy(struct tg3 *tp)
pci_write_config_dword(tg3.pdev, TG3PCI_MEM_WIN_BASE_ADDR, off);
pci_write_config_dword(tg3.pdev, TG3PCI_MEM_WIN_DATA, val);
pci_write_config_dword(tg3.pdev, TG3PCI_MEM_WIN_BASE_ADDR, 0);
pci_write_config_dword(tg3.pdev, TG3PCI_MEM_WIN_BASE_ADDR, off);
pci_read_config_dword(tg3.pdev, TG3PCI_MEM_WIN_DATA, val);
static int tg3_setup_phy(struct tg3 *tp)
pci_write_config_dword(tg3.pdev, TG3PCI_MEM_WIN_BASE_ADDR, 0);
static int tg3_stop_block(struct tg3 *tp, unsigned long ofs, uint32_t enable_bit)
static void tg3_disable_ints(struct tg3 *tp)
static int tg3_abort_hw(struct tg3 *tp)
static void tg3_switch_clocks(struct tg3 *tp)
static void tg3_chip_reset(struct tg3 *tp)
static void tg3_stop_fw(struct tg3 *tp)
static int tg3_restart_fw(struct tg3 *tp, uint32_t state)
static int tg3_halt(struct tg3 *tp)
static void __tg3_set_mac_addr(struct tg3 *tp)
static void tg3_set_bdinfo(struct tg3 *tp, uint32_t bdinfo_addr,
static void tg3_init_rings(struct tg3 *tp)
static int tg3_readphy(struct tg3 *tp, int reg, uint32_t *val)
static int tg3_setup_hw(struct tg3 *tp)
static int tg3_writephy(struct tg3 *tp, int reg, uint32_t val)
static void tg3_nvram_init(struct tg3 *tp)
struct tg3 *tp __unused, uint32_t offset, uint32_t *val)
static int tg3_nvram_read(struct tg3 *tp, uint32_t offset, uint32_t *val)
static int tg3_phy_probe(struct tg3 *tp)
static int tg3_writedsp(struct tg3 *tp, uint16_t addr, uint16_t val)
static void tg3_read_partno(struct tg3 *tp)
static void tg3_phy_set_wirespeed(struct tg3 *tp)
struct tg3 tg3;
static int tg3_get_invariants(struct tg3 *tp)
static int tg3_bmcr_reset(struct tg3 *tp)
static int tg3_get_device_address(struct tg3 *tp)
static int tg3_setup_dma(struct tg3 *tp)
static void tg3_init_link_config(struct tg3 *tp)
static const char * tg3_phy_string(struct tg3 *tp)
static void tg3_poll_link(struct tg3 *tp)
static void tg3_ack_irqs(struct tg3 *tp)
struct tg3 *tp = &tg3;
static int tg3_wait_macro_done(struct tg3 *tp)
static void tg3_set_txd(struct tg3 *tp, int entry,
struct tg3 *tp;
tp = &tg3;
struct tg3 *tp = &tg3;
struct tg3 *tp = &tg3;
static int tg3_phy_write_and_check_testpat(struct tg3 *tp, int *resetp)
static int tg3_phy_reset_chanpat(struct tg3 *tp)
static int tg3_phy_reset_5703_4_5(struct tg3 *tp)
static int tg3_phy_reset(struct tg3 *tp)
static void tg3_set_power_state_0(struct tg3 *tp)
static void tg3_link_report(struct tg3 *tp)
static void tg3_setup_flow_control(struct tg3 *tp, uint32_t local_adv, uint32_t remote_adv)
struct tg3 *tp __unused, uint32_t val, uint8_t *speed, uint8_t *duplex)
static int tg3_phy_copper_begin(struct tg3 *tp)
static int tg3_init_5401phy_dsp(struct tg3 *tp)
static int tg3_setup_copper_phy(struct tg3 *tp)
static int tg3_fiber_aneg_smachine(struct tg3 *tp,