]> git.proxmox.com Git - mirror_edk2.git/blob - Nt32Pkg/PlatformBdsDxe/Generic/Bds.h
Remove CommonHeader.h for BdsPlatformDxe driver in Nt32Pkg.
[mirror_edk2.git] / Nt32Pkg / PlatformBdsDxe / Generic / Bds.h
1 /*++
2
3 Copyright (c) 2006, 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
8
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.
11
12 Module Name:
13
14 Bds.h
15
16 Abstract:
17
18 Head file for BDS Architectural Protocol implementation
19
20 Revision History
21
22 --*/
23
24 #ifndef _BDS_H
25 #define _BDS_H
26
27 #include <PiDxe.h>
28 #include <Common/MaxBbsEntries.h>
29 #include <Protocol/FormCallbackFramework.h>
30 #include <Protocol/DevicePath.h>
31 #include <Protocol/LoadFile.h>
32 #include <Protocol/CpuIo.h>
33 #include <Protocol/Bds.h>
34 #include <Protocol/DataHub.h>
35 #include <Protocol/FormBrowserFramework.h>
36 #include <Protocol/UgaDraw.h>
37 #include <Protocol/BlockIo.h>
38 #include <Protocol/ConsoleControl.h>
39 #include <Protocol/GenericMemoryTest.h>
40 #include <Protocol/GraphicsOutput.h>
41 #include <Protocol/SimpleFileSystem.h>
42 #include <Protocol/HiiFramework.h>
43 #include <Protocol/SerialIo.h>
44 #include <Protocol/LegacyBios.h>
45 #include <Protocol/Performance.h>
46 #include <Guid/PcAnsi.h>
47 #include <Guid/DataHubRecords.h>
48 #include <Guid/Bmp.h>
49 #include <Guid/FileInfo.h>
50 #include <Guid/BootState.h>
51 #include <Guid/FileSystemVolumeLabelInfo.h>
52 #include <Guid/GenericPlatformVariable.h>
53 #include <Guid/GlobalVariable.h>
54
55 #include <Library/DebugLib.h>
56 #include <Library/UefiLib.h>
57 #include <Library/UefiDriverEntryPoint.h>
58 #include <Library/BaseLib.h>
59 #include <Library/GraphicsLib.h>
60 #include <Library/DxeServicesTableLib.h>
61 #include <Library/PerformanceLib.h>
62 #include <Library/PrintLib.h>
63 #include <Library/IfrSupportLibFramework.h>
64 #include <Library/ReportStatusCodeLib.h>
65 #include <Library/HobLib.h>
66 #include <Library/EdkGenericBdsLib.h>
67 #include <Library/MemoryAllocationLib.h>
68 #include <Library/BaseMemoryLib.h>
69 #include <Library/UefiBootServicesTableLib.h>
70 #include <Library/UefiRuntimeServicesTableLib.h>
71 #include <Library/DevicePathLib.h>
72 #include <Library/HiiLibFramework.h>
73 #include <Library/PeCoffLib.h>
74 #include <Library/PcdLib.h>
75
76
77 //
78 // Bds AP Context data
79 //
80 #define EFI_BDS_ARCH_PROTOCOL_INSTANCE_SIGNATURE EFI_SIGNATURE_32 ('B', 'd', 's', 'A')
81 typedef struct {
82 UINTN Signature;
83
84 EFI_HANDLE Handle;
85
86 EFI_BDS_ARCH_PROTOCOL Bds;
87
88 //
89 // Save the current boot mode
90 //
91 EFI_BOOT_MODE BootMode;
92
93 //
94 // Set true if boot with default settings
95 //
96 BOOLEAN DefaultBoot;
97
98 //
99 // The system default timeout for choose the boot option
100 //
101 UINT16 TimeoutDefault;
102
103 //
104 // Memory Test Level
105 //
106 EXTENDMEM_COVERAGE_LEVEL MemoryTestLevel;
107
108 } EFI_BDS_ARCH_PROTOCOL_INSTANCE;
109
110 #define EFI_BDS_ARCH_PROTOCOL_INSTANCE_FROM_THIS(_this) \
111 CR (_this, \
112 EFI_BDS_ARCH_PROTOCOL_INSTANCE, \
113 Bds, \
114 EFI_BDS_ARCH_PROTOCOL_INSTANCE_SIGNATURE \
115 )
116
117 //
118 // Prototypes
119 //
120 EFI_STATUS
121 EFIAPI
122 BdsInitialize (
123 IN EFI_HANDLE ImageHandle,
124 IN EFI_SYSTEM_TABLE *SystemTable
125 );
126
127 EFI_STATUS
128 EFIAPI
129 BdsEntry (
130 IN EFI_BDS_ARCH_PROTOCOL *This
131 );
132
133 #endif