rge_softc
struct rge_softc *sc = ifp->if_softc;
rge_stop_locked(struct rge_softc *sc, int disable)
static int rge_rxeof(struct rge_softc *);
static int rge_txeof(struct rge_softc *);
static int rge_reset(struct rge_softc *);
static void rge_iff(struct rge_softc *);
static void rge_mac_config_mcu(struct rge_softc *, enum rge_mac_type);
struct rge_softc *sc = ifp->if_softc;
static void rge_mac_config_ext_mcu(struct rge_softc *, enum rge_mac_type);
rge_ifmedia_upd_sds(struct rge_softc *sc)
static void rge_mcu_set_version(struct rge_softc *, uint64_t);
static int rge_chipinit(struct rge_softc *);
static void rge_set_phy_power(struct rge_softc *, int);
static void rge_ephy_config(struct rge_softc *);
struct rge_softc *sc = ifp->if_softc;
static void rge_ephy_config_mac_r25(struct rge_softc *);
static void rge_ephy_config_mac_r25b(struct rge_softc *);
static void rge_ephy_config_mac_r27(struct rge_softc *);
static int rge_phy_config(struct rge_softc *);
static void rge_phy_config_mac_r27(struct rge_softc *);
static void rge_phy_config_mac_r26_1(struct rge_softc *);
static void rge_phy_config_mac_r26_2(struct rge_softc *);
static void rge_phy_config_mac_r25(struct rge_softc *);
static void rge_phy_config_mac_r25b(struct rge_softc *);
struct rge_softc *sc = ifp->if_softc;
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 *, uint16_t);
static void rge_set_macaddr(struct rge_softc *, const uint8_t *);
static void rge_get_macaddr(struct rge_softc *, uint8_t *);
rge_allocmem(struct rge_softc *sc)
static void rge_hw_init(struct rge_softc *);
static void rge_hw_reset(struct rge_softc *);
static void rge_disable_phy_ocp_pwrsave(struct rge_softc *);
static void rge_patch_phy_mcu(struct rge_softc *, int);
static void rge_add_media_types(struct rge_softc *);
static void rge_config_imtype(struct rge_softc *, int);
static void rge_disable_aspm_clkreq(struct rge_softc *);
static void rge_disable_hw_im(struct rge_softc *);
static void rge_disable_sim_im(struct rge_softc *);
static void rge_setup_sim_im(struct rge_softc *);
static void rge_setup_intr(struct rge_softc *, int);
rge_deallocmem(struct rge_softc *sc)
static void rge_switch_mcu_ram_page(struct rge_softc *, int);
static int rge_exit_oob(struct rge_softc *);
static void rge_write_csi(struct rge_softc *, uint32_t, uint32_t);
static uint32_t rge_read_csi(struct rge_softc *, uint32_t);
static void rge_write_mac_ocp(struct rge_softc *, uint16_t, uint16_t);
struct rge_softc *sc = q->q_sc;
static uint16_t rge_read_mac_ocp(struct rge_softc *, uint16_t);
static void rge_write_ephy(struct rge_softc *, uint16_t, uint16_t);
struct rge_softc *sc = q->q_sc;
static uint16_t rge_read_ephy(struct rge_softc *, uint16_t);
static uint16_t rge_check_ephy_ext_add(struct rge_softc *, uint16_t);
static void rge_r27_write_ephy(struct rge_softc *, uint16_t, uint16_t);
static int rge_wait_sds(struct rge_softc *);
static uint16_t rge_read_sds(struct rge_softc *, uint16_t);
static void rge_write_sds(struct rge_softc *, uint16_t, uint16_t);
static void rge_reset_sds(struct rge_softc *);
struct rge_softc *sc = q->q_sc;
static void rge_write_phy(struct rge_softc *, uint16_t, uint16_t, uint16_t);
struct rge_softc *sc = q->q_sc;
static uint16_t rge_read_phy(struct rge_softc *, uint16_t, uint16_t);
static void rge_write_phy_ocp(struct rge_softc *, uint16_t, uint16_t);
rge_rxeof(struct rge_softc *sc)
static uint16_t rge_read_phy_ocp(struct rge_softc *, uint16_t);
static int rge_get_link_status(struct rge_softc *);
static void rge_link_state(struct rge_softc *);
rge_txeof(struct rge_softc *sc)
CFATTACH_DECL_NEW(rge, sizeof(struct rge_softc), rge_match, rge_attach,
rge_reset(struct rge_softc *sc)
rge_iff(struct rge_softc *sc)
rge_chipinit(struct rge_softc *sc)
rge_set_phy_power(struct rge_softc *sc, int on)
rge_mac_config_mcu(struct rge_softc *sc, enum rge_mac_type type)
struct rge_softc *sc = device_private(self);
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)
rge_phy_config_mac_r26_1(struct rge_softc *sc)
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_phy_config_mac_r25d_2(struct rge_softc *sc)
rge_phy_config_mcu(struct rge_softc *sc, uint16_t rcodever)
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_add_media_types(struct rge_softc *sc)
rge_config_imtype(struct rge_softc *sc, int imtype)
rge_disable_aspm_clkreq(struct rge_softc *sc)
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_wait_sds(struct rge_softc *sc)
rge_read_sds(struct rge_softc *sc, uint16_t reg)
rge_write_sds(struct rge_softc *sc, uint16_t reg, uint16_t val)
rge_reset_sds(struct rge_softc *sc)
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)
struct rge_softc *sc = arg;
struct rge_softc *sc = arg;
rge_link_state(struct rge_softc *sc)
struct rge_softc *sc = device_private(self);
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)
struct rge_softc *sc = ifp->if_softc;
struct rge_softc * const sc = ifp->if_softc;
struct rge_softc *sc = ifp->if_softc;
struct rge_softc *sc = ifp->if_softc;
rge_init_locked(struct rge_softc *sc)
static int rge_encap(struct rge_softc *, struct rge_queues *,
static int rge_init_locked(struct rge_softc *);
static void rge_stop_locked(struct rge_softc *, int);
static int rge_allocmem(struct rge_softc *);
static int rge_deallocmem(struct rge_softc *);
struct rge_softc *q_sc;