Skip to content

Commit

Permalink
Silicon/Rockchip: Rename gOhciDeviceProtocol to gOhciDeviceProtocolGuid
Browse files Browse the repository at this point in the history
  • Loading branch information
mariobalanica committed Jul 7, 2023
1 parent 37d0c71 commit 175d90f
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ OhciComponentNameGetControllerName (
Status = EfiTestManagedDevice (
ControllerHandle,
gOhciDriverBinding.DriverBindingHandle,
&gOhciDeviceProtocol
&gOhciDeviceProtocolGuid
);
if (EFI_ERROR (Status)) {
return Status;
Expand Down
10 changes: 5 additions & 5 deletions edk2-rockchip/Silicon/Rockchip/Drivers/OhciDxe/Ohci.c
Original file line number Diff line number Diff line change
Expand Up @@ -2135,7 +2135,7 @@ OHCIDriverBindingSupported (
// Connect to the non-discoverable device
//
Status = gBS->OpenProtocol (ControllerHandle,
&gOhciDeviceProtocol,
&gOhciDeviceProtocolGuid,
(VOID **)&Dev,
This->DriverBindingHandle,
ControllerHandle,
Expand All @@ -2148,7 +2148,7 @@ OHCIDriverBindingSupported (
// Clean up.
//
gBS->CloseProtocol (ControllerHandle,
&gOhciDeviceProtocol,
&gOhciDeviceProtocolGuid,
This->DriverBindingHandle,
ControllerHandle);

Expand Down Expand Up @@ -2187,7 +2187,7 @@ OHCIDriverBindingStart (
}

Status = gBS->OpenProtocol (ControllerHandle,
&gOhciDeviceProtocol,
&gOhciDeviceProtocolGuid,
(VOID **)&Ohc->Protocol,
This->DriverBindingHandle,
ControllerHandle,
Expand Down Expand Up @@ -2328,7 +2328,7 @@ OHCIDriverBindingStart (
NULL
);
gBS->CloseProtocol (ControllerHandle,
&gOhciDeviceProtocol,
&gOhciDeviceProtocolGuid,
This->DriverBindingHandle,
ControllerHandle);
FREE_MEM_PAGE:
Expand Down Expand Up @@ -2382,7 +2382,7 @@ OHCIDriverBindingStop (

gBS->CloseProtocol (
Controller,
&gOhciDeviceProtocol,
&gOhciDeviceProtocolGuid,
This->DriverBindingHandle,
Controller
);
Expand Down
2 changes: 1 addition & 1 deletion edk2-rockchip/Silicon/Rockchip/Drivers/OhciDxe/OhciDxe.inf
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
gEfiEndOfDxeEventGroupGuid

[Protocols]
gOhciDeviceProtocol ## TO_START
gOhciDeviceProtocolGuid ## TO_START
gEfiUsbHcProtocolGuid ## BY_START

[Depex]
Expand Down
4 changes: 2 additions & 2 deletions edk2-rockchip/Silicon/Rockchip/Drivers/UsbHcdInitDxe/UsbHcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ RegisterOhciController (
goto FreeOhciDevice;
}

CopyGuid (&OhciDevicePath->Vendor.Guid, &gOhciDeviceProtocol);
CopyGuid (&OhciDevicePath->Vendor.Guid, &gOhciDeviceProtocolGuid);

/* Device paths must be unique */
OhciDevicePath->BaseAddress = OhciDevice->BaseAddress;
Expand All @@ -277,7 +277,7 @@ RegisterOhciController (
Handle = NULL;
Status = gBS->InstallMultipleProtocolInterfaces (&Handle,
&gEfiDevicePathProtocolGuid, OhciDevicePath,
&gOhciDeviceProtocol, OhciDevice,
&gOhciDeviceProtocolGuid, OhciDevice,
NULL);
if (EFI_ERROR (Status)) {
goto FreeOhciDevicePath;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
gRockchipTokenSpaceGuid.PcdDwc3Size

[Protocols]
gOhciDeviceProtocol ## PRODUCES
gOhciDeviceProtocolGuid ## PRODUCES

[Guids]
gEfiEndOfDxeEventGroupGuid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ typedef struct {
UINT32 BaseAddress;
} OHCI_DEVICE_PROTOCOL;

extern EFI_GUID gOhciDeviceProtocol;
extern EFI_GUID gOhciDeviceProtocolGuid;

#endif // _OHCI_DEVICE_PROTOCOL_H_
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ PlatformBootManagerBeforeConsole (
//
// Connect USB OHCI controller(s)
//
FilterAndProcess (&gOhciDeviceProtocol, NULL, Connect);
FilterAndProcess (&gOhciDeviceProtocolGuid, NULL, Connect);

//
// Connect the Block I/O device produced by the SD/eMMC device that
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@
gEfiBlockIoProtocolGuid
gEsrtManagementProtocolGuid
gPlatformBootManagerProtocolGuid
gOhciDeviceProtocol
gOhciDeviceProtocolGuid
2 changes: 1 addition & 1 deletion edk2-rockchip/Silicon/Rockchip/RockchipPkg.dec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
gRk860xRegulatorProtocolGuid = { 0xb9ef9018, 0x2096, 0x4bf5, { 0x94, 0xb2, 0x70, 0x32, 0xb9, 0xa9, 0xa4, 0x29 } }
gRockchipCrtcProtocolGuid = { 0xC128406A, 0x99D9, 0x11EC, { 0x99, 0x27, 0xF4, 0x2A, 0x7D, 0xCB, 0x92, 0x5D } }
gRockchipConnectorProtocolGuid = { 0x50439CB6, 0x9B85, 0x11EC, { 0x95, 0x73, 0xF4, 0x2A, 0x7D, 0xCB, 0x92, 0x5D } }
gOhciDeviceProtocol = { 0x54bce5e6, 0xbaae, 0x488a, { 0x82, 0x67, 0xc0, 0x85, 0x7f, 0xb4, 0xe8, 0x05 } }
gOhciDeviceProtocolGuid = { 0x54bce5e6, 0xbaae, 0x488a, { 0x82, 0x67, 0xc0, 0x85, 0x7f, 0xb4, 0xe8, 0x05 } }

[Guids]
gRockchipTokenSpaceGuid = { 0xc620b83a, 0x3175, 0x11ec, { 0x95, 0xb4, 0xf4, 0x2a, 0x7d, 0xcb, 0x92, 0x5d } }
Expand Down

0 comments on commit 175d90f

Please sign in to comment.