VSF Documented
|
#include "shell/sys/linux/vsf_linux_cfg.h"
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/usb.h>
Data Structures | |
struct | usb_driver_adapter_vsf |
struct | vsf_usbh_adapter_linux_t |
Macros | |
#define | __VSF_USBH_CLASS_IMPLEMENT_CLASS__ |
#define | __VSF_EDA_CLASS_INHERIT__ |
Typedefs | |
typedef struct vsf_usbh_adapter_linux_t | vsf_usbh_adapter_linux_t |
Functions | |
int | usb_urb_dir_in (struct urb *urb) |
void | vsf_linux_usb_init (vk_usbh_t *usbh) |
void | usb_anchor_urb (struct urb *urb, struct usb_anchor *anchor) |
void | usb_unanchor_urb (struct urb *urb) |
struct urb * | usb_get_from_anchor (struct usb_anchor *anchor) |
void | usb_kill_anchored_urbs (struct usb_anchor *anchor) |
void | usb_unlink_anchored_urbs (struct usb_anchor *anchor) |
int | usb_wait_anchor_empty_timeout (struct usb_anchor *anchor, unsigned int timeout) |
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) |
void | usb_init_urb (struct urb *urb) |
struct urb * | usb_get_urb (struct urb *urb) |
int | __usb_init_vsfurb (struct urb *urb, struct usb_device *dev) |
struct urb * | usb_alloc_urb (int iso_packets, gfp_t flags) |
void | usb_free_urb (struct urb *urb) |
int | usb_submit_urb (struct urb *urb, gfp_t flags) |
int | usb_unlink_urb (struct urb *urb) |
void | usb_kill_urb (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_reset_device (struct usb_device *udev) |
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_clear_halt (struct usb_device *udev, int pipe) |
int | usb_set_interface (struct usb_device *udev, int ifnum, int alternate) |
int | usb_set_configuration (struct usb_device *udev, int configuration) |
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) |
struct usb_interface * | usb_find_interface (struct usb_driver *drv, int minor) |
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) |
#define __VSF_USBH_CLASS_IMPLEMENT_CLASS__ |
#define __VSF_EDA_CLASS_INHERIT__ |
typedef struct vsf_usbh_adapter_linux_t vsf_usbh_adapter_linux_t |
|
extern |
void vsf_linux_usb_init | ( | vk_usbh_t * | usbh | ) |
void usb_anchor_urb | ( | struct urb * | urb, |
struct usb_anchor * | anchor | ||
) |
void usb_unanchor_urb | ( | struct urb * | urb | ) |
struct urb * usb_get_from_anchor | ( | struct usb_anchor * | anchor | ) |
void usb_kill_anchored_urbs | ( | struct usb_anchor * | anchor | ) |
void usb_unlink_anchored_urbs | ( | struct usb_anchor * | anchor | ) |
int usb_wait_anchor_empty_timeout | ( | struct usb_anchor * | anchor, |
unsigned int | timeout | ||
) |
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 | ||
) |
void usb_init_urb | ( | struct urb * | urb | ) |
int __usb_init_vsfurb | ( | struct urb * | urb, |
struct usb_device * | dev | ||
) |
void usb_free_urb | ( | struct urb * | urb | ) |
int usb_unlink_urb | ( | struct urb * | urb | ) |
void usb_kill_urb | ( | 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_reset_device | ( | struct usb_device * | udev | ) |
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_clear_halt | ( | struct usb_device * | udev, |
int | pipe | ||
) |
int usb_set_interface | ( | struct usb_device * | udev, |
int | ifnum, | ||
int | alternate | ||
) |
int usb_set_configuration | ( | struct usb_device * | udev, |
int | configuration | ||
) |
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 | ||
) |
struct usb_interface * usb_find_interface | ( | struct usb_driver * | drv, |
int | minor | ||
) |
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 | ||
) |