Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/input/wsp.c
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | |||||
#define WSP_CLAMP(x,low,high) do { \ | #define WSP_CLAMP(x,low,high) do { \ | ||||
if ((x) < (low)) \ | if ((x) < (low)) \ | ||||
(x) = (low); \ | (x) = (low); \ | ||||
else if ((x) > (high)) \ | else if ((x) > (high)) \ | ||||
(x) = (high); \ | (x) = (high); \ | ||||
} while (0) | } while (0) | ||||
/* Tunables */ | /* Tunables */ | ||||
static SYSCTL_NODE(_hw_usb, OID_AUTO, wsp, CTLFLAG_RW, 0, "USB wsp"); | static SYSCTL_NODE(_hw_usb, OID_AUTO, wsp, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, | ||||
"USB wsp"); | |||||
#ifdef USB_DEBUG | #ifdef USB_DEBUG | ||||
enum wsp_log_level { | enum wsp_log_level { | ||||
WSP_LLEVEL_DISABLED = 0, | WSP_LLEVEL_DISABLED = 0, | ||||
WSP_LLEVEL_ERROR, | WSP_LLEVEL_ERROR, | ||||
WSP_LLEVEL_DEBUG, /* for troubleshooting */ | WSP_LLEVEL_DEBUG, /* for troubleshooting */ | ||||
WSP_LLEVEL_INFO, /* for diagnostics */ | WSP_LLEVEL_INFO, /* for diagnostics */ | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 1,332 Lines • Show Last 20 Lines |