Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/wi/if_wi.c
Show All 12 Lines | |||||
static __inline int | static __inline int | ||||
wi_write_val(struct wi_softc *sc, int rid, u_int16_t val) | wi_write_val(struct wi_softc *sc, int rid, u_int16_t val) | ||||
{ | { | ||||
val = htole16(val); | val = htole16(val); | ||||
return wi_write_rid(sc, rid, &val, sizeof(val)); | return wi_write_rid(sc, rid, &val, sizeof(val)); | ||||
} | } | ||||
static SYSCTL_NODE(_hw, OID_AUTO, wi, CTLFLAG_RD, 0, | static SYSCTL_NODE(_hw, OID_AUTO, wi, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, | ||||
"Wireless driver parameters"); | "Wireless driver parameters"); | ||||
static struct timeval lasttxerror; /* time of last tx error msg */ | static struct timeval lasttxerror; /* time of last tx error msg */ | ||||
static int curtxeps; /* current tx error msgs/sec */ | static int curtxeps; /* current tx error msgs/sec */ | ||||
static int wi_txerate = 0; /* tx error rate: max msgs/sec */ | static int wi_txerate = 0; /* tx error rate: max msgs/sec */ | ||||
SYSCTL_INT(_hw_wi, OID_AUTO, txerate, CTLFLAG_RW, &wi_txerate, | SYSCTL_INT(_hw_wi, OID_AUTO, txerate, CTLFLAG_RW, &wi_txerate, | ||||
0, "max tx error msgs/sec; 0 to disable msgs"); | 0, "max tx error msgs/sec; 0 to disable msgs"); | ||||
#define WI_DEBUG | #define WI_DEBUG | ||||
Show All 12 Lines |