mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-08 04:09:11 +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:
@@ -163,6 +163,16 @@ struct usb_data_xfer {
|
||||
pthread_mutex_t mtx;
|
||||
};
|
||||
|
||||
struct usb_native_devinfo {
|
||||
int speed;
|
||||
uint8_t bus;
|
||||
uint8_t port;
|
||||
uint16_t bcd;
|
||||
uint16_t pid;
|
||||
uint16_t vid;
|
||||
void *priv_data;
|
||||
};
|
||||
|
||||
enum USB_ERRCODE {
|
||||
USB_ACK,
|
||||
USB_NAK,
|
||||
|
Reference in New Issue
Block a user