3 Copyright (c) 2008, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 Platform BDS library definition, include the file and data structure
22 #ifndef __PLATFORM_BDS_LIB_H_
23 #define __PLATFORM_BDS_LIB_H_
26 #include <Protocol/Bds.h>
27 #include <Protocol/GenericMemoryTest.h>
30 // Bds AP Context data
32 #define EFI_BDS_ARCH_PROTOCOL_INSTANCE_SIGNATURE EFI_SIGNATURE_32 ('B', 'd', 's', 'A')
33 typedef struct _EFI_BDS_ARCH_PROTOCOL_INSTANCE EFI_BDS_ARCH_PROTOCOL_INSTANCE
;
35 struct _EFI_BDS_ARCH_PROTOCOL_INSTANCE
{
38 EFI_BDS_ARCH_PROTOCOL Bds
;
40 // Save the current boot mode
42 EFI_BOOT_MODE BootMode
;
44 // Set true if boot with default settings
48 // The system default timeout for choose the boot option
50 UINT16 TimeoutDefault
;
54 EXTENDMEM_COVERAGE_LEVEL MemoryTestLevel
;
58 // Platform BDS Functions
63 IN EFI_BDS_ARCH_PROTOCOL_INSTANCE
*PrivateData
69 PlatformBdsPolicyBehavior (
70 IN EFI_BDS_ARCH_PROTOCOL_INSTANCE
*PrivateData
,
71 IN LIST_ENTRY
*DriverOptionList
,
72 IN LIST_ENTRY
*BootOptionList
79 IN BDS_COMMON_OPTION
*Option
,
87 PlatformBdsBootSuccess (
88 IN BDS_COMMON_OPTION
*Option
94 PlatformBdsLockNonUpdatableFlash (