Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/etherswitch/mtkswitch/mtkswitch.c
Show All 12 Lines | |||||
#include "mdio_if.h" | #include "mdio_if.h" | ||||
#include "miibus_if.h" | #include "miibus_if.h" | ||||
#include "etherswitch_if.h" | #include "etherswitch_if.h" | ||||
#define DEBUG | #define DEBUG | ||||
#if defined(DEBUG) | #if defined(DEBUG) | ||||
static SYSCTL_NODE(_debug, OID_AUTO, mtkswitch, CTLFLAG_RD, 0, "mtkswitch"); | static SYSCTL_NODE(_debug, OID_AUTO, mtkswitch, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, | ||||
"mtkswitch"); | |||||
#endif | #endif | ||||
static inline int mtkswitch_portforphy(int phy); | static inline int mtkswitch_portforphy(int phy); | ||||
static int mtkswitch_ifmedia_upd(struct ifnet *ifp); | static int mtkswitch_ifmedia_upd(struct ifnet *ifp); | ||||
static void mtkswitch_ifmedia_sts(struct ifnet *ifp, struct ifmediareq *ifmr); | static void mtkswitch_ifmedia_sts(struct ifnet *ifp, struct ifmediareq *ifmr); | ||||
static void mtkswitch_tick(void *arg); | static void mtkswitch_tick(void *arg); | ||||
static const struct ofw_compat_data compat_data[] = { | static const struct ofw_compat_data compat_data[] = { | ||||
Show All 12 Lines |