Support ICC build .
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4039 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -94,7 +94,7 @@ enum {
|
||||
// Host software return timeout if port status doesn't change
|
||||
// after 500ms(LOOP * STALL = 100 * 5ms), set by experience
|
||||
//
|
||||
USB_WAIT_PORT_STS_CHANGE_LOOP = 100,
|
||||
USB_WAIT_PORT_STS_CHANGE_LOOP = 100
|
||||
};
|
||||
|
||||
#pragma pack(1)
|
||||
|
Reference in New Issue
Block a user