Clean up the private GUID definition in module Level.
0. Remove the unused private GUID from module source files. 1. Use gEfiCallerIdGuid replace of the private module GUID. 2. Add the public header files to define HII FormSet and PackageList GUID used in every HII driver. 3. Move two EBC protocols for debug purpose from EBC driver to MdeModulePkg Include directory. Signed-off-by: lgao4 Reviewed-by: ydong10 gdong1 tye jfan12 wli12 rsun3 jyao1 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12373 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -15,11 +15,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
#include "UsbBus.h"
|
||||
|
||||
//
|
||||
// USB_BUS_PROTOCOL is only used to locate USB_BUS
|
||||
//
|
||||
EFI_GUID mUsbBusProtocolGuid = EFI_USB_BUS_PROTOCOL_GUID;
|
||||
|
||||
EFI_USB_IO_PROTOCOL mUsbIoProtocol = {
|
||||
UsbIoControlTransfer,
|
||||
UsbIoBulkTransfer,
|
||||
@@ -982,7 +977,7 @@ UsbBusBuildProtocol (
|
||||
//
|
||||
Status = gBS->InstallProtocolInterface (
|
||||
&Controller,
|
||||
&mUsbBusProtocolGuid,
|
||||
&gEfiCallerIdGuid,
|
||||
EFI_NATIVE_INTERFACE,
|
||||
&UsbBus->BusId
|
||||
);
|
||||
@@ -1045,7 +1040,7 @@ FREE_ROOTHUB:
|
||||
}
|
||||
|
||||
UNINSTALL_USBBUS:
|
||||
gBS->UninstallProtocolInterface (Controller, &mUsbBusProtocolGuid, &UsbBus->BusId);
|
||||
gBS->UninstallProtocolInterface (Controller, &gEfiCallerIdGuid, &UsbBus->BusId);
|
||||
|
||||
CLOSE_HC:
|
||||
if (UsbBus->Usb2Hc != NULL) {
|
||||
@@ -1277,7 +1272,7 @@ UsbBusControllerDriverStart (
|
||||
//
|
||||
Status = gBS->OpenProtocol (
|
||||
Controller,
|
||||
&mUsbBusProtocolGuid,
|
||||
&gEfiCallerIdGuid,
|
||||
(VOID **) &UsbBusId,
|
||||
This->DriverBindingHandle,
|
||||
Controller,
|
||||
@@ -1298,7 +1293,7 @@ UsbBusControllerDriverStart (
|
||||
//
|
||||
Status = gBS->OpenProtocol (
|
||||
Controller,
|
||||
&mUsbBusProtocolGuid,
|
||||
&gEfiCallerIdGuid,
|
||||
(VOID **) &UsbBusId,
|
||||
This->DriverBindingHandle,
|
||||
Controller,
|
||||
@@ -1417,7 +1412,7 @@ UsbBusControllerDriverStop (
|
||||
//
|
||||
Status = gBS->OpenProtocol (
|
||||
Controller,
|
||||
&mUsbBusProtocolGuid,
|
||||
&gEfiCallerIdGuid,
|
||||
(VOID **) &BusId,
|
||||
This->DriverBindingHandle,
|
||||
Controller,
|
||||
@@ -1460,7 +1455,7 @@ UsbBusControllerDriverStop (
|
||||
//
|
||||
// Uninstall the bus identifier and close USB_HC/USB2_HC protocols
|
||||
//
|
||||
gBS->UninstallProtocolInterface (Controller, &mUsbBusProtocolGuid, &Bus->BusId);
|
||||
gBS->UninstallProtocolInterface (Controller, &gEfiCallerIdGuid, &Bus->BusId);
|
||||
|
||||
if (Bus->Usb2Hc != NULL) {
|
||||
gBS->CloseProtocol (
|
||||
|
Reference in New Issue
Block a user