Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/template/usb_template.c
Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Lines | static const void *usb_temp_get_vendor_desc(struct usb_device *, | ||||
const struct usb_device_request *, uint16_t *plen); | const struct usb_device_request *, uint16_t *plen); | ||||
static const void *usb_temp_get_hub_desc(struct usb_device *); | static const void *usb_temp_get_hub_desc(struct usb_device *); | ||||
static usb_error_t usb_temp_get_desc(struct usb_device *, | static usb_error_t usb_temp_get_desc(struct usb_device *, | ||||
struct usb_device_request *, const void **, uint16_t *); | struct usb_device_request *, const void **, uint16_t *); | ||||
static usb_error_t usb_temp_setup_by_index(struct usb_device *, | static usb_error_t usb_temp_setup_by_index(struct usb_device *, | ||||
uint16_t index); | uint16_t index); | ||||
static void usb_temp_init(void *); | static void usb_temp_init(void *); | ||||
SYSCTL_NODE(_hw_usb, OID_AUTO, templates, CTLFLAG_RW, 0, | SYSCTL_NODE(_hw_usb, OID_AUTO, templates, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, | ||||
"USB device side templates"); | "USB device side templates"); | ||||
SYSCTL_PROC(_hw_usb, OID_AUTO, template_power, | SYSCTL_PROC(_hw_usb, OID_AUTO, template_power, | ||||
CTLTYPE_INT | CTLFLAG_RWTUN | CTLFLAG_MPSAFE, | CTLTYPE_INT | CTLFLAG_RWTUN | CTLFLAG_MPSAFE, | ||||
NULL, 0, sysctl_hw_usb_template_power, | NULL, 0, sysctl_hw_usb_template_power, | ||||
"I", "USB bus power consumption in mA at 5V"); | "I", "USB bus power consumption in mA at 5V"); | ||||
static int usb_template_power = 500; /* 500mA */ | static int usb_template_power = 500; /* 500mA */ | ||||
▲ Show 20 Lines • Show All 1,361 Lines • Show Last 20 Lines |