X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=UnixPkg%2FLibrary%2FUnixBdsLib%2FBdsPlatform.c;h=bac2cfd6cc57ce579cec157e9de3a74d9c944ab6;hb=d46f36324fa86c08386f57c2675c45e4c1e888ec;hp=7b11dd0f7d5f10cbc40f4f10f3ac0ddd4d0c3d26;hpb=b672348fea0c19c227d802d4d42699ea90ab7c28;p=mirror_edk2.git diff --git a/UnixPkg/Library/UnixBdsLib/BdsPlatform.c b/UnixPkg/Library/UnixBdsLib/BdsPlatform.c index 7b11dd0f7d..bac2cfd6cc 100644 --- a/UnixPkg/Library/UnixBdsLib/BdsPlatform.c +++ b/UnixPkg/Library/UnixBdsLib/BdsPlatform.c @@ -66,8 +66,9 @@ SetupVariableInit ( // BDS Platform Functions // VOID +EFIAPI PlatformBdsInit ( - IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData + VOID ) /*++ @@ -78,8 +79,6 @@ Routine Description: Arguments: - PrivateData - The EFI_BDS_ARCH_PROTOCOL_INSTANCE instance - Returns: None. @@ -282,7 +281,7 @@ Returns: // from the graphic lib // if (QuietBoot) { - EnableQuietBoot (&gEfiDefaultBmpLogoGuid); + EnableQuietBoot (PcdGetPtr(PcdLogoFile)); // // Perform system diagnostic // @@ -300,8 +299,8 @@ Returns: } VOID +EFIAPI PlatformBdsPolicyBehavior ( - IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData, IN OUT LIST_ENTRY *DriverOptionList, IN OUT LIST_ENTRY *BootOptionList ) @@ -315,8 +314,6 @@ Routine Description: Arguments: - PrivateData - The EFI_BDS_ARCH_PROTOCOL_INSTANCE instance - DriverOptionList - The header of the driver option link list BootOptionList - The header of the boot option link list @@ -327,8 +324,9 @@ Returns: --*/ { - EFI_STATUS Status; - UINT16 Timeout; + EFI_STATUS Status; + UINT16 Timeout; + EFI_BOOT_MODE BootMode; // // Init the time out value @@ -343,13 +341,13 @@ Returns: // // Get current Boot Mode // - Status = BdsLibGetBootMode (&PrivateData->BootMode); + Status = BdsLibGetBootMode (&BootMode); // // Go the different platform policy with different boot mode // Notes: this part code can be change with the table policy // - switch (PrivateData->BootMode) { + switch (BootMode) { case BOOT_ASSUMING_NO_CONFIGURATION_CHANGES: case BOOT_WITH_MINIMAL_CONFIGURATION: @@ -442,6 +440,7 @@ Returns: } VOID +EFIAPI PlatformBdsBootSuccess ( IN BDS_COMMON_OPTION *Option ) @@ -478,6 +477,7 @@ Returns: } VOID +EFIAPI PlatformBdsBootFail ( IN BDS_COMMON_OPTION *Option, IN EFI_STATUS Status,