mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-05 19:00:16 +00:00
DM USB: xHCI: remove old hub support code.
Previous design use bus and port(root hub port) for the identification to the native USB device. It cannot work properly under the multi-hub situation due to external USB hub is introduced. This patch removes old hub implementation code, and subsequent patches will be add support for mutiple hubs. Tracked-On: #1434 Signed-off-by: Liang Yang <liang3.yang@intel.com> Signed-off-by: Xiaoguang Wu <xiaoguang.wu@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
@@ -20,9 +20,6 @@
|
||||
#define USB_EP_NR(d) (USB_EP_ADDR(d) & 0xF)
|
||||
#define USB_EP_ERR_TYPE 0xFF
|
||||
|
||||
/* hub port start address */
|
||||
#define PORT_HUB_BASE 0x0A
|
||||
|
||||
enum {
|
||||
USB_INFO_VERSION,
|
||||
USB_INFO_SPEED,
|
||||
@@ -32,15 +29,6 @@ enum {
|
||||
USB_INFO_PID
|
||||
};
|
||||
|
||||
enum usb_native_dev_type {
|
||||
ROOT_HUB,
|
||||
USB_HUB,
|
||||
USB_DEV,
|
||||
USB_VALID_SUB_DEV,
|
||||
USB_INVALID_SUB_DEV,
|
||||
USB_TYPE_INVALID
|
||||
};
|
||||
|
||||
struct usb_dev_ep {
|
||||
uint8_t pid;
|
||||
uint8_t type;
|
||||
@@ -133,5 +121,4 @@ int usb_dev_reset(void *pdata);
|
||||
int usb_dev_data(void *pdata, struct usb_data_xfer *xfer, int dir, int epctx);
|
||||
enum usb_native_dev_type usb_get_parent_dev_type(void *pdata, uint16_t *bus,
|
||||
uint16_t *port);
|
||||
int usb_dev_is_hub(void *pdata);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user