]>
Commit | Line | Data |
---|---|---|
3cbfba02 DW |
1 | /*++\r |
2 | \r | |
3 | Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>\r | |
4 | \r\r | |
5 | This program and the accompanying materials are licensed and made available under\r\r | |
6 | the terms and conditions of the BSD License that accompanies this distribution. \r\r | |
7 | The full text of the license may be found at \r\r | |
8 | http://opensource.org/licenses/bsd-license.php. \r\r | |
9 | \r\r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r\r | |
12 | \r\r | |
13 | \r | |
14 | \r | |
15 | Module Name:\r | |
16 | \r | |
17 | SetupMode.h\r | |
18 | \r | |
19 | Abstract:\r | |
20 | \r | |
21 | EFI Setup Mode\r | |
22 | \r | |
23 | Revision History\r | |
24 | \r | |
25 | **/\r | |
26 | \r | |
27 | #ifndef _EFI_SETUP_MODE_H_\r | |
28 | #define _EFI_SETUP_MODE_H_\r | |
29 | \r | |
30 | //\r | |
31 | // Global ID for the Setup Mode\r | |
32 | //\r | |
33 | #define EFI_PLATFORM_BOOT_MODE_GUID \\r | |
34 | { 0xce845704, 0x1683, 0x4d38, 0xa4, 0xf9, 0x7d, 0xb, 0x50, 0x77, 0x57, 0x93 }\r | |
35 | \r | |
36 | #define EFI_NORMAL_SETUP_GUID \\r | |
37 | { 0xec87d643, 0xeba4, 0x4bb5, 0xa1, 0xe5, 0x3f, 0x3e, 0x36, 0xb2, 0xd, 0xa9 }\r | |
38 | \r | |
39 | #define EFI_NORMAL_SETUP_RESET_NAME L"Reset"\r | |
40 | \r | |
41 | enum {\r | |
42 | //\r | |
43 | // This means: "whatever reset defaults in setup does"\r | |
44 | //\r | |
45 | SetupDataResetNormal = 0,\r | |
46 | \r | |
47 | //\r | |
48 | // This means: "the defaults built into the BIOS"\r | |
49 | //\r | |
50 | SetupDataResetStandard = 1,\r | |
51 | \r | |
52 | //\r | |
53 | // This means: "the manufacturing mode defaults"\r | |
54 | //\r | |
55 | SetupDataResetManufacturing = 2,\r | |
56 | \r | |
57 | //\r | |
58 | // This means: "the oem defaults"\r | |
59 | //\r | |
60 | SetupDataResetOem = 3,\r | |
61 | };\r | |
62 | \r | |
63 | //\r | |
64 | // PlatformBootMode types\r | |
65 | //\r | |
66 | #define PLATFORM_NORMAL_MODE 0x01\r | |
67 | #define PLATFORM_SAFE_MODE 0x02\r | |
68 | #define PLATFORM_RECOVERY_MODE 0x04\r | |
69 | #define PLATFORM_MANUFACTURING_MODE 0x08\r | |
70 | #define PLATFORM_BACK_TO_BIOS_MODE 0x10\r | |
71 | \r | |
72 | extern EFI_GUID gEfiPlatformBootModeGuid;\r | |
73 | extern EFI_GUID gEfiNormalSetupGuid;\r | |
74 | extern CHAR16 gEfiNormalSetupName[];\r | |
75 | extern CHAR16 gEfiInSetupName[];\r | |
76 | extern CHAR16 gEfiSystemPasswordName[];\r | |
77 | \r | |
78 | typedef struct {\r | |
79 | EFI_GUID SetupGuid;\r | |
80 | CHAR16 SetupName[0x20]; // Maximum "Setup" Name\r | |
81 | UINT32 PlatformBootMode;\r | |
82 | } EFI_PLATFORM_SETUP_ID;\r | |
83 | \r | |
84 | #endif\r |