Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if_media.c
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | |||||
* Useful for debugging newly-ported drivers. | * Useful for debugging newly-ported drivers. | ||||
*/ | */ | ||||
static struct ifmedia_entry *ifmedia_match(struct ifmedia *ifm, | static struct ifmedia_entry *ifmedia_match(struct ifmedia *ifm, | ||||
int flags, int mask); | int flags, int mask); | ||||
#ifdef IFMEDIA_DEBUG | #ifdef IFMEDIA_DEBUG | ||||
#include <net/if_var.h> | #include <net/if_var.h> | ||||
#include <net/if_private.h> | |||||
int ifmedia_debug = 0; | int ifmedia_debug = 0; | ||||
SYSCTL_INT(_debug, OID_AUTO, ifmedia, CTLFLAG_RW, &ifmedia_debug, | SYSCTL_INT(_debug, OID_AUTO, ifmedia, CTLFLAG_RW, &ifmedia_debug, | ||||
0, "if_media debugging msgs"); | 0, "if_media debugging msgs"); | ||||
static void ifmedia_printword(int); | static void ifmedia_printword(int); | ||||
#endif | #endif | ||||
/* | /* | ||||
* Initialize if_media struct for a specific interface instance. | * Initialize if_media struct for a specific interface instance. | ||||
▲ Show 20 Lines • Show All 423 Lines • Show Last 20 Lines |