rge_softc
static void rge_iff_locked(struct rge_softc *);
static void rge_add_media_types(struct rge_softc *);
struct rge_softc *sc = if_getsoftc(ifp);
static void rge_txq_flush_mbufs(struct rge_softc *sc);
struct rge_softc *sc = if_getsoftc(ifp);
static void rge_link_state(struct rge_softc *);
static void rge_setwol(struct rge_softc *);
struct rge_softc *sc = xsc;
rge_init_locked(struct rge_softc *sc)
rge_stop_locked(struct rge_softc *sc)
rge_attach_if(struct rge_softc *sc, const char *eaddr)
struct rge_softc *sc = if_getsoftc(ifp);
struct rge_softc *sc = if_getsoftc(ifp);
rge_allocmem(struct rge_softc *sc)
rge_alloc_stats_mem(struct rge_softc *sc)
rge_freemem(struct rge_softc *sc)
rge_free_stats_mem(struct rge_softc *sc)
struct rge_softc *sc = q->q_sc;
struct rge_softc *sc;
struct rge_softc *sc = q->q_sc;
struct rge_softc *sc = q->q_sc;
struct rge_softc *sc = q->q_sc;
struct rge_softc *sc = q->q_sc;
rge_iff_locked(struct rge_softc *sc)
rge_add_media_types(struct rge_softc *sc)
struct rge_softc *sc = (struct rge_softc *) arg;
struct rge_softc *sc = arg;
rge_link_state(struct rge_softc *sc)
rge_setwol(struct rge_softc *sc)
struct rge_softc *sc = device_get_softc(dev);
struct rge_softc *sc = device_get_softc(dev);
struct rge_softc *sc = device_get_softc(dev);
sizeof(struct rge_softc)
rge_txq_flush_mbufs(struct rge_softc *sc)
struct rge_softc *sc = device_get_softc(dev);
struct rge_softc *sc = arg;
rge_tx_list_sync(struct rge_softc *sc, struct rge_queues *q,
rge_encap(struct rge_softc *sc, struct rge_queues *q, struct mbuf *m, int idx)
static void rge_init_locked(struct rge_softc *);
static void rge_stop_locked(struct rge_softc *);
static int rge_allocmem(struct rge_softc *);
static int rge_alloc_stats_mem(struct rge_softc *);
static int rge_freemem(struct rge_softc *);
struct rge_softc *sc = if_getsoftc(ifp);
static int rge_free_stats_mem(struct rge_softc *);
rge_phy_config_mac_r26_2(struct rge_softc *sc)
rge_phy_config_mac_r25(struct rge_softc *sc)
rge_phy_config_mac_r25b(struct rge_softc *sc)
rge_phy_config_mac_r25d_1(struct rge_softc *sc)
rge_chipinit(struct rge_softc *sc)
rge_phy_config_mac_r25d_2(struct rge_softc *sc)
rge_phy_config_mcu(struct rge_softc *sc, uint16_t rcodever)
rge_set_phy_power(struct rge_softc *sc, int on)
rge_set_macaddr(struct rge_softc *sc, const uint8_t *addr)
rge_get_macaddr(struct rge_softc *sc, uint8_t *addr)
rge_hw_init(struct rge_softc *sc)
rge_hw_reset(struct rge_softc *sc)
rge_disable_phy_ocp_pwrsave(struct rge_softc *sc)
rge_patch_phy_mcu(struct rge_softc *sc, int set)
rge_config_imtype(struct rge_softc *sc, int imtype)
rge_disable_aspm_clkreq(struct rge_softc *sc)
rge_mac_config_mcu(struct rge_softc *sc, enum rge_mac_type type)
rge_disable_hw_im(struct rge_softc *sc)
rge_disable_sim_im(struct rge_softc *sc)
rge_setup_sim_im(struct rge_softc *sc)
rge_setup_intr(struct rge_softc *sc, int imtype)
rge_switch_mcu_ram_page(struct rge_softc *sc, int page)
rge_exit_oob(struct rge_softc *sc)
rge_write_csi(struct rge_softc *sc, uint32_t reg, uint32_t val)
rge_read_csi(struct rge_softc *sc, uint32_t reg)
rge_write_mac_ocp(struct rge_softc *sc, uint16_t reg, uint16_t val)
rge_read_mac_ocp(struct rge_softc *sc, uint16_t reg)
rge_write_ephy(struct rge_softc *sc, uint16_t reg, uint16_t val)
rge_read_ephy(struct rge_softc *sc, uint16_t reg)
rge_check_ephy_ext_add(struct rge_softc *sc, uint16_t reg)
rge_r27_write_ephy(struct rge_softc *sc, uint16_t reg, uint16_t val)
rge_write_phy(struct rge_softc *sc, uint16_t addr, uint16_t reg, uint16_t val)
rge_read_phy(struct rge_softc *sc, uint16_t addr, uint16_t reg)
rge_write_phy_ocp(struct rge_softc *sc, uint16_t reg, uint16_t val)
rge_read_phy_ocp(struct rge_softc *sc, uint16_t reg)
rge_get_link_status(struct rge_softc *sc)
rge_wol_config(struct rge_softc *sc, int enable)
rge_mac_config_ext_mcu(struct rge_softc *sc, enum rge_mac_type type)
rge_mcu_set_version(struct rge_softc *sc, uint64_t mcodever)
rge_ephy_config(struct rge_softc *sc)
rge_ephy_config_mac_r25(struct rge_softc *sc)
rge_ephy_config_mac_r25b(struct rge_softc *sc)
rge_ephy_config_mac_r27(struct rge_softc *sc)
rge_phy_config(struct rge_softc *sc)
rge_phy_config_mac_r27(struct rge_softc *sc)
static int rge_reset(struct rge_softc *sc);
static void rge_set_phy_power(struct rge_softc *sc, int on);
static void rge_mac_config_ext_mcu(struct rge_softc *, enum rge_mac_type);
static void rge_mcu_set_version(struct rge_softc *sc, uint64_t mcodever);
static void rge_ephy_config_mac_r25(struct rge_softc *sc);
static void rge_ephy_config_mac_r25b(struct rge_softc *sc);
static void rge_ephy_config_mac_r27(struct rge_softc *sc);
static void rge_phy_config_mac_r27(struct rge_softc *sc);
static void rge_phy_config_mac_r26_1(struct rge_softc *sc);
static void rge_phy_config_mac_r26_2(struct rge_softc *sc);
static void rge_phy_config_mac_r25(struct rge_softc *sc);
static void rge_phy_config_mac_r25b(struct rge_softc *sc);
static void rge_phy_config_mac_r25d_1(struct rge_softc *);
static void rge_phy_config_mac_r25d_2(struct rge_softc *);
static void rge_phy_config_mcu(struct rge_softc *sc, uint16_t rcodever);
static void rge_hw_init(struct rge_softc *sc);
static void rge_disable_phy_ocp_pwrsave(struct rge_softc *sc);
rge_phy_config_mac_r26_1(struct rge_softc *sc)
static void rge_patch_phy_mcu(struct rge_softc *sc, int set);
static void rge_disable_hw_im(struct rge_softc *sc);
static void rge_disable_sim_im(struct rge_softc *sc);
static void rge_setup_sim_im(struct rge_softc *sc);
static void rge_switch_mcu_ram_page(struct rge_softc *sc, int page);
static int rge_exit_oob(struct rge_softc *sc);
static void rge_write_ephy(struct rge_softc *sc, uint16_t reg, uint16_t val);
static uint16_t rge_read_ephy(struct rge_softc *sc, uint16_t reg);
static uint16_t rge_check_ephy_ext_add(struct rge_softc *sc, uint16_t reg);
static void rge_r27_write_ephy(struct rge_softc *sc, uint16_t reg, uint16_t val);
rge_reset(struct rge_softc *sc)
struct rge_softc;
extern int rge_chipinit(struct rge_softc *);
extern void rge_mac_config_mcu(struct rge_softc *, enum rge_mac_type);
extern void rge_write_mac_ocp(struct rge_softc *, uint16_t, uint16_t);
extern uint16_t rge_read_mac_ocp(struct rge_softc *, uint16_t);
extern void rge_ephy_config(struct rge_softc *);
extern int rge_phy_config(struct rge_softc *);
extern void rge_set_macaddr(struct rge_softc *, const uint8_t *);
extern void rge_get_macaddr(struct rge_softc *, uint8_t *);
extern void rge_hw_reset(struct rge_softc *);
extern void rge_config_imtype(struct rge_softc *, int);
extern void rge_disable_aspm_clkreq(struct rge_softc *);
extern void rge_setup_intr(struct rge_softc *, int);
extern void rge_write_csi(struct rge_softc *, uint32_t, uint32_t);
extern uint32_t rge_read_csi(struct rge_softc *, uint32_t);
extern void rge_write_phy(struct rge_softc *, uint16_t, uint16_t, uint16_t);
extern uint16_t rge_read_phy(struct rge_softc *, uint16_t, uint16_t);
extern void rge_write_phy_ocp(struct rge_softc *, uint16_t, uint16_t);
extern uint16_t rge_read_phy_ocp(struct rge_softc *sc, uint16_t reg);
extern int rge_get_link_status(struct rge_softc *);
extern void rge_wol_config(struct rge_softc *, int);
rge_hw_mac_stats_fetch(struct rge_softc *sc, struct rge_hw_mac_stats *hws)
struct rge_softc;
extern int rge_hw_mac_stats_fetch(struct rge_softc *,
rge_sysctl_mac_stats_attach(struct rge_softc *sc)
rge_sysctl_attach(struct rge_softc *sc)
rge_sysctl_drv_stats_attach(struct rge_softc *sc)
struct rge_softc;
extern void rge_sysctl_attach(struct rge_softc *);
struct rge_softc *q_sc;