Home
last modified time | relevance | path

Searched refs:sc_if (Results 1 – 4 of 4) sorted by relevance

/haiku/src/add-ons/kernel/drivers/network/ether/syskonnect/dev/sk/
H A Dif_sk.c451 struct sk_if_softc *sc_if; in sk_miibus_readreg() local
454 sc_if = device_get_softc(dev); in sk_miibus_readreg()
456 SK_IF_MII_LOCK(sc_if); in sk_miibus_readreg()
457 switch(sc_if->sk_softc->sk_type) { in sk_miibus_readreg()
459 v = sk_xmac_miibus_readreg(sc_if, phy, reg); in sk_miibus_readreg()
464 v = sk_marv_miibus_readreg(sc_if, phy, reg); in sk_miibus_readreg()
470 SK_IF_MII_UNLOCK(sc_if); in sk_miibus_readreg()
478 struct sk_if_softc *sc_if; in sk_miibus_writereg() local
481 sc_if = device_get_softc(dev); in sk_miibus_writereg()
483 SK_IF_MII_LOCK(sc_if); in sk_miibus_writereg()
[all …]
H A Dif_skreg.h174 #define SK_IF_READ_4(sc_if, skip, reg) \ argument
175 sk_win_read_4(sc_if->sk_softc, reg + \
176 ((sc_if->sk_port * (skip + 1)) * SK_WIN_LEN))
177 #define SK_IF_READ_2(sc_if, skip, reg) \ argument
178 sk_win_read_2(sc_if->sk_softc, reg + \
179 ((sc_if->sk_port * (skip + 1)) * SK_WIN_LEN))
180 #define SK_IF_READ_1(sc_if, skip, reg) \ argument
181 sk_win_read_1(sc_if->sk_softc, reg + \
182 ((sc_if->sk_port * (skip + 1)) * SK_WIN_LEN))
184 #define SK_IF_WRITE_4(sc_if, skip, reg, val) \ argument
[all …]
/haiku/src/add-ons/kernel/drivers/network/ether/marvell_yukon/dev/msk/
H A Dif_msk.c399 struct msk_if_softc *sc_if; in msk_miibus_readreg() local
401 sc_if = device_get_softc(dev); in msk_miibus_readreg()
403 return (msk_phy_readreg(sc_if, phy, reg)); in msk_miibus_readreg()
407 msk_phy_readreg(struct msk_if_softc *sc_if, int phy, int reg) in msk_phy_readreg() argument
412 sc = sc_if->msk_softc; in msk_phy_readreg()
414 GMAC_WRITE_2(sc, sc_if->msk_port, GM_SMI_CTRL, in msk_phy_readreg()
419 val = GMAC_READ_2(sc, sc_if->msk_port, GM_SMI_CTRL); in msk_phy_readreg()
421 val = GMAC_READ_2(sc, sc_if->msk_port, GM_SMI_DATA); in msk_phy_readreg()
427 if_printf(sc_if->msk_ifp, "phy failed to come ready\n"); in msk_phy_readreg()
437 struct msk_if_softc *sc_if; in msk_miibus_writereg() local
[all …]
H A Dif_mskreg.h2152 #define MSK_IF_READ_4(sc_if, reg) \ argument
2153 CSR_READ_4((sc_if)->msk_softc, (reg))
2154 #define MSK_IF_READ_2(sc_if, reg) \ argument
2155 CSR_READ_2((sc_if)->msk_softc, (reg))
2156 #define MSK_IF_READ_1(sc_if, reg) \ argument
2157 CSR_READ_1((sc_if)->msk_softc, (reg))
2159 #define MSK_IF_WRITE_4(sc_if, reg, val) \ argument
2160 CSR_WRITE_4((sc_if)->msk_softc, (reg), (val))
2161 #define MSK_IF_WRITE_2(sc_if, reg, val) \ argument
2162 CSR_WRITE_2((sc_if)->msk_softc, (reg), (val))
[all …]