Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/serial/uchcom.c
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
#include <dev/usb/usb_debug.h> | #include <dev/usb/usb_debug.h> | ||||
#include <dev/usb/usb_process.h> | #include <dev/usb/usb_process.h> | ||||
#include <dev/usb/serial/usb_serial.h> | #include <dev/usb/serial/usb_serial.h> | ||||
#ifdef USB_DEBUG | #ifdef USB_DEBUG | ||||
static int uchcom_debug = 0; | static int uchcom_debug = 0; | ||||
static SYSCTL_NODE(_hw_usb, OID_AUTO, uchcom, CTLFLAG_RW, 0, "USB uchcom"); | static SYSCTL_NODE(_hw_usb, OID_AUTO, uchcom, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, | ||||
"USB uchcom"); | |||||
SYSCTL_INT(_hw_usb_uchcom, OID_AUTO, debug, CTLFLAG_RWTUN, | SYSCTL_INT(_hw_usb_uchcom, OID_AUTO, debug, CTLFLAG_RWTUN, | ||||
&uchcom_debug, 0, "uchcom debug level"); | &uchcom_debug, 0, "uchcom debug level"); | ||||
#endif | #endif | ||||
#define UCHCOM_IFACE_INDEX 0 | #define UCHCOM_IFACE_INDEX 0 | ||||
#define UCHCOM_CONFIG_INDEX 0 | #define UCHCOM_CONFIG_INDEX 0 | ||||
#define UCHCOM_REV_CH340 0x0250 | #define UCHCOM_REV_CH340 0x0250 | ||||
▲ Show 20 Lines • Show All 805 Lines • Show Last 20 Lines |