Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/misc/udbp.c
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
#include <netgraph/ng_parse.h> | #include <netgraph/ng_parse.h> | ||||
#include <netgraph/bluetooth/include/ng_bluetooth.h> | #include <netgraph/bluetooth/include/ng_bluetooth.h> | ||||
#include <dev/usb/misc/udbp.h> | #include <dev/usb/misc/udbp.h> | ||||
#ifdef USB_DEBUG | #ifdef USB_DEBUG | ||||
static int udbp_debug = 0; | static int udbp_debug = 0; | ||||
static SYSCTL_NODE(_hw_usb, OID_AUTO, udbp, CTLFLAG_RW, 0, "USB udbp"); | static SYSCTL_NODE(_hw_usb, OID_AUTO, udbp, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, | ||||
"USB udbp"); | |||||
SYSCTL_INT(_hw_usb_udbp, OID_AUTO, debug, CTLFLAG_RWTUN, | SYSCTL_INT(_hw_usb_udbp, OID_AUTO, debug, CTLFLAG_RWTUN, | ||||
&udbp_debug, 0, "udbp debug level"); | &udbp_debug, 0, "udbp debug level"); | ||||
#endif | #endif | ||||
#define UDBP_TIMEOUT 2000 /* timeout on outbound transfers, in | #define UDBP_TIMEOUT 2000 /* timeout on outbound transfers, in | ||||
* msecs */ | * msecs */ | ||||
#define UDBP_BUFFERSIZE MCLBYTES /* maximum number of bytes in one | #define UDBP_BUFFERSIZE MCLBYTES /* maximum number of bytes in one | ||||
* transfer */ | * transfer */ | ||||
▲ Show 20 Lines • Show All 754 Lines • Show Last 20 Lines |