Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/serial/uftdi.c
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | |||||
#define USB_DEBUG_VAR uftdi_debug | #define USB_DEBUG_VAR uftdi_debug | ||||
#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> | ||||
#include <dev/usb/serial/uftdi_reg.h> | #include <dev/usb/serial/uftdi_reg.h> | ||||
#include <dev/usb/uftdiio.h> | #include <dev/usb/uftdiio.h> | ||||
static SYSCTL_NODE(_hw_usb, OID_AUTO, uftdi, CTLFLAG_RW, 0, "USB uftdi"); | static SYSCTL_NODE(_hw_usb, OID_AUTO, uftdi, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, | ||||
"USB uftdi"); | |||||
#ifdef USB_DEBUG | #ifdef USB_DEBUG | ||||
static int uftdi_debug = 0; | static int uftdi_debug = 0; | ||||
SYSCTL_INT(_hw_usb_uftdi, OID_AUTO, debug, CTLFLAG_RWTUN, | SYSCTL_INT(_hw_usb_uftdi, OID_AUTO, debug, CTLFLAG_RWTUN, | ||||
&uftdi_debug, 0, "Debug level"); | &uftdi_debug, 0, "Debug level"); | ||||
#endif | #endif | ||||
#define UFTDI_CONFIG_INDEX 0 | #define UFTDI_CONFIG_INDEX 0 | ||||
▲ Show 20 Lines • Show All 1,917 Lines • Show Last 20 Lines |