diff options
author | yshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-10-08 06:45:07 +0000 |
---|---|---|
committer | yshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-10-08 06:45:07 +0000 |
commit | 23c326c20199413241245cf2e32cfaaec9bc7373 (patch) | |
tree | 2018fccfc66c3c857225b00b83dd9c3c4a3d1c13 /MdeModulePkg/Bus/Usb/UsbBusDxe | |
parent | 41e8ff2781f3ca14f73ef5f39e781ccba8cb373d (diff) | |
download | edk2-platforms-23c326c20199413241245cf2e32cfaaec9bc7373.tar.xz |
Support ICC build .
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4039 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus/Usb/UsbBusDxe')
-rw-r--r-- | MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.c | 12 | ||||
-rw-r--r-- | MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.h | 2 |
2 files changed, 7 insertions, 7 deletions
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);
}
}
}
diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.h b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.h index 36b6a43482..e31ba27586 100644 --- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.h +++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.h @@ -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)
|