Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/storage/umass.c
Show First 20 Lines • Show All 162 Lines • ▼ Show 20 Lines | |||||
#define UDMASS_USB 0x00100000 /* USB general */ | #define UDMASS_USB 0x00100000 /* USB general */ | ||||
#define UDMASS_BBB 0x00200000 /* Bulk-Only transfers */ | #define UDMASS_BBB 0x00200000 /* Bulk-Only transfers */ | ||||
#define UDMASS_CBI 0x00400000 /* CBI transfers */ | #define UDMASS_CBI 0x00400000 /* CBI transfers */ | ||||
#define UDMASS_WIRE (UDMASS_BBB|UDMASS_CBI) | #define UDMASS_WIRE (UDMASS_BBB|UDMASS_CBI) | ||||
#define UDMASS_ALL 0xffff0000 /* all of the above */ | #define UDMASS_ALL 0xffff0000 /* all of the above */ | ||||
static int umass_debug; | static int umass_debug; | ||||
static int umass_throttle; | static int umass_throttle; | ||||
static SYSCTL_NODE(_hw_usb, OID_AUTO, umass, CTLFLAG_RW, 0, "USB umass"); | static SYSCTL_NODE(_hw_usb, OID_AUTO, umass, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, | ||||
"USB umass"); | |||||
SYSCTL_INT(_hw_usb_umass, OID_AUTO, debug, CTLFLAG_RWTUN, | SYSCTL_INT(_hw_usb_umass, OID_AUTO, debug, CTLFLAG_RWTUN, | ||||
&umass_debug, 0, "umass debug level"); | &umass_debug, 0, "umass debug level"); | ||||
SYSCTL_INT(_hw_usb_umass, OID_AUTO, throttle, CTLFLAG_RWTUN, | SYSCTL_INT(_hw_usb_umass, OID_AUTO, throttle, CTLFLAG_RWTUN, | ||||
&umass_throttle, 0, "Forced delay between commands in milliseconds"); | &umass_throttle, 0, "Forced delay between commands in milliseconds"); | ||||
#else | #else | ||||
#define DIF(...) do { } while (0) | #define DIF(...) do { } while (0) | ||||
#define DPRINTF(...) do { } while (0) | #define DPRINTF(...) do { } while (0) | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 2,840 Lines • Show Last 20 Lines |