FreeBSD kernel usb device Code
|
#include <sys/stdint.h>
#include <sys/stddef.h>
#include <sys/param.h>
#include <sys/queue.h>
#include <sys/types.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/bus.h>
#include <sys/module.h>
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/condvar.h>
#include <sys/sysctl.h>
#include <sys/sx.h>
#include <sys/unistd.h>
#include <sys/callout.h>
#include <sys/malloc.h>
#include <sys/priv.h>
#include <dev/usb/usb.h>
#include <dev/usb/usbdi.h>
#include <dev/usb/usb_core.h>
#include <dev/usb/usb_process.h>
#include <dev/usb/usb_device.h>
#include <dev/usb/usb_dynamic.h>
#include <dev/usb/usb_request.h>
Go to the source code of this file.
Functions | |
static usb_error_t | usb_temp_setup_by_index_w (struct usb_device *udev, uint16_t index) |
static uint8_t | usb_test_quirk_w (const struct usbd_lookup_info *info, uint16_t quirk) |
static int | usb_quirk_ioctl_w (unsigned long cmd, caddr_t data, int fflag, struct thread *td) |
static usb_error_t | usb_temp_get_desc_w (struct usb_device *udev, struct usb_device_request *req, const void **pPtr, uint16_t *pLength) |
static void | usb_temp_unsetup_w (struct usb_device *udev) |
void | usb_quirk_unload (void *arg) |
void | usb_temp_unload (void *arg) |
void | usb_bus_unload (void *arg) |
void usb_bus_unload | ( | void * | arg | ) |
Definition at line 154 of file usb_dynamic.c.
References usb_devclass_ptr.
|
static |
Definition at line 95 of file usb_dynamic.c.
void usb_quirk_unload | ( | void * | arg | ) |
Definition at line 123 of file usb_dynamic.c.
References usb_quirk_ioctl_p, usb_quirk_ioctl_w, usb_test_quirk_p, and usb_test_quirk_w.
Referenced by usb_quirk_uninit().
|
static |
Definition at line 101 of file usb_dynamic.c.
References USB_ERR_STALLED.
|
static |
Definition at line 83 of file usb_dynamic.c.
References USB_ERR_INVAL.
void usb_temp_unload | ( | void * | arg | ) |
Definition at line 138 of file usb_dynamic.c.
References usb_temp_get_desc_p, usb_temp_get_desc_w, usb_temp_setup_by_index_p, usb_temp_setup_by_index_w, usb_temp_unsetup_p, and usb_temp_unsetup_w.
|
static |
Definition at line 108 of file usb_dynamic.c.
References usb_device::usb_template_ptr, and usbd_free_config_desc().
|
static |
Definition at line 89 of file usb_dynamic.c.
devclass_t usb_devclass_ptr |
Definition at line 80 of file usb_dynamic.c.
Referenced by usb_attach_sub(), usb_bus_unload(), usb_needs_explore_all(), and usb_trigger_reprobe_on_off().
usb_quirk_ioctl_t* usb_quirk_ioctl_p = &usb_quirk_ioctl_w |
Definition at line 79 of file usb_dynamic.c.
Referenced by usb_quirk_init(), and usb_quirk_unload().
|
static |
Definition at line 69 of file usb_dynamic.c.
Referenced by usb_quirk_unload().
usb_handle_req_t* usb_temp_get_desc_p = &usb_temp_get_desc_w |
Definition at line 72 of file usb_dynamic.c.
Referenced by usb_handle_request(), usb_temp_init(), usb_temp_unload(), and usbd_get_hr_func().
|
static |
Definition at line 62 of file usb_dynamic.c.
Referenced by usb_temp_unload().
usb_temp_setup_by_index_t* usb_temp_setup_by_index_p = &usb_temp_setup_by_index_w |
Definition at line 73 of file usb_dynamic.c.
Referenced by usb_alloc_device(), usb_temp_init(), and usb_temp_unload().
|
static |
Definition at line 63 of file usb_dynamic.c.
Referenced by usb_temp_unload().
usb_temp_unsetup_t* usb_temp_unsetup_p = &usb_temp_unsetup_w |
Definition at line 77 of file usb_dynamic.c.
Referenced by usb_free_device(), usb_temp_init(), and usb_temp_unload().
|
static |
Definition at line 67 of file usb_dynamic.c.
Referenced by usb_temp_unload().
usb_test_quirk_t* usb_test_quirk_p = &usb_test_quirk_w |
Definition at line 78 of file usb_dynamic.c.
Referenced by usb_quirk_init(), usb_quirk_unload(), and usb_test_quirk().
|
static |
Definition at line 68 of file usb_dynamic.c.
Referenced by usb_quirk_unload().