usb数据结构(data structure)

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;
				};
			};
		};
	};
};

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值