Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/etherswitch/rtl8366/rtl8366rb.c
Show All 12 Lines | |||||
} while (0) | } while (0) | ||||
#define DEBUG_INCRVAR(var) do { \ | #define DEBUG_INCRVAR(var) do { \ | ||||
var++; \ | var++; \ | ||||
} while (0) | } while (0) | ||||
static int callout_blocked = 0; | static int callout_blocked = 0; | ||||
static int iic_select_retries = 0; | static int iic_select_retries = 0; | ||||
static int phy_access_retries = 0; | static int phy_access_retries = 0; | ||||
static SYSCTL_NODE(_debug, OID_AUTO, rtl8366rb, CTLFLAG_RD, 0, "rtl8366rb"); | static SYSCTL_NODE(_debug, OID_AUTO, rtl8366rb, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, | ||||
"rtl8366rb"); | |||||
SYSCTL_INT(_debug_rtl8366rb, OID_AUTO, callout_blocked, CTLFLAG_RW, &callout_blocked, 0, | SYSCTL_INT(_debug_rtl8366rb, OID_AUTO, callout_blocked, CTLFLAG_RW, &callout_blocked, 0, | ||||
"number of times the callout couldn't acquire the bus"); | "number of times the callout couldn't acquire the bus"); | ||||
SYSCTL_INT(_debug_rtl8366rb, OID_AUTO, iic_select_retries, CTLFLAG_RW, &iic_select_retries, 0, | SYSCTL_INT(_debug_rtl8366rb, OID_AUTO, iic_select_retries, CTLFLAG_RW, &iic_select_retries, 0, | ||||
"number of times the I2C bus selection had to be retried"); | "number of times the I2C bus selection had to be retried"); | ||||
SYSCTL_INT(_debug_rtl8366rb, OID_AUTO, phy_access_retries, CTLFLAG_RW, &phy_access_retries, 0, | SYSCTL_INT(_debug_rtl8366rb, OID_AUTO, phy_access_retries, CTLFLAG_RW, &phy_access_retries, 0, | ||||
"number of times PHY register access had to be retried"); | "number of times PHY register access had to be retried"); | ||||
#else | #else | ||||
#define DPRINTF(dev, args...) | #define DPRINTF(dev, args...) | ||||
Show All 12 Lines |