mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-06 19:30:46 +00:00
DM USB: introduce struct usb_native_devinfo
Current design cannot get physical USB device information without the creation of pci_xhci_dev_emu. This brings some difficulties in certain situations, hence struct usb_native_devinfo is introduced to describe neccessary information to solve this trouble. Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com> Reviewed-by: Liang Yang <liang3.yang@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
@@ -36,14 +36,10 @@ struct usb_dev_ep {
|
||||
|
||||
struct usb_dev {
|
||||
/* physical device info */
|
||||
struct usb_native_devinfo info;
|
||||
int addr;
|
||||
int version;
|
||||
int speed;
|
||||
int configuration;
|
||||
uint8_t port;
|
||||
uint8_t bus;
|
||||
uint8_t pid;
|
||||
uint16_t vid;
|
||||
|
||||
/* interface info */
|
||||
int if_num;
|
||||
@@ -55,8 +51,7 @@ struct usb_dev {
|
||||
struct usb_dev_ep epo[USB_NUM_ENDPOINT];
|
||||
|
||||
/* libusb data */
|
||||
libusb_device *ldev;
|
||||
libusb_device_handle *handle;
|
||||
libusb_device_handle *handle;
|
||||
};
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user