]> git.proxmox.com Git - mirror_edk2.git/blame - UnixPkg/Library/UnixBdsLib/BdsPlatform.h
Update the copyright notice format
[mirror_edk2.git] / UnixPkg / Library / UnixBdsLib / BdsPlatform.h
CommitLineData
804405e7 1/*++\r
2\r
f9b8ab56
HT
3Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
4This program and the accompanying materials \r
804405e7 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 BdsPlatform.h\r
15\r
16Abstract:\r
17\r
18 Head file for BDS Platform specific code\r
19\r
20--*/\r
21\r
22#ifndef _BDS_PLATFORM_H\r
23#define _BDS_PLATFORM_H\r
24\r
25#include <PiDxe.h>\r
26\r
27#include <Library/DebugLib.h>\r
28#include <Library/BaseMemoryLib.h>\r
29#include <Library/UefiBootServicesTableLib.h>\r
c71b6597 30#include <Library/UefiRuntimeServicesTableLib.h>\r
804405e7 31#include <Library/MemoryAllocationLib.h>\r
32#include <Library/BaseLib.h>\r
33#include <Library/PcdLib.h>\r
34#include <Library/GenericBdsLib.h>\r
35#include <Library/PlatformBdsLib.h>\r
c5085e11 36#include <Library/DevicePathLib.h>\r
804405e7 37\r
38#include <Protocol/UnixThunk.h>\r
39#include <Protocol/UnixIo.h>\r
7d10090a 40#include <Guid/UnixSystemConfig.h>\r
804405e7 41\r
42extern BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[];\r
43extern EFI_DEVICE_PATH_PROTOCOL *gPlatformConnectSequence[];\r
44extern EFI_DEVICE_PATH_PROTOCOL *gPlatformDriverOption[];\r
45\r
46#define gEndEntire \\r
47 { \\r
48 END_DEVICE_PATH_TYPE,\\r
49 END_ENTIRE_DEVICE_PATH_SUBTYPE,\\r
50 END_DEVICE_PATH_LENGTH,\\r
51 0\\r
52 }\r
53\r
54typedef struct {\r
55 VENDOR_DEVICE_PATH VendorDevicePath;\r
56 UINT32 Instance;\r
57} UNIX_VENDOR_DEVICE_PATH_NODE;\r
58\r
59//\r
60// Below is the platform console device path\r
61//\r
62typedef struct {\r
63 VENDOR_DEVICE_PATH UnixBus;\r
64 UNIX_VENDOR_DEVICE_PATH_NODE SerialDevice;\r
65 UART_DEVICE_PATH Uart;\r
66 VENDOR_DEVICE_PATH TerminalType;\r
67 EFI_DEVICE_PATH_PROTOCOL End;\r
68} UNIX_ISA_SERIAL_DEVICE_PATH;\r
69\r
70typedef struct {\r
71 VENDOR_DEVICE_PATH UnixBus;\r
72 UNIX_VENDOR_DEVICE_PATH_NODE UnixUgaDevice;\r
73 EFI_DEVICE_PATH_PROTOCOL End;\r
74} UNIX_PLATFORM_UGA_DEVICE_PATH;\r
75\r
76typedef struct {\r
77 VENDOR_DEVICE_PATH UnixBus;\r
78 UNIX_VENDOR_DEVICE_PATH_NODE ConsoleDevice;\r
79 EFI_DEVICE_PATH_PROTOCOL End;\r
80} UNIX_CONSOLE_DEVICE_PATH;\r
81//\r
82// Platform BDS Functions\r
83//\r
804405e7 84VOID\r
85PlatformBdsGetDriverOption (\r
86 IN LIST_ENTRY *BdsDriverLists\r
87 )\r
88;\r
89\r
90EFI_STATUS\r
91BdsMemoryTest (\r
92 EXTENDMEM_COVERAGE_LEVEL Level\r
93 )\r
94;\r
95\r
804405e7 96\r
97VOID\r
98PlatformBdsConnectSequence (\r
99 VOID\r
100 )\r
101;\r
102\r
804405e7 103EFI_STATUS\r
104ProcessCapsules (\r
105 EFI_BOOT_MODE BootMode\r
106 )\r
107;\r
108\r
109EFI_STATUS\r
110PlatformBdsConnectConsole (\r
111 IN BDS_CONSOLE_CONNECT_ENTRY *PlatformConsole\r
112 )\r
113;\r
114\r
115EFI_STATUS\r
116PlatformBdsNoConsoleAction (\r
117 VOID\r
118 )\r
119;\r
120\r
121VOID\r
122PlatformBdsEnterFrontPage (\r
123 IN UINT16 TimeoutDefault,\r
124 IN BOOLEAN ConnectAllHappened\r
125 );\r
126\r
127#endif // _BDS_PLATFORM_H\r