FreeBSD kernel usb device Code
|
Go to the source code of this file.
Functions | |
uint8_t | usb_make_str_desc (void *ptr, uint16_t max_len, const char *s) |
void | usb_printbcd (char *p, uint16_t p_len, uint16_t bcd) |
void | usb_trim_spaces (char *p) |
int | usb_check_request (struct usb_device *, struct usb_device_request *) |
int usb_check_request | ( | struct usb_device * | , |
struct usb_device_request * | |||
) |
uint8_t usb_make_str_desc | ( | void * | ptr, |
uint16_t | max_len, | ||
const char * | s | ||
) |
Definition at line 193 of file usb_util.c.
References usb_string_descriptor::bDescriptorType, usb_string_descriptor::bLength, usb_string_descriptor::bString, UDESC_STRING, and USETW2.
Referenced by audio_init(), cdceem_init(), ehci_roothub_exec(), eth_init(), kbd_init(), midi_init(), modem_init(), mouse_init(), msc_init(), mtp_init(), multi_init(), ohci_roothub_exec(), phone_init(), serialnet_init(), uhci_roothub_exec(), usb_temp_sysctl(), and xhci_roothub_exec().
void usb_printbcd | ( | char * | p, |
uint16_t | p_len, | ||
uint16_t | bcd | ||
) |
Definition at line 159 of file usb_util.c.
void usb_trim_spaces | ( | char * | p | ) |
Definition at line 173 of file usb_util.c.
Referenced by usb_set_device_strings().