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