| 1 | /*++\r |
| 2 | \r |
| 3 | Copyright (c) 2006, Intel Corporation \r |
| 4 | All rights reserved. This program and the accompanying materials \r |
| 5 | are licensed and made available under the terms and conditions of the BSD License \r |
| 6 | which accompanies this distribution. The full text of the license may be found at \r |
| 7 | http://opensource.org/licenses/bsd-license.php \r |
| 8 | \r |
| 9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r |
| 10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r |
| 11 | \r |
| 12 | Module Name: \r |
| 13 | \r |
| 14 | BdsPlatform.h\r |
| 15 | \r |
| 16 | Abstract:\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 "IndustryStandard/Pci22.h"\r |
| 26 | \r |
| 27 | extern BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[];\r |
| 28 | extern EFI_DEVICE_PATH_PROTOCOL *gPlatformConnectSequence[];\r |
| 29 | extern EFI_DEVICE_PATH_PROTOCOL *gPlatformDriverOption[];\r |
| 30 | \r |
| 31 | #define gEndEntire \\r |
| 32 | { \\r |
| 33 | END_DEVICE_PATH_TYPE,\\r |
| 34 | END_ENTIRE_DEVICE_PATH_SUBTYPE,\\r |
| 35 | END_DEVICE_PATH_LENGTH,\\r |
| 36 | 0\\r |
| 37 | }\r |
| 38 | \r |
| 39 | typedef struct {\r |
| 40 | VENDOR_DEVICE_PATH VendorDevicePath;\r |
| 41 | UINT32 Instance;\r |
| 42 | } WIN_NT_VENDOR_DEVICE_PATH_NODE;\r |
| 43 | \r |
| 44 | //\r |
| 45 | // Below is the platform console device path\r |
| 46 | //\r |
| 47 | typedef struct {\r |
| 48 | VENDOR_DEVICE_PATH NtBus;\r |
| 49 | WIN_NT_VENDOR_DEVICE_PATH_NODE SerialDevice;\r |
| 50 | UART_DEVICE_PATH Uart;\r |
| 51 | VENDOR_DEVICE_PATH TerminalType;\r |
| 52 | EFI_DEVICE_PATH_PROTOCOL End;\r |
| 53 | } NT_ISA_SERIAL_DEVICE_PATH;\r |
| 54 | \r |
| 55 | typedef struct {\r |
| 56 | VENDOR_DEVICE_PATH NtBus;\r |
| 57 | WIN_NT_VENDOR_DEVICE_PATH_NODE NtUgaDevice;\r |
| 58 | EFI_DEVICE_PATH_PROTOCOL End;\r |
| 59 | } NT_PLATFORM_UGA_DEVICE_PATH;\r |
| 60 | \r |
| 61 | //\r |
| 62 | // Platform BDS Functions\r |
| 63 | //\r |
| 64 | VOID\r |
| 65 | PlatformBdsInit (\r |
| 66 | IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData\r |
| 67 | )\r |
| 68 | ;\r |
| 69 | \r |
| 70 | VOID\r |
| 71 | PlatformBdsPolicyBehavior (\r |
| 72 | IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData,\r |
| 73 | IN LIST_ENTRY *DriverOptionList,\r |
| 74 | IN LIST_ENTRY *BootOptionList\r |
| 75 | )\r |
| 76 | ;\r |
| 77 | \r |
| 78 | VOID\r |
| 79 | PlatformBdsGetDriverOption (\r |
| 80 | IN LIST_ENTRY *BdsDriverLists\r |
| 81 | )\r |
| 82 | ;\r |
| 83 | \r |
| 84 | EFI_STATUS\r |
| 85 | BdsMemoryTest (\r |
| 86 | EXTENDMEM_COVERAGE_LEVEL Level\r |
| 87 | )\r |
| 88 | ;\r |
| 89 | \r |
| 90 | EFI_STATUS\r |
| 91 | PlatformBdsShowProgress (\r |
| 92 | EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleForeground,\r |
| 93 | EFI_GRAPHICS_OUTPUT_BLT_PIXEL TitleBackground,\r |
| 94 | CHAR16 *Title,\r |
| 95 | EFI_GRAPHICS_OUTPUT_BLT_PIXEL ProgressColor,\r |
| 96 | UINTN Progress,\r |
| 97 | UINTN PreviousValue\r |
| 98 | )\r |
| 99 | ;\r |
| 100 | \r |
| 101 | VOID\r |
| 102 | PlatformBdsConnectSequence (\r |
| 103 | VOID\r |
| 104 | )\r |
| 105 | ;\r |
| 106 | \r |
| 107 | VOID\r |
| 108 | PlatformBdsBootFail (\r |
| 109 | IN BDS_COMMON_OPTION *Option,\r |
| 110 | IN EFI_STATUS Status,\r |
| 111 | IN CHAR16 *ExitData,\r |
| 112 | IN UINTN ExitDataSize\r |
| 113 | )\r |
| 114 | ;\r |
| 115 | \r |
| 116 | VOID\r |
| 117 | PlatformBdsBootSuccess (\r |
| 118 | IN BDS_COMMON_OPTION *Option\r |
| 119 | )\r |
| 120 | ;\r |
| 121 | \r |
| 122 | EFI_STATUS\r |
| 123 | ProcessCapsules (\r |
| 124 | EFI_BOOT_MODE BootMode\r |
| 125 | )\r |
| 126 | ;\r |
| 127 | \r |
| 128 | EFI_STATUS\r |
| 129 | PlatformBdsConnectConsole (\r |
| 130 | IN BDS_CONSOLE_CONNECT_ENTRY *PlatformConsole\r |
| 131 | )\r |
| 132 | ;\r |
| 133 | \r |
| 134 | EFI_STATUS\r |
| 135 | PlatformBdsNoConsoleAction (\r |
| 136 | VOID\r |
| 137 | )\r |
| 138 | ;\r |
| 139 | \r |
| 140 | #endif // _BDS_PLATFORM_H\r |