X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;ds=sidebyside;f=MdeModulePkg%2FBus%2FUsb%2FUsbBusDxe%2FUsbHub.c;h=171a780d0ccba1bf4b144342091187672578fbf6;hb=23c326c20199413241245cf2e32cfaaec9bc7373;hp=8a69ca6ecedb5fe3e5f29ec5d31349c657d02919;hpb=41e8ff2781f3ca14f73ef5f39e781ccba8cb373d;p=mirror_edk2.git diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.c b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.c index 8a69ca6ece..171a780d0c 100644 --- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.c +++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.c @@ -604,11 +604,11 @@ UsbOnHubInterrupt ( #define USB_HUB_MAP_SIZE 5 USB_CHANGE_FEATURE_MAP mHubFeatureMap[USB_HUB_MAP_SIZE] = { - {USB_PORT_STAT_C_CONNECTION, USB_HUB_C_PORT_CONNECT}, - {USB_PORT_STAT_C_ENABLE, USB_HUB_C_PORT_ENABLE}, - {USB_PORT_STAT_C_SUSPEND, USB_HUB_C_PORT_SUSPEND}, - {USB_PORT_STAT_C_OVERCURRENT, USB_HUB_C_PORT_OVER_CURRENT}, - {USB_PORT_STAT_C_RESET, USB_HUB_C_PORT_RESET}, + {USB_PORT_STAT_C_CONNECTION, EfiUsbPortConnectChange}, + {USB_PORT_STAT_C_ENABLE, EfiUsbPortEnableChange}, + {USB_PORT_STAT_C_SUSPEND, EfiUsbPortSuspendChange}, + {USB_PORT_STAT_C_OVERCURRENT, EfiUsbPortOverCurrentChange}, + {USB_PORT_STAT_C_RESET, EfiUsbPortResetChange}, }; #define USB_ROOT_HUB_MAP_SIZE 5 @@ -822,7 +822,7 @@ UsbHubClearPortChange ( Map = &mHubFeatureMap[Index]; if (USB_BIT_IS_SET (PortState.PortChangeStatus, Map->ChangedBit)) { - UsbHubCtrlClearPortFeature (HubIf->Device, Port, Map->Feature); + UsbHubCtrlClearPortFeature (HubIf->Device, Port, (UINT16) Map->Feature); } } }