mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-29 21:49:05 +00:00
DM USB: xHCI: add xHCI de-initialization support
add support for xHCI de-initialization when the guest dose shutdown or reboot. Change-Id: I3dfc1ed1a905b455ef455dff2065e872aa5c1ef8 Signed-off-by: Wu, Xiaoguang <xiaoguang.wu@intel.com> Reviewed-by: Shuo Liu <shuo.a.liu@intel.com> Reviewed-by: Yu Wang <yu1.wang@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -118,6 +118,10 @@ struct usb_dev_sys_ctx_info {
|
||||
pthread_t thread;
|
||||
int thread_exit;
|
||||
|
||||
/* handles of callback */
|
||||
libusb_hotplug_callback_handle conn_handle;
|
||||
libusb_hotplug_callback_handle disconn_handle;
|
||||
|
||||
/*
|
||||
* The following callback funtions will be registered by
|
||||
* the code from HCD(eg: XHCI, EHCI...) emulation layer.
|
||||
@@ -137,6 +141,7 @@ struct usb_dev_sys_ctx_info {
|
||||
int usb_dev_sys_init(usb_dev_sys_cb conn_cb, usb_dev_sys_cb disconn_cb,
|
||||
usb_dev_sys_cb notify_cb, usb_dev_sys_cb intr_cb,
|
||||
void *hci_data, int log_level);
|
||||
void usb_dev_sys_deinit(void);
|
||||
void *usb_dev_init(void *pdata, char *opt);
|
||||
void usb_dev_deinit(void *pdata);
|
||||
int usb_dev_info(void *pdata, int type, void *value, int size);
|
||||
|
||||
Reference in New Issue
Block a user