Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/sk/if_skreg.h
Show First 20 Lines • Show All 1,465 Lines • ▼ Show 20 Lines | |||||
#define SK_IF_LOCK(_sc) SK_LOCK((_sc)->sk_softc) | #define SK_IF_LOCK(_sc) SK_LOCK((_sc)->sk_softc) | ||||
#define SK_IF_UNLOCK(_sc) SK_UNLOCK((_sc)->sk_softc) | #define SK_IF_UNLOCK(_sc) SK_UNLOCK((_sc)->sk_softc) | ||||
#define SK_IF_LOCK_ASSERT(_sc) SK_LOCK_ASSERT((_sc)->sk_softc) | #define SK_IF_LOCK_ASSERT(_sc) SK_LOCK_ASSERT((_sc)->sk_softc) | ||||
#define SK_IF_MII_LOCK(_sc) mtx_lock(&(_sc)->sk_softc->sk_mii_mtx) | #define SK_IF_MII_LOCK(_sc) mtx_lock(&(_sc)->sk_softc->sk_mii_mtx) | ||||
#define SK_IF_MII_UNLOCK(_sc) mtx_unlock(&(_sc)->sk_softc->sk_mii_mtx) | #define SK_IF_MII_UNLOCK(_sc) mtx_unlock(&(_sc)->sk_softc->sk_mii_mtx) | ||||
/* Softc for each logical interface */ | /* Softc for each logical interface */ | ||||
struct sk_if_softc { | struct sk_if_softc { | ||||
struct ifnet *sk_ifp; /* interface info */ | if_t sk_ifp; /* interface info */ | ||||
device_t sk_miibus; | device_t sk_miibus; | ||||
device_t sk_if_dev; | device_t sk_if_dev; | ||||
u_int8_t sk_port; /* port # on controller */ | u_int8_t sk_port; /* port # on controller */ | ||||
u_int8_t sk_xmac_rev; /* XMAC chip rev (B2 or C1) */ | u_int8_t sk_xmac_rev; /* XMAC chip rev (B2 or C1) */ | ||||
u_int32_t sk_rx_ramstart; | u_int32_t sk_rx_ramstart; | ||||
u_int32_t sk_rx_ramend; | u_int32_t sk_rx_ramend; | ||||
u_int32_t sk_tx_ramstart; | u_int32_t sk_tx_ramstart; | ||||
u_int32_t sk_tx_ramend; | u_int32_t sk_tx_ramend; | ||||
Show All 15 Lines |