bge_softc
bge_eeprom_getbyte(struct bge_softc *sc, int addr, uint8_t *dest)
bge_read_eeprom(struct bge_softc *sc, void *destv, int off, int cnt)
struct bge_softc * const sc = device_private(dev);
struct bge_softc * const sc = device_private(dev);
struct bge_softc * const sc = ifp->if_softc;
struct bge_softc * const sc = ifp->if_softc;
bge_handle_events(struct bge_softc *sc)
bge_alloc_jumbo_mem(struct bge_softc *sc)
bge_free_jumbo_mem(struct bge_softc *sc)
bge_jalloc(struct bge_softc *sc)
struct bge_softc * const sc = arg;
bge_newbuf_std(struct bge_softc *sc, int i)
bge_newbuf_jumbo(struct bge_softc *sc, int i, struct mbuf *m)
bge_init_rx_ring_std(struct bge_softc *sc)
bge_fill_rx_ring_std(struct bge_softc *sc)
bge_free_rx_ring_std(struct bge_softc *sc)
bge_init_rx_ring_jumbo(struct bge_softc *sc)
bge_free_rx_ring_jumbo(struct bge_softc *sc)
bge_free_tx_ring(struct bge_softc *sc, bool disable)
typedef int (*bge_eaddr_fcn_t)(struct bge_softc *, uint8_t[]);
bge_init_tx_ring(struct bge_softc *sc)
static int bge_can_use_msi(struct bge_softc *);
static void bge_release_resources(struct bge_softc *);
bge_setmulti(struct bge_softc *sc)
static int bge_get_eaddr_fw(struct bge_softc *, uint8_t[]);
static int bge_get_eaddr_mem(struct bge_softc *, uint8_t[]);
static int bge_get_eaddr_nvram(struct bge_softc *, uint8_t[]);
static int bge_get_eaddr_eeprom(struct bge_softc *, uint8_t[]);
static int bge_get_eaddr(struct bge_softc *, uint8_t[]);
bge_sig_pre_reset(struct bge_softc *sc, int type)
static void bge_txeof(struct bge_softc *);
static void bge_rxcsum(struct bge_softc *, struct bge_rx_bd *, struct mbuf *);
static void bge_rxeof(struct bge_softc *);
bge_sig_post_reset(struct bge_softc *sc, int type)
static void bge_asf_driver_up (struct bge_softc *);
bge_sig_legacy(struct bge_softc *sc, int type)
static void bge_stats_update(struct bge_softc *);
bge_wait_for_event_ack(struct bge_softc *sc)
static void bge_stats_update_regs(struct bge_softc *);
bge_stop_fw(struct bge_softc *sc)
static int bge_encap(struct bge_softc *, struct mbuf *, uint32_t *);
bge_poll_fw(struct bge_softc *sc)
bge_phy_addr(struct bge_softc *sc)
bge_chipinit(struct bge_softc *sc)
static uint8_t bge_nvram_getbyte(struct bge_softc *, int, uint8_t *);
static int bge_read_nvram(struct bge_softc *, uint8_t *, int, int);
static uint8_t bge_eeprom_getbyte(struct bge_softc *, int, uint8_t *);
static int bge_read_eeprom(struct bge_softc *, void *, int, int);
static void bge_setmulti(struct bge_softc *);
static void bge_handle_events(struct bge_softc *);
static int bge_alloc_jumbo_mem(struct bge_softc *);
static void bge_free_jumbo_mem(struct bge_softc *);
static void *bge_jalloc(struct bge_softc *);
static int bge_newbuf_jumbo(struct bge_softc *, int, struct mbuf *);
static int bge_init_rx_ring_jumbo(struct bge_softc *);
static void bge_free_rx_ring_jumbo(struct bge_softc *);
static int bge_newbuf_std(struct bge_softc *, int);
static int bge_init_rx_ring_std(struct bge_softc *);
static void bge_fill_rx_ring_std(struct bge_softc *);
static void bge_free_rx_ring_std(struct bge_softc *m);
static void bge_free_tx_ring(struct bge_softc *m, bool);
static int bge_init_tx_ring(struct bge_softc *);
bge_blockinit(struct bge_softc *sc)
static int bge_chipinit(struct bge_softc *);
static int bge_blockinit(struct bge_softc *);
static int bge_phy_addr(struct bge_softc *);
static uint32_t bge_readmem_ind(struct bge_softc *, int);
static void bge_writemem_ind(struct bge_softc *, int, int);
static void bge_writembx(struct bge_softc *, int, int);
static void bge_writembx_flush(struct bge_softc *, int, int);
static void bge_writemem_direct(struct bge_softc *, int, int);
static void bge_writereg_ind(struct bge_softc *, int, int);
static void bge_set_max_readrq(struct bge_softc *);
static void bge_sig_post_reset(struct bge_softc *, int);
static void bge_sig_legacy(struct bge_softc *, int);
static void bge_sig_pre_reset(struct bge_softc *, int);
static void bge_wait_for_event_ack(struct bge_softc *);
static void bge_stop_fw(struct bge_softc *);
static int bge_reset(struct bge_softc *);
static void bge_link_upd(struct bge_softc *);
static void bge_sysctl_init(struct bge_softc *);
static void bge_ape_lock_init(struct bge_softc *);
static void bge_ape_read_fw_ver(struct bge_softc *);
static int bge_ape_lock(struct bge_softc *, int);
static void bge_ape_unlock(struct bge_softc *, int);
static void bge_ape_send_event(struct bge_softc *, uint32_t);
static void bge_ape_driver_state_change(struct bge_softc *, int);
void bge_debug_info(struct bge_softc *);
bge_can_use_msi(struct bge_softc *sc)
struct bge_softc * const sc = device_private(self);
struct bge_softc * const sc = device_private(self);
bge_release_resources(struct bge_softc *sc)
bge_reset(struct bge_softc *sc)
void (*write_op)(struct bge_softc *, int, int);
bge_rxeof(struct bge_softc *sc)
bge_rxcsum(struct bge_softc *sc, struct bge_rx_bd *cur_rx, struct mbuf *m)
bge_txeof(struct bge_softc *sc)
struct bge_softc * const sc = xsc;
bge_asf_driver_up(struct bge_softc *sc)
struct bge_softc * const sc = xsc;
bge_stats_update_regs(struct bge_softc *sc)
bge_stats_update(struct bge_softc *sc)
bge_encap(struct bge_softc *sc, struct mbuf *m_head, uint32_t *txidx)
CFATTACH_DECL3_NEW(bge, sizeof(struct bge_softc),
bge_readmem_ind(struct bge_softc *sc, int off)
struct bge_softc * const sc = ifp->if_softc;
struct bge_softc * const sc = ifp->if_softc;
bge_writemem_ind(struct bge_softc *sc, int off, int val)
struct bge_softc * const sc = ifp->if_softc;
bge_set_max_readrq(struct bge_softc *sc)
struct bge_softc * const sc = ifp->if_softc;
bge_readreg_ind(struct bge_softc *sc, int off)
struct bge_softc * const sc = ifp->if_softc;
struct bge_softc * const sc = ifp->if_softc;
struct bge_softc * const sc = ifp->if_softc;
bge_writereg_ind(struct bge_softc *sc, int off, int val)
bge_watchdog_check(struct bge_softc * const sc)
bge_writemem_direct(struct bge_softc *sc, int off, int val)
struct bge_softc * const sc = ifp->if_softc;
struct bge_softc * const sc = arg;
bge_writembx(struct bge_softc *sc, int off, int val)
bge_stop_block(struct bge_softc *sc, bus_addr_t reg, uint32_t bit)
struct bge_softc * const sc = ifp->if_softc;
bge_writembx_flush(struct bge_softc *sc, int off, int val)
bge_link_upd(struct bge_softc *sc)
bge_ape_lock_init(struct bge_softc *sc)
bge_sysctl_init(struct bge_softc *sc)
bge_debug_info(struct bge_softc *sc)
bge_get_eaddr_fw(struct bge_softc *sc, uint8_t ether_addr[])
bge_get_eaddr_mem(struct bge_softc *sc, uint8_t ether_addr[])
bge_get_eaddr_nvram(struct bge_softc *sc, uint8_t ether_addr[])
bge_get_eaddr_eeprom(struct bge_softc *sc, uint8_t ether_addr[])
bge_get_eaddr(struct bge_softc *sc, uint8_t eaddr[])
bge_ape_read_fw_ver(struct bge_softc *sc)
bge_ape_lock(struct bge_softc *sc, int locknum)
bge_ape_unlock(struct bge_softc *sc, int locknum)
bge_ape_send_event(struct bge_softc *sc, uint32_t event)
bge_ape_driver_state_change(struct bge_softc *sc, int kind)
bge_nvram_getbyte(struct bge_softc *sc, int addr, uint8_t *dest)
bge_read_nvram(struct bge_softc *sc, uint8_t *dest, int off, int cnt)