mtkswitch_softc
mtkswitch_attach_phys(struct mtkswitch_softc *sc)
mtkswitch_set_vlan_mode(struct mtkswitch_softc *sc, uint32_t mode)
struct mtkswitch_softc *sc;
struct mtkswitch_softc *sc = device_get_softc(dev);
mtkswitch_miiforport(struct mtkswitch_softc *sc, int port)
mtkswitch_ifpforport(struct mtkswitch_softc *sc, int port)
mtkswitch_miipollstat(struct mtkswitch_softc *sc)
struct mtkswitch_softc *sc = arg;
struct mtkswitch_softc *sc = device_get_softc(dev);
struct mtkswitch_softc *sc = device_get_softc(dev);
struct mtkswitch_softc *sc = device_get_softc(dev);
mtkswitch_is_cpuport(struct mtkswitch_softc *sc, int port)
struct mtkswitch_softc *sc;
struct mtkswitch_softc *sc;
struct mtkswitch_softc *sc = if_getsoftc(ifp);
struct mtkswitch_softc *sc = if_getsoftc(ifp);
struct mtkswitch_softc *sc;
struct mtkswitch_softc *sc;
struct mtkswitch_softc *sc = device_get_softc(dev);
struct mtkswitch_softc *sc = device_get_softc(dev);
struct mtkswitch_softc *sc = device_get_softc(dev);
struct mtkswitch_softc *sc = device_get_softc(dev);
struct mtkswitch_softc *sc = device_get_softc(dev);
struct mtkswitch_softc *sc = device_get_softc(dev);
sizeof(struct mtkswitch_softc));
struct mtkswitch_softc *sc;
struct mtkswitch_softc *sc = device_get_softc(dev);
mtkswitch_reg_read32(struct mtkswitch_softc *sc, int reg)
mtkswitch_reg_write32(struct mtkswitch_softc *sc, int reg, uint32_t val)
mtkswitch_reg_read32_mt7621(struct mtkswitch_softc *sc, int reg)
mtkswitch_reg_write32_mt7621(struct mtkswitch_softc *sc, int reg, uint32_t val)
struct mtkswitch_softc *sc = device_get_softc(dev);
struct mtkswitch_softc *sc = device_get_softc(dev);
mtkswitch_reset(struct mtkswitch_softc *sc)
mtkswitch_hw_setup(struct mtkswitch_softc *sc)
mtkswitch_hw_global_setup(struct mtkswitch_softc *sc)
mtkswitch_port_init(struct mtkswitch_softc *sc, int port)
mtkswitch_get_port_status(struct mtkswitch_softc *sc, int port)
mtkswitch_atu_flush(struct mtkswitch_softc *sc)
mtkswitch_port_vlan_setup(struct mtkswitch_softc *sc, etherswitch_port_t *p)
mtkswitch_port_vlan_get(struct mtkswitch_softc *sc, etherswitch_port_t *p)
mtkswitch_invalidate_vlan(struct mtkswitch_softc *sc, uint32_t vid)
mtkswitch_vlan_init_hw(struct mtkswitch_softc *sc)
mtkswitch_vlan_getvgroup(struct mtkswitch_softc *sc, etherswitch_vlangroup_t *v)
mtkswitch_vlan_setvgroup(struct mtkswitch_softc *sc, etherswitch_vlangroup_t *v)
mtkswitch_vlan_get_pvid(struct mtkswitch_softc *sc, int port, int *pvid)
mtkswitch_vlan_set_pvid(struct mtkswitch_softc *sc, int port, int pvid)
mtk_attach_switch_mt7620(struct mtkswitch_softc *sc)
mtkswitch_phy_read_locked(struct mtkswitch_softc *sc, int phy, int reg)
struct mtkswitch_softc *sc = device_get_softc(dev);
mtkswitch_phy_write_locked(struct mtkswitch_softc *sc, int phy, int reg,
struct mtkswitch_softc *sc = device_get_softc(dev);
mtkswitch_reset(struct mtkswitch_softc *sc)
mtkswitch_hw_setup(struct mtkswitch_softc *sc)
mtkswitch_hw_global_setup(struct mtkswitch_softc *sc)
mtkswitch_port_init(struct mtkswitch_softc *sc, int port)
mtkswitch_get_port_status(struct mtkswitch_softc *sc, int port)
mtkswitch_atu_flush(struct mtkswitch_softc *sc)
mtkswitch_port_vlan_setup(struct mtkswitch_softc *sc, etherswitch_port_t *p)
mtkswitch_port_vlan_get(struct mtkswitch_softc *sc, etherswitch_port_t *p)
mtkswitch_vlan_init_hw(struct mtkswitch_softc *sc)
mtkswitch_vlan_getvgroup(struct mtkswitch_softc *sc, etherswitch_vlangroup_t *v)
mtkswitch_vlan_setvgroup(struct mtkswitch_softc *sc, etherswitch_vlangroup_t *v)
mtkswitch_vlan_get_pvid(struct mtkswitch_softc *sc, int port, int *pvid)
mtkswitch_vlan_set_pvid(struct mtkswitch_softc *sc, int port, int pvid)
mtk_attach_switch_rt3050(struct mtkswitch_softc *sc)
struct mtkswitch_softc *sc = device_get_softc(dev);
struct mtkswitch_softc *sc = device_get_softc(dev);
struct mtkswitch_softc *sc = device_get_softc(dev);
int (* mtkswitch_vlan_set_pvid) (struct mtkswitch_softc *,
uint32_t (* mtkswitch_read) (struct mtkswitch_softc *, int);
uint32_t (* mtkswitch_write) (struct mtkswitch_softc *, int,
extern void mtk_attach_switch_rt3050(struct mtkswitch_softc *);
extern void mtk_attach_switch_mt7620(struct mtkswitch_softc *);
int (* mtkswitch_reset) (struct mtkswitch_softc *);
int (* mtkswitch_hw_setup) (struct mtkswitch_softc *);
int (* mtkswitch_hw_global_setup) (struct mtkswitch_softc *);
void (* mtkswitch_port_init) (struct mtkswitch_softc *, int);
(struct mtkswitch_softc *, int);
int (* mtkswitch_atu_flush) (struct mtkswitch_softc *);
int (* mtkswitch_port_vlan_setup) (struct mtkswitch_softc *,
int (* mtkswitch_port_vlan_get) (struct mtkswitch_softc *,
void (* mtkswitch_vlan_init_hw) (struct mtkswitch_softc *);
int (* mtkswitch_vlan_getvgroup) (struct mtkswitch_softc *,
int (* mtkswitch_vlan_setvgroup) (struct mtkswitch_softc *,
int (* mtkswitch_vlan_get_pvid) (struct mtkswitch_softc *,