X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=DuetPkg%2FLibrary%2FDuetBdsLib%2FBdsPlatform.c;h=1875dc963680c0fff3e397a16e9004a9008f6197;hp=f73f824f2d7ce4c65b9d0675316ee0bdd0de87cd;hb=c687b1464bb42a3c2d3eb2935ddd09752c6d2f2a;hpb=e5653d946d3e9ade00365950826268a9d4afdf91 diff --git a/DuetPkg/Library/DuetBdsLib/BdsPlatform.c b/DuetPkg/Library/DuetBdsLib/BdsPlatform.c index f73f824f2d..1875dc9636 100644 --- a/DuetPkg/Library/DuetBdsLib/BdsPlatform.c +++ b/DuetPkg/Library/DuetBdsLib/BdsPlatform.c @@ -1,7 +1,7 @@ /*++ -Copyright (c) 2006 - 2007, Intel Corporation -All rights reserved. This program and the accompanying materials +Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.
+This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php @@ -24,9 +24,13 @@ Abstract: #define IS_PCI_ISA_PDECODE(_p) IS_CLASS3 (_p, PCI_CLASS_BRIDGE, PCI_CLASS_BRIDGE_ISA_PDECODE, 0) -CHAR16 mFirmwareVendor[] = L"TianoCore.org"; extern BOOLEAN gConnectAllHappened; extern USB_CLASS_FORMAT_DEVICE_PATH gUsbClassKeyboardDevicePath; + +EFI_GUID *gTableGuidArray[] = { + &gEfiAcpi20TableGuid, &gEfiAcpiTableGuid, &gEfiSmbiosTableGuid, &gEfiMpsTableGuid + }; + // // BDS Platform Functions // @@ -52,9 +56,6 @@ Returns: EFI_PEI_HOB_POINTERS HobStart; EFI_PHYSICAL_ADDRESS *Table; UINTN Index; - EFI_GUID *TableGuidArray[] = { - &gEfiAcpi20TableGuid, &gEfiAcpiTableGuid, &gEfiSmbiosTableGuid, &gEfiMpsTableGuid - }; // // Get Hob List @@ -63,8 +64,8 @@ Returns: // // Iteratively add ACPI Table, SMBIOS Table, MPS Table to EFI System Table // - for (Index = 0; Index < sizeof (TableGuidArray) / sizeof (*TableGuidArray); ++Index) { - GuidHob.Raw = GetNextGuidHob (TableGuidArray[Index], HobStart.Raw); + for (Index = 0; Index < sizeof (gTableGuidArray) / sizeof (*gTableGuidArray); ++Index) { + GuidHob.Raw = GetNextGuidHob (gTableGuidArray[Index], HobStart.Raw); if (GuidHob.Raw != NULL) { Table = GET_GUID_HOB_DATA (GuidHob.Guid); if (Table != NULL) { @@ -73,8 +74,8 @@ Returns: // According to UEFI Spec, we should make sure Smbios table, // ACPI table and Mps tables kept in memory of specified type // - ConvertSystemTable(TableGuidArray[Index], &Table); - gBS->InstallConfigurationTable (TableGuidArray[Index], (VOID *)Table); + ConvertSystemTable(gTableGuidArray[Index], (VOID**)&Table); + gBS->InstallConfigurationTable (gTableGuidArray[Index], (VOID *)Table); } } } @@ -82,21 +83,6 @@ Returns: return ; } -#define EFI_LDR_MEMORY_DESCRIPTOR_GUID \ - { 0x7701d7e5, 0x7d1d, 0x4432, 0xa4, 0x68, 0x67, 0x3d, 0xab, 0x8a, 0xde, 0x60 } - -EFI_GUID gEfiLdrMemoryDescriptorGuid = EFI_LDR_MEMORY_DESCRIPTOR_GUID; - -#pragma pack(1) - -typedef struct { - EFI_HOB_GUID_TYPE Hob; - UINTN MemDescCount; - EFI_MEMORY_DESCRIPTOR *MemDesc; -} MEMORY_DESC_HOB; - -#pragma pack() - #if 0 VOID PrintMemoryMap ( @@ -145,19 +131,15 @@ UpdateMemoryMap ( VOID ) { - EFI_STATUS Status; - EFI_PEI_HOB_POINTERS GuidHob; - VOID *Table; - MEMORY_DESC_HOB MemoryDescHob; - UINTN Index; - EFI_PHYSICAL_ADDRESS Memory; - - // - // Get Hob List - // - GuidHob.Raw = GetHobList(); + EFI_STATUS Status; + EFI_PEI_HOB_POINTERS GuidHob; + VOID *Table; + MEMORY_DESC_HOB MemoryDescHob; + UINTN Index; + EFI_PHYSICAL_ADDRESS Memory; + EFI_GCD_MEMORY_SPACE_DESCRIPTOR Descriptor; - GuidHob.Raw = GetNextGuidHob (&gEfiLdrMemoryDescriptorGuid, GuidHob.Raw); + GuidHob.Raw = GetFirstGuidHob (&gLdrMemoryDescriptorGuid); if (GuidHob.Raw == NULL) { DEBUG ((EFI_D_ERROR, "Fail to get gEfiLdrMemoryDescriptorGuid from GUID HOB LIST!\n")); return; @@ -177,7 +159,7 @@ UpdateMemoryMap ( if (MemoryDescHob.MemDesc[Index].PhysicalStart < 0x100000) { continue; } - if (MemoryDescHob.MemDesc[Index].PhysicalStart >= 0x100000000) { + if (MemoryDescHob.MemDesc[Index].PhysicalStart >= 0x100000000ULL) { continue; } if ((MemoryDescHob.MemDesc[Index].Type == EfiReservedMemoryType) || @@ -185,16 +167,62 @@ UpdateMemoryMap ( (MemoryDescHob.MemDesc[Index].Type == EfiRuntimeServicesCode) || (MemoryDescHob.MemDesc[Index].Type == EfiACPIReclaimMemory) || (MemoryDescHob.MemDesc[Index].Type == EfiACPIMemoryNVS)) { - DEBUG ((EFI_D_ERROR, "PhysicalStart - 0x%x, ", MemoryDescHob.MemDesc[Index].PhysicalStart)); - DEBUG ((EFI_D_ERROR, "PageNumber - 0x%x, ", MemoryDescHob.MemDesc[Index].NumberOfPages)); - DEBUG ((EFI_D_ERROR, "Type - 0x%x\n", MemoryDescHob.MemDesc[Index].Type)); + DEBUG ((EFI_D_ERROR, "PhysicalStart - 0x%016lx, ", MemoryDescHob.MemDesc[Index].PhysicalStart)); + DEBUG ((EFI_D_ERROR, "PageNumber - 0x%016lx, ", MemoryDescHob.MemDesc[Index].NumberOfPages)); + DEBUG ((EFI_D_ERROR, "Attribute - 0x%016lx, ", MemoryDescHob.MemDesc[Index].Attribute)); + DEBUG ((EFI_D_ERROR, "Type - 0x%08x\n", MemoryDescHob.MemDesc[Index].Type)); if ((MemoryDescHob.MemDesc[Index].Type == EfiRuntimeServicesData) || (MemoryDescHob.MemDesc[Index].Type == EfiRuntimeServicesCode)) { // - // Skip RuntimeSevicesData and RuntimeServicesCode, they are BFV + // For RuntimeSevicesData and RuntimeServicesCode, they are BFV or DxeCore. + // The memory type is assigned in EfiLdr + // + Status = gDS->GetMemorySpaceDescriptor (MemoryDescHob.MemDesc[Index].PhysicalStart, &Descriptor); + if (EFI_ERROR (Status)) { + continue; + } + if (Descriptor.GcdMemoryType != EfiGcdMemoryTypeReserved) { + // + // BFV or tested DXE core + // + continue; + } + // + // Untested DXE Core region, free and remove + // + Status = gDS->FreeMemorySpace ( + MemoryDescHob.MemDesc[Index].PhysicalStart, + LShiftU64 (MemoryDescHob.MemDesc[Index].NumberOfPages, EFI_PAGE_SHIFT) + ); + if (EFI_ERROR (Status)) { + DEBUG ((EFI_D_ERROR, "FreeMemorySpace fail - %r!\n", Status)); + continue; + } + Status = gDS->RemoveMemorySpace ( + MemoryDescHob.MemDesc[Index].PhysicalStart, + LShiftU64 (MemoryDescHob.MemDesc[Index].NumberOfPages, EFI_PAGE_SHIFT) + ); + if (EFI_ERROR (Status)) { + DEBUG ((EFI_D_ERROR, "RemoveMemorySpace fail - %r!\n", Status)); + continue; + } + + // + // Convert Runtime type to BootTime type + // + if (MemoryDescHob.MemDesc[Index].Type == EfiRuntimeServicesData) { + MemoryDescHob.MemDesc[Index].Type = EfiBootServicesData; + } else { + MemoryDescHob.MemDesc[Index].Type = EfiBootServicesCode; + } + + // + // PassThrough, let below code add and alloate. // - continue; } + // + // ACPI or reserved memory + // Status = gDS->AddMemorySpace ( EfiGcdMemoryTypeSystemMemory, MemoryDescHob.MemDesc[Index].PhysicalStart, @@ -202,7 +230,7 @@ UpdateMemoryMap ( MemoryDescHob.MemDesc[Index].Attribute ); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_ERROR, "AddMemorySpace fail!\n")); + DEBUG ((EFI_D_ERROR, "AddMemorySpace fail - %r!\n", Status)); if ((MemoryDescHob.MemDesc[Index].Type == EfiACPIReclaimMemory) || (MemoryDescHob.MemDesc[Index].Type == EfiACPIMemoryNVS)) { // @@ -217,12 +245,12 @@ UpdateMemoryMap ( Memory = MemoryDescHob.MemDesc[Index].PhysicalStart; Status = gBS->AllocatePages ( AllocateAddress, - MemoryDescHob.MemDesc[Index].Type, + (EFI_MEMORY_TYPE)MemoryDescHob.MemDesc[Index].Type, (UINTN)MemoryDescHob.MemDesc[Index].NumberOfPages, &Memory ); if (EFI_ERROR (Status)) { - DEBUG ((EFI_D_ERROR, "AllocatePages fail!\n")); + DEBUG ((EFI_D_ERROR, "AllocatePages fail - %r!\n", Status)); // // For the page added, it must be allocated. // @@ -289,13 +317,13 @@ Returns: if (!EFI_ERROR (Status)) { if ((PCI_CLASS_SERIAL == Class[2]) && (PCI_CLASS_SERIAL_USB == Class[1])) { - if (PCI_CLASSC_PI_UHCI == Class[0]) { + if (PCI_IF_UHCI == Class[0]) { // // Found the UHCI, then disable the legacy support // Command = 0; Status = PciIo->Pci.Write (PciIo, EfiPciIoWidthUint16, 0xC0, 1, &Command); - } else if (PCI_CLASSC_PI_EHCI == Class[0]) { + } else if (PCI_IF_EHCI == Class[0]) { // // Found the EHCI, then disable the legacy support // @@ -347,8 +375,9 @@ Returns: VOID +EFIAPI PlatformBdsInit ( - IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData + VOID ) /*++ @@ -359,30 +388,12 @@ Routine Description: Arguments: - PrivateData - The EFI_BDS_ARCH_PROTOCOL_INSTANCE instance - Returns: None. --*/ { - // - // set firmwarevendor, here can be IBV/OEM customize - // - gST->FirmwareVendor = AllocateRuntimeCopyPool ( - sizeof (mFirmwareVendor), - &mFirmwareVendor - ); - ASSERT (gST->FirmwareVendor != NULL); - - gST->FirmwareRevision = 0; - - // - // Fixup Tasble CRC after we updated Firmware Vendor and Revision - // - gBS->CalculateCrc32 ((VOID *) gST, sizeof (EFI_SYSTEM_TABLE), &gST->Hdr.CRC32); - GetSystemTablesFromHob (); UpdateMemoryMap (); @@ -422,23 +433,16 @@ Returns: UINT32 Number; EFI_PEI_HOB_POINTERS GuidHob; - BufferSize = 0; - // - // Get Hob List from configuration table - // - GuidHob.Raw = GetHobList (); - // // Get PciExpressAddressInfo Hob // - GuidHob.Raw = GetNextGuidHob (&gEfiPciExpressBaseAddressGuid, GuidHob.Raw); - if (GuidHob.Raw == NULL) { - DEBUG ((EFI_D_ERROR, "Fail to get gEfiPciExpressBaseAddressGuid from GUID HOB\n")); - return 0; - } - PciExpressBaseAddressInfo = (EFI_PCI_EXPRESS_BASE_ADDRESS_INFORMATION *) GET_GUID_HOB_DATA (GuidHob.Guid); - if (PciExpressBaseAddressInfo == NULL) { - DEBUG ((EFI_D_ERROR, "Fail to get gEfiPciExpressBaseAddressGuid from GUID HOB\n")); + PciExpressBaseAddressInfo = NULL; + BufferSize = 0; + GuidHob.Raw = GetFirstGuidHob (&gEfiPciExpressBaseAddressGuid); + if (GuidHob.Raw != NULL) { + PciExpressBaseAddressInfo = GET_GUID_HOB_DATA (GuidHob.Guid); + BufferSize = GET_GUID_HOB_DATA_SIZE (GuidHob.Guid); + } else { return 0; } @@ -456,7 +460,7 @@ Returns: // // Do not find the PciExpress Base Address in the Hob // - return 0; + return 0; } VOID @@ -469,7 +473,9 @@ PatchPciRootBridgeDevicePath ( UINT64 PciExpressBase; PciExpressBase = GetPciExpressBaseAddressForRootBridge (HostBridgeNumber, RootBridgeNumber); - + + DEBUG ((EFI_D_INFO, "Get PciExpress Address from Hob: 0x%X\n", PciExpressBase)); + if (PciExpressBase != 0) { RootBridge->PciRootBridge.HID = EISA_PNP_ID(0x0A08); } @@ -514,6 +520,8 @@ Returns: &gPlatformRootBridges[0], &RootHandle ); + DEBUG ((EFI_D_INFO, "Pci Root bridge handle is 0x%X\n", RootHandle)); + if (EFI_ERROR (Status)) { return Status; } @@ -557,7 +565,7 @@ Returns: Status = gBS->HandleProtocol ( DeviceHandle, &gEfiDevicePathProtocolGuid, - &DevicePath + (VOID*)&DevicePath ); if (EFI_ERROR (Status)) { return Status; @@ -655,7 +663,7 @@ GetGopDevicePath ( // Add all the child handles as possible Console Device // for (Index = 0; Index < GopHandleCount; Index++) { - Status = gBS->HandleProtocol (GopHandleBuffer[Index], &gEfiDevicePathProtocolGuid, &TempDevicePath); + Status = gBS->HandleProtocol (GopHandleBuffer[Index], &gEfiDevicePathProtocolGuid, (VOID*)&TempDevicePath); if (EFI_ERROR (Status)) { continue; } @@ -713,11 +721,12 @@ Returns: EFI_DEVICE_PATH_PROTOCOL *DevicePath; EFI_DEVICE_PATH_PROTOCOL *GopDevicePath; - DevicePath = NULL; + DevicePath = NULL; + GopDevicePath = NULL; Status = gBS->HandleProtocol ( DeviceHandle, &gEfiDevicePathProtocolGuid, - &DevicePath + (VOID*)&DevicePath ); if (EFI_ERROR (Status)) { return Status; @@ -755,12 +764,12 @@ Returns: { EFI_STATUS Status; EFI_DEVICE_PATH_PROTOCOL *DevicePath; - + DevicePath = NULL; Status = gBS->HandleProtocol ( DeviceHandle, &gEfiDevicePathProtocolGuid, - &DevicePath + (VOID*)&DevicePath ); if (EFI_ERROR (Status)) { return Status; @@ -821,7 +830,7 @@ Returns: } for (Index = 0; Index < HandleCount; Index++) { - Status = gBS->HandleProtocol (HandleBuffer[Index], &gEfiPciIoProtocolGuid, &PciIo); + Status = gBS->HandleProtocol (HandleBuffer[Index], &gEfiPciIoProtocolGuid, (VOID*)&PciIo); if (EFI_ERROR (Status)) { continue; } @@ -932,6 +941,7 @@ Returns: &gEfiGlobalVariableGuid, &DevicePathSize ); + if (VarConout == NULL || VarConin == NULL) { // // Do platform specific PCI Device check and add them to ConOut, ConIn, ErrOut @@ -1064,7 +1074,8 @@ Returns: VOID PlatformBdsDiagnostics ( IN EXTENDMEM_COVERAGE_LEVEL MemoryTestLevel, - IN BOOLEAN QuietBoot + IN BOOLEAN QuietBoot, + IN BASEM_MEMORY_TEST BaseMemoryTest ) /*++ @@ -1078,6 +1089,8 @@ Arguments: MemoryTestLevel - The memory test intensive level QuietBoot - Indicate if need to enable the quiet boot + + BaseMemoryTest - A pointer to BdsMemoryTest() Returns: @@ -1094,7 +1107,7 @@ Returns: // from the graphic lib // if (QuietBoot) { - Status = EnableQuietBootEx (&gEfiDefaultBmpLogoGuid, mBdsImageHandle); + Status = EnableQuietBoot (PcdGetPtr(PcdLogoFile)); if (EFI_ERROR (Status)) { DisableQuietBoot (); return; @@ -1103,7 +1116,7 @@ Returns: // // Perform system diagnostic // - Status = BdsMemoryTest (MemoryTestLevel); + Status = BaseMemoryTest (MemoryTestLevel); if (EFI_ERROR (Status)) { DisableQuietBoot (); } @@ -1113,14 +1126,16 @@ Returns: // // Perform system diagnostic // - Status = BdsMemoryTest (MemoryTestLevel); + Status = BaseMemoryTest (MemoryTestLevel); } VOID +EFIAPI PlatformBdsPolicyBehavior ( - IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData, IN OUT LIST_ENTRY *DriverOptionList, - IN OUT LIST_ENTRY *BootOptionList + IN OUT LIST_ENTRY *BootOptionList, + IN PROCESS_CAPSULES ProcessCapsules, + IN BASEM_MEMORY_TEST BaseMemoryTest ) /*++ @@ -1132,8 +1147,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 @@ -1147,16 +1160,14 @@ Returns: EFI_STATUS Status; UINT16 Timeout; EFI_EVENT UserInputDurationTime; - LIST_ENTRY *Link; - BDS_COMMON_OPTION *BootOption; UINTN Index; EFI_INPUT_KEY Key; - EFI_TPL OldTpl; + EFI_BOOT_MODE BootMode; // // Init the time out value // - Timeout = BdsLibGetTimeout (); + Timeout = PcdGet16 (PcdPlatformBootTimeOut); // // Load the driver option as the driver option list @@ -1166,14 +1177,14 @@ Returns: // // Get current Boot Mode // - Status = BdsLibGetBootMode (&PrivateData->BootMode); - DEBUG ((EFI_D_ERROR, "Boot Mode:%x\n", PrivateData->BootMode)); + Status = BdsLibGetBootMode (&BootMode); + DEBUG ((EFI_D_ERROR, "Boot Mode:%x\n", BootMode)); // // Go the different platform policy with different boot mode // Notes: this part code can be change with the table policy // - ASSERT (PrivateData->BootMode == BOOT_WITH_FULL_CONFIGURATION); + ASSERT (BootMode == BOOT_WITH_FULL_CONFIGURATION); // // Connect platform console // @@ -1188,7 +1199,7 @@ Returns: // Create a 300ms duration event to ensure user has enough input time to enter Setup // Status = gBS->CreateEvent ( - EFI_EVENT_TIMER, + EVT_TIMER, 0, NULL, NULL, @@ -1200,7 +1211,7 @@ Returns: // // Memory test and Logo show // - PlatformBdsDiagnostics (IGNORE, TRUE); + PlatformBdsDiagnostics (IGNORE, TRUE, BaseMemoryTest); // // Perform some platform specific connect sequence @@ -1211,6 +1222,8 @@ Returns: // Give one chance to enter the setup if we // have the time out // + // BUGBUG: hard code timeout to 5 second to show logo in graphic mode. + Timeout = 5; if (Timeout != 0) { PlatformBdsEnterFrontPage (Timeout, FALSE); } @@ -1241,36 +1254,11 @@ Returns: // // To give the User a chance to enter Setup here, if user set TimeOut is 0. // BDS should still give user a chance to enter Setup - // - // Connect first boot option, and then check user input before exit - // - for (Link = BootOptionList->ForwardLink; Link != BootOptionList;Link = Link->ForwardLink) { - BootOption = CR (Link, BDS_COMMON_OPTION, Link, BDS_LOAD_OPTION_SIGNATURE); - if (!IS_LOAD_OPTION_TYPE (BootOption->Attribute, LOAD_OPTION_ACTIVE)) { - // - // skip the header of the link list, becuase it has no boot option - // - continue; - } else { - // - // Make sure the boot option device path connected, but ignore the BBS device path - // - if (DevicePathType (BootOption->DevicePath) != BBS_DEVICE_PATH) { - BdsLibConnectDevicePath (BootOption->DevicePath); - } - break; - } - } - - // // Check whether the user input after the duration time has expired // - OldTpl = EfiGetCurrentTpl(); - gBS->RestoreTPL (TPL_APPLICATION); gBS->WaitForEvent (1, &UserInputDurationTime, &Index); gBS->CloseEvent (UserInputDurationTime); Status = gST->ConIn->ReadKeyStroke (gST->ConIn, &Key); - gBS->RaiseTPL (OldTpl); if (!EFI_ERROR (Status)) { // @@ -1285,6 +1273,7 @@ Returns: } VOID +EFIAPI PlatformBdsBootSuccess ( IN BDS_COMMON_OPTION *Option ) @@ -1321,6 +1310,7 @@ Returns: } VOID +EFIAPI PlatformBdsBootFail ( IN BDS_COMMON_OPTION *Option, IN EFI_STATUS Status, @@ -1460,38 +1450,6 @@ Returns: return EFI_UNSUPPORTED; } -UINT8 -GetBufferCheckSum ( - IN VOID * Buffer, - IN UINTN Length - ) -/*++ - -Routine Description: - Caculate buffer checksum (8-bit) - -Arguments: - Buffer - Pointer to Buffer that to be caculated - Length - How many bytes are to be caculated - -Returns: - Checksum of the buffer - ---*/ -{ - UINT8 CheckSum; - UINT8 *Ptr8; - - CheckSum = 0; - Ptr8 = (UINT8 *) Buffer; - - while (Length > 0) { - CheckSum = (UINT8) (CheckSum + *Ptr8++); - Length--; - } - - return ((0xFF - CheckSum) + 1); -} EFI_STATUS ConvertAcpiTable ( @@ -1626,7 +1584,7 @@ Returns: SmbiosTableNew->TableAddress = (UINT32)BufferPtr; SmbiosTableNew->IntermediateChecksum = 0; SmbiosTableNew->IntermediateChecksum = - GetBufferCheckSum ((UINT8*)SmbiosTableNew + 0x10, SmbiosEntryLen -0x10); + CalculateCheckSum8 ((UINT8*)SmbiosTableNew + 0x10, SmbiosEntryLen -0x10); // // Change the SMBIOS pointer // @@ -1725,10 +1683,10 @@ Returns: MpsTableNew->OemTablePointer = (UINT32)(UINTN)OemTableNew; } MpsTableNew->Checksum = 0; - MpsTableNew->Checksum = GetBufferCheckSum (MpsTableNew, MpsTableOri->BaseTableLength); + MpsTableNew->Checksum = CalculateCheckSum8 ((UINT8*)MpsTableNew, MpsTableOri->BaseTableLength); MpsFloatingPointerNew->PhysicalAddress = (UINT32)(UINTN)MpsTableNew; MpsFloatingPointerNew->Checksum = 0; - MpsFloatingPointerNew->Checksum = GetBufferCheckSum (MpsFloatingPointerNew, FPLength); + MpsFloatingPointerNew->Checksum = CalculateCheckSum8 ((UINT8*)MpsFloatingPointerNew, FPLength); } // // Change the pointer @@ -1737,3 +1695,37 @@ Returns: return EFI_SUCCESS; } + +/** + Lock the ConsoleIn device in system table. All key + presses will be ignored until the Password is typed in. The only way to + disable the password is to type it in to a ConIn device. + + @param Password Password used to lock ConIn device. + + @retval EFI_SUCCESS lock the Console In Spliter virtual handle successfully. + @retval EFI_UNSUPPORTED Password not found + +**/ +EFI_STATUS +EFIAPI +LockKeyboards ( + IN CHAR16 *Password + ) +{ + return EFI_UNSUPPORTED; +} + +/** + This function locks platform flash that is not allowed to be updated during normal boot path. + The flash layout is platform specific. + + **/ +VOID +EFIAPI +PlatformBdsLockNonUpdatableFlash ( + VOID + ) +{ + return; +}