]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Include/Library/PlatformBdsLib.h
UEFI HII: Merge UEFI HII support changes from branch.
[mirror_edk2.git] / MdeModulePkg / Include / Library / PlatformBdsLib.h
CommitLineData
93e3992d 1/*++\r
2\r
3Copyright (c) 2008, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13\r
14 PlatformBdsLib.h\r
15\r
16Abstract:\r
17\r
18 Platform BDS library definition, include the file and data structure\r
19\r
20--*/\r
21\r
22#ifndef __PLATFORM_BDS_LIB_H_\r
23#define __PLATFORM_BDS_LIB_H_\r
24\r
25#include <PiDxe.h>\r
26#include <Protocol/Bds.h>\r
27#include <Protocol/GenericMemoryTest.h>\r
28\r
29//\r
30// Bds AP Context data\r
31//\r
32#define EFI_BDS_ARCH_PROTOCOL_INSTANCE_SIGNATURE EFI_SIGNATURE_32 ('B', 'd', 's', 'A')\r
33typedef struct _EFI_BDS_ARCH_PROTOCOL_INSTANCE EFI_BDS_ARCH_PROTOCOL_INSTANCE;\r
34\r
35struct _EFI_BDS_ARCH_PROTOCOL_INSTANCE {\r
36 UINTN Signature;\r
37 EFI_HANDLE Handle;\r
38 EFI_BDS_ARCH_PROTOCOL Bds;\r
39 //\r
40 // Save the current boot mode\r
41 //\r
42 EFI_BOOT_MODE BootMode;\r
43 //\r
44 // Set true if boot with default settings\r
45 //\r
46 BOOLEAN DefaultBoot;\r
47 //\r
48 // The system default timeout for choose the boot option\r
49 //\r
50 UINT16 TimeoutDefault;\r
51 //\r
52 // Memory Test Level\r
53 //\r
54 EXTENDMEM_COVERAGE_LEVEL MemoryTestLevel;\r
55};\r
56\r
57//\r
58// Platform BDS Functions\r
59//\r
60VOID\r
61EFIAPI\r
62PlatformBdsInit (\r
63 IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData\r
64 )\r
65;\r
66\r
67VOID\r
68EFIAPI\r
69PlatformBdsPolicyBehavior (\r
70 IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData,\r
71 IN LIST_ENTRY *DriverOptionList,\r
72 IN LIST_ENTRY *BootOptionList\r
73 )\r
74;\r
75\r
76\r
77VOID\r
78PlatformBdsBootFail (\r
79 IN BDS_COMMON_OPTION *Option,\r
80 IN EFI_STATUS Status,\r
81 IN CHAR16 *ExitData,\r
82 IN UINTN ExitDataSize\r
83 )\r
84;\r
85\r
86VOID\r
87PlatformBdsBootSuccess (\r
88 IN BDS_COMMON_OPTION *Option\r
89 )\r
90;\r
91\r
92EFI_STATUS\r
93EFIAPI\r
94PlatformBdsLockNonUpdatableFlash (\r
95 VOID\r
96 )\r
97;\r
98#endif\r