|
#define | module_usb_driver(__usb_driver) module_driver(__usb_driver, usb_register, usb_deregister) |
|
#define | module_usb_driver_init(__usb_driver) module_driver_init(__usb_driver) |
|
#define | USB_DEVICE_ID_MATCH_VENDOR VSF_USBH_MATCH_FLAGS_VENDOR |
|
#define | USB_DEVICE_ID_MATCH_PRODUCT VSF_USBH_MATCH_FLAGS_PRODUCT |
|
#define | USB_DEVICE_ID_MATCH_DEVICE (USB_DEVICE_ID_MATCH_VENDOR | USB_DEVICE_ID_MATCH_PRODUCT) |
|
#define | USB_DEVICE_ID_MATCH_DEV_CLASS VSF_USBH_MATCH_FLAGS_DEV_CLASS |
|
#define | USB_DEVICE_ID_MATCH_DEV_SUBCLASS VSF_USBH_MATCH_FLAGS_DEV_SUBCLASS |
|
#define | USB_DEVICE_ID_MATCH_DEV_PROTOCOL VSF_USBH_MATCH_FLAGS_DEV_PROTOCOL |
|
#define | USB_DEVICE_ID_MATCH_DEV_INFO (USB_DEVICE_ID_MATCH_DEV_CLASS | USB_DEVICE_ID_MATCH_DEV_SUBCLASS | USB_DEVICE_ID_MATCH_DEV_PROTOCOL) |
|
#define | USB_DEVICE_ID_MATCH_INT_CLASS VSF_USBH_MATCH_FLAGS_IFS_CLASS |
|
#define | USB_DEVICE_ID_MATCH_INT_SUBCLASS VSF_USBH_MATCH_FLAGS_IFS_SUBCLASS |
|
#define | USB_DEVICE_ID_MATCH_INT_PROTOCOL VSF_USBH_MATCH_FLAGS_IFS_PROTOCOL |
|
#define | USB_DEVICE_ID_MATCH_INT_INFO (USB_DEVICE_ID_MATCH_INT_CLASS | USB_DEVICE_ID_MATCH_INT_SUBCLASS | USB_DEVICE_ID_MATCH_INT_PROTOCOL) |
|
#define | USB_DEVICE_ID_MATCH_INT_NUMBER VSF_USBH_MATCH_FLAGS_IFS_NUM |
|
#define | usb_device_id vk_usbh_dev_id_t |
|
#define | USB_DEVICE(__vid, __pid) |
|
#define | URB_SHORT_NOT_OK 0x0001 |
|
#define | URB_ISO_ASAP 0x0002 |
|
#define | URB_NO_TRANSFER_DMA_MAP 0x0004 |
|
#define | URB_ZERO_PACKET 0x0040 |
|
#define | URB_NO_INTERRUPT 0x0080 |
|
#define | URB_FREE_BUFFER 0x0100 |
|
#define | to_usb_interface(__d) vsf_container_of(__d, struct usb_interface, dev) |
|
#define | USB_MAXENDPOINTS 30 |
|
#define | USB_MAXINTERFACES 32 |
|
#define | USB_MAXIADS (USB_MAXINTERFACES / 2) |
|
#define | to_usb_device(__d) vsf_container_of(__d, struct usb_device, dev) |
|
#define | PIPE_ISOCHRONOUS USB_ENDPOINT_XFER_ISOC |
|
#define | PIPE_INTERRUPT USB_ENDPOINT_XFER_INT |
|
#define | PIPE_CONTROL USB_ENDPOINT_XFER_CONTROL |
|
#define | PIPE_BULK USB_ENDPOINT_XFER_BULK |
|
#define | usb_pipein(__pipe) |
|
#define | usb_pipeout(__pipe) (!usb_pipein(__pipe)) |
|
#define | usb_pipedevice(__pipe) |
|
#define | usb_pipeendpoint(__pipe) |
|
#define | usb_pipetype(__pipe) |
|
#define | usb_pipeisoc(__pipe) (usb_pipetype(__pipe) == PIPE_ISOCHRONOUS) |
|
#define | usb_pipeint(__pipe) (usb_pipetype(__pipe) == PIPE_INTERRUPT) |
|
#define | usb_pipeCONTROL(__pipe) (usb_pipetype(__pipe) == PIPE_CONTROL) |
|
#define | usb_pipebulk(__pipe) (usb_pipetype(__pipe) == PIPE_BULK) |
|
#define | usb_sndctrlpipe(__udev, __endpoint) __vk_usbh_get_pipe_value((__udev)->__dev, __endpoint, PIPE_CONTROL, (__udev)->ep_out[__endpoint]->desc.wMaxPacketSize) |
|
#define | usb_rcvctrlpipe(__udev, __endpoint) __vk_usbh_get_pipe_value((__udev)->__dev, __endpoint | USB_DIR_IN, PIPE_CONTROL, (__udev)->ep_out[__endpoint]->desc.wMaxPacketSize) |
|
#define | usb_sndisocpipe(__udev, __endpoint) __vk_usbh_get_pipe_value((__udev)->__dev, __endpoint, PIPE_ISOCHRONOUS, (__udev)->ep_out[__endpoint]->desc.wMaxPacketSize) |
|
#define | usb_rcvisocpipe(__udev, __endpoint) __vk_usbh_get_pipe_value((__udev)->__dev, __endpoint | USB_DIR_IN, PIPE_ISOCHRONOUS, (__udev)->ep_out[__endpoint]->desc.wMaxPacketSize) |
|
#define | usb_sndbulkpipe(__udev, __endpoint) __vk_usbh_get_pipe_value((__udev)->__dev, __endpoint, PIPE_BULK, (__udev)->ep_out[__endpoint]->desc.wMaxPacketSize) |
|
#define | usb_rcvbulkpipe(__udev, __endpoint) __vk_usbh_get_pipe_value((__udev)->__dev, __endpoint | USB_DIR_IN, PIPE_BULK, (__udev)->ep_out[__endpoint]->desc.wMaxPacketSize) |
|
#define | usb_sndintpipe(__udev, __endpoint) __vk_usbh_get_pipe_value((__udev)->__dev, __endpoint, PIPE_INTERRUPT, (__udev)->ep_out[__endpoint]->desc.wMaxPacketSize) |
|
#define | usb_rcvintpipe(__udev, __endpoint) __vk_usbh_get_pipe_value((__udev)->__dev, __endpoint | USB_DIR_IN, PIPE_INTERRUPT, (__udev)->ep_out[__endpoint]->desc.wMaxPacketSize) |
|
#define | usb_enable_autosuspend(__udev) |
|
#define | usb_disable_autosuspend(__udev) |
|
#define | usb_autopm_get_interface(__udev) 0 |
|
#define | usb_autopm_put_interface(__udev) 0 |
|
#define | usb_put_urb usb_free_urb |
|
#define | usb_register(__drv) usb_register_driver((__drv), THIS_MODULE, KBUILD_MODNAME) |
|
#define | usb_deregister(__drv) usb_deregister_driver((__drv)) |
|
|
uint32_t | __vk_usbh_get_pipe_value (vk_usbh_dev_t *dev, uint8_t endpoint, uint8_t type, uint16_t size) |
|
int | usb_reset_device (struct usb_device *udev) |
|
void | usb_init_urb (struct urb *urb) |
|
struct urb * | usb_alloc_urb (int iso_packets, gfp_t mem_flags) |
|
void | usb_free_urb (struct urb *urb) |
|
struct urb * | usb_get_urb (struct urb *urb) |
|
int | usb_submit_urb (struct urb *urb, gfp_t mem_flags) |
|
int | usb_unlink_urb (struct urb *urb) |
|
void | usb_kill_urb (struct urb *urb) |
|
void | usb_poison_urb (struct urb *urb) |
|
void | usb_unpoison_urb (struct urb *urb) |
|
void | usb_block_urb (struct urb *urb) |
|
void | usb_kill_anchored_urbs (struct usb_anchor *anchor) |
|
void | usb_poison_anchored_urbs (struct usb_anchor *anchor) |
|
void | usb_unpoison_anchored_urbs (struct usb_anchor *anchor) |
|
void | usb_unlink_anchored_urbs (struct usb_anchor *anchor) |
|
void | usb_anchor_suspend_wakeups (struct usb_anchor *anchor) |
|
void | usb_anchor_resume_wakeups (struct usb_anchor *anchor) |
|
void | usb_anchor_urb (struct urb *urb, struct usb_anchor *anchor) |
|
void | usb_unanchor_urb (struct urb *urb) |
|
int | usb_wait_anchor_empty_timeout (struct usb_anchor *anchor, unsigned int timeout) |
|
struct urb * | usb_get_from_anchor (struct usb_anchor *anchor) |
|
void | usb_scuttle_anchored_urbs (struct usb_anchor *anchor) |
|
int | usb_urb_dir_in (struct urb *urb) |
|
int | usb_control_msg (struct usb_device *udev, unsigned int pipe, __u8 request, __u8 requesttype, __u16 value, __u16 index, void *data, __u16 size, int timeout) |
|
int | usb_control_msg_send (struct usb_device *udev, __u8 endpoint, __u8 request, __u8 requesttype, __u16 value, __u16 index, const void *data, __u16 size, int timeout, gfp_t memflags) |
|
int | usb_control_msg_recv (struct usb_device *udev, __u8 endpoint, __u8 request, __u8 requesttype, __u16 value, __u16 index, void *data, __u16 size, int timeout, gfp_t memflags) |
|
int | usb_interrupt_msg (struct usb_device *udev, unsigned int pipe, void *data, int len, int *actual_length, int timeout) |
|
int | usb_bulk_msg (struct usb_device *udev, unsigned int pipe, void *data, int len, int *actual_length, int timeout) |
|
int | usb_get_descriptor (struct usb_device *udev, unsigned char type, unsigned char index, void *buf, int size) |
|
int | usb_get_status (struct usb_device *udev, int recip, int type, int target, void *data) |
|
int | usb_string (struct usb_device *udev, int index, char *buf, size_t size) |
|
int | usb_clear_halt (struct usb_device *udev, int pipe) |
|
int | usb_reset_configuration (struct usb_device *udev) |
|
int | usb_set_interface (struct usb_device *udev, int ifnum, int alternate) |
|
int | usb_reset_endpoint (struct usb_device *udev, unsigned int epaddr) |
|
int | usb_set_configuration (struct usb_device *dev, int configuration) |
|
void | usb_register_driver (struct usb_driver *drv, struct module *mod, const char *name) |
|
void | usb_deregister_driver (struct usb_driver *drv) |
|
int | usb_driver_claim_interface (struct usb_driver *driver, struct usb_interface *iface, void *data) |
|
void | usb_driver_release_interface (struct usb_driver *driver, struct usb_interface *iface) |
|
struct usb_interface * | usb_find_interface (struct usb_driver *drv, int minor) |
|
struct usb_interface * | usb_ifnum_to_if (const struct usb_device *dev, unsigned ifnum) |
|
struct usb_host_interface * | usb_altnum_to_altsetting (const struct usb_interface *intf, unsigned int altnum) |
|
struct usb_host_interface * | usb_find_alt_setting (struct usb_host_config *config, unsigned int iface_num, unsigned int alt_num) |
|
int | usb_find_common_endpoints (struct usb_host_interface *alt, struct usb_endpoint_descriptor **bulk_in, struct usb_endpoint_descriptor **bulk_out, struct usb_endpoint_descriptor **int_in, struct usb_endpoint_descriptor **int_out) |
|
int | usb_find_common_endpoints_reverse (struct usb_host_interface *alt, struct usb_endpoint_descriptor **bulk_in, struct usb_endpoint_descriptor **bulk_out, struct usb_endpoint_descriptor **int_in, struct usb_endpoint_descriptor **int_out) |
|
void | vsf_linux_usb_init (vk_usbh_t *usbh) |
|