sturct usb_device {
struct usb_host_endpoint ep0; /* endpoint 0=contrl point */
struct usb_device_descriptor descriptor;
struct usb_host_config *config; /* all of the configs */
struct usb_host_config *actconfig { /* current config */
struct usb_config_descriptor desc;
struct usb_interface *interface[USB_MAXINTERFACES] { /* all of the association interfaces */
struct device dev; /* interface specific device info */
/* Driver: we can use this func to get the assoc device.
* struct usb_device *interface_to_usbdev(struct usb_interface *intf) {
* return to_usb_device(intf->dev.parent);
* }
*/
struct usb_host_interface *altsetting;
struct usb_host_interface *cur_altsetting {
struct usb_interface_descriptor desc;
/* array of desc.bNumEndpoint endpoints associated with this
* interface setting. these will be in no particular order.
*/
struct usb_host_endpoint *endpoint {
struct usb_endpoint_descriptor desc;
struct usb_ss_ep_comp_descriptor ss_ep_comp;
struct list_head urb_list;
};
};
};
};
};
usb数据结构(data structure)
最新推荐文章于 2024-05-14 16:54:37 发布