Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/serial/u3g.c
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | |||||
#include <dev/usb/usb_msctest.h> | #include <dev/usb/usb_msctest.h> | ||||
#include <dev/usb/serial/usb_serial.h> | #include <dev/usb/serial/usb_serial.h> | ||||
#include <dev/usb/quirk/usb_quirk.h> | #include <dev/usb/quirk/usb_quirk.h> | ||||
#ifdef USB_DEBUG | #ifdef USB_DEBUG | ||||
static int u3g_debug = 0; | static int u3g_debug = 0; | ||||
static SYSCTL_NODE(_hw_usb, OID_AUTO, u3g, CTLFLAG_RW, 0, "USB 3g"); | static SYSCTL_NODE(_hw_usb, OID_AUTO, u3g, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, | ||||
"USB 3g"); | |||||
SYSCTL_INT(_hw_usb_u3g, OID_AUTO, debug, CTLFLAG_RWTUN, | SYSCTL_INT(_hw_usb_u3g, OID_AUTO, debug, CTLFLAG_RWTUN, | ||||
&u3g_debug, 0, "Debug level"); | &u3g_debug, 0, "Debug level"); | ||||
#endif | #endif | ||||
#define U3G_MAXPORTS 12 | #define U3G_MAXPORTS 12 | ||||
#define U3G_CONFIG_INDEX 0 | #define U3G_CONFIG_INDEX 0 | ||||
#define U3G_BSIZE 2048 | #define U3G_BSIZE 2048 | ||||
#define U3G_TXSIZE (U3G_BSIZE / U3G_TXFRAMES) | #define U3G_TXSIZE (U3G_BSIZE / U3G_TXFRAMES) | ||||
▲ Show 20 Lines • Show All 1,207 Lines • Show Last 20 Lines |