Rename XtLdrProtocol variable
This commit is contained in:
parent
f2ab4894a5
commit
f2887dba1f
@ -126,7 +126,7 @@ BpPlayTune(IN PWCHAR Arguments)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Wait for duration time */
|
/* Wait for duration time */
|
||||||
XtLdrProto->Util.SleepExecution(60000 * Duration / Tempo);
|
XtLdrProtocol->Util.SleepExecution(60000 * Duration / Tempo);
|
||||||
|
|
||||||
/* Reset pitch and duration */
|
/* Reset pitch and duration */
|
||||||
Pitch = -1;
|
Pitch = -1;
|
||||||
@ -195,7 +195,7 @@ XtLdrModuleMain(IN EFI_HANDLE ImageHandle,
|
|||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
/* Open the XTLDR protocol */
|
/* Open the XTLDR protocol */
|
||||||
Status = BlGetXtLdrProtocol(SystemTable, ImageHandle, &XtLdrProto);
|
Status = BlGetXtLdrProtocol(SystemTable, ImageHandle, &XtLdrProtocol);
|
||||||
if(Status != STATUS_EFI_SUCCESS)
|
if(Status != STATUS_EFI_SUCCESS)
|
||||||
{
|
{
|
||||||
/* Failed to open the protocol, return error */
|
/* Failed to open the protocol, return error */
|
||||||
@ -203,7 +203,7 @@ XtLdrModuleMain(IN EFI_HANDLE ImageHandle,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Play the tune set in the configuration */
|
/* Play the tune set in the configuration */
|
||||||
BpPlayTune(XtLdrProto->Config.GetValue(L"TUNE"));
|
BpPlayTune(XtLdrProtocol->Config.GetValue(L"TUNE"));
|
||||||
|
|
||||||
/* Return success */
|
/* Return success */
|
||||||
return STATUS_EFI_SUCCESS;
|
return STATUS_EFI_SUCCESS;
|
||||||
|
@ -10,4 +10,4 @@
|
|||||||
|
|
||||||
|
|
||||||
/* XTLDR protocol handler */
|
/* XTLDR protocol handler */
|
||||||
PXTBL_LOADER_PROTOCOL XtLdrProto;
|
PXTBL_LOADER_PROTOCOL XtLdrProtocol;
|
||||||
|
@ -13,6 +13,6 @@
|
|||||||
|
|
||||||
|
|
||||||
/* XTLDR protocol handler */
|
/* XTLDR protocol handler */
|
||||||
EXTERN PXTBL_LOADER_PROTOCOL XtLdrProto;
|
EXTERN PXTBL_LOADER_PROTOCOL XtLdrProtocol;
|
||||||
|
|
||||||
#endif/* __XTLDR_BEEP_GLOBALS_H */
|
#endif/* __XTLDR_BEEP_GLOBALS_H */
|
||||||
|
@ -51,7 +51,7 @@ XtLdrModuleMain(IN EFI_HANDLE ImageHandle,
|
|||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
/* Open the XTLDR protocol */
|
/* Open the XTLDR protocol */
|
||||||
Status = BlGetXtLdrProtocol(SystemTable, ImageHandle, &XtLdrProto);
|
Status = BlGetXtLdrProtocol(SystemTable, ImageHandle, &XtLdrProtocol);
|
||||||
if(Status != STATUS_EFI_SUCCESS)
|
if(Status != STATUS_EFI_SUCCESS)
|
||||||
{
|
{
|
||||||
/* Failed to open the protocol, return error */
|
/* Failed to open the protocol, return error */
|
||||||
@ -62,8 +62,8 @@ XtLdrModuleMain(IN EFI_HANDLE ImageHandle,
|
|||||||
BlpDummyProtocol.BootSystem = BlBootDummyOS;
|
BlpDummyProtocol.BootSystem = BlBootDummyOS;
|
||||||
|
|
||||||
/* Register XTOS boot protocol */
|
/* Register XTOS boot protocol */
|
||||||
XtLdrProto->Boot.RegisterProtocol(L"XTOS", &DummyGuid);
|
XtLdrProtocol->Boot.RegisterProtocol(L"XTOS", &DummyGuid);
|
||||||
|
|
||||||
/* Register DUMMY protocol as XTOS boot protocol */
|
/* Register DUMMY protocol as XTOS boot protocol */
|
||||||
return XtLdrProto->Protocol.Install(&BlpDummyProtocol, &DummyGuid);
|
return XtLdrProtocol->Protocol.Install(&BlpDummyProtocol, &DummyGuid);
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/* XTLDR protocol handler */
|
/* XTLDR protocol handler */
|
||||||
PXTBL_LOADER_PROTOCOL XtLdrProto;
|
PXTBL_LOADER_PROTOCOL XtLdrProtocol;
|
||||||
|
|
||||||
/* Dummy Boot Protocol handler */
|
/* Dummy Boot Protocol handler */
|
||||||
XTBL_BOOT_PROTOCOL BlpDummyProtocol;
|
XTBL_BOOT_PROTOCOL BlpDummyProtocol;
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/* XTLDR protocol handler */
|
/* XTLDR protocol handler */
|
||||||
EXTERN PXTBL_LOADER_PROTOCOL XtLdrProto;
|
EXTERN PXTBL_LOADER_PROTOCOL XtLdrProtocol;
|
||||||
|
|
||||||
/* Dummy Boot Protocol handler */
|
/* Dummy Boot Protocol handler */
|
||||||
EXTERN XTBL_BOOT_PROTOCOL BlpDummyProtocol;
|
EXTERN XTBL_BOOT_PROTOCOL BlpDummyProtocol;
|
||||||
|
Loading…
Reference in New Issue
Block a user