]>
Commit | Line | Data |
---|---|---|
b303605e MK |
1 | /** @file\r |
2 | Definition of the global NVS area protocol. This protocol\r | |
3 | publishes the address and format of a global ACPI NVS buffer\r | |
4 | used as a communications buffer between SMM code and ASL code.\r | |
5 | The format is derived from the ACPI reference code, version 0.95.\r | |
6 | Note: Data structures defined in this protocol are not naturally aligned.\r | |
7 | \r | |
8 | Copyright (c) 2013-2015 Intel Corporation.\r | |
9 | \r | |
10 | This program and the accompanying materials\r | |
11 | are licensed and made available under the terms and conditions of the BSD License\r | |
12 | which accompanies this distribution. The full text of the license may be found at\r | |
13 | http://opensource.org/licenses/bsd-license.php\r | |
14 | \r | |
15 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
16 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
17 | \r | |
18 | **/\r | |
19 | \r | |
20 | #ifndef _GLOBAL_NVS_AREA_H_\r | |
21 | #define _GLOBAL_NVS_AREA_H_\r | |
22 | \r | |
23 | //\r | |
24 | // Forward reference for pure ANSI compatability\r | |
25 | //\r | |
26 | \r | |
27 | typedef struct _EFI_GLOBAL_NVS_AREA_PROTOCOL EFI_GLOBAL_NVS_AREA_PROTOCOL;\r | |
28 | \r | |
29 | //\r | |
30 | // Global NVS Area Protocol GUID\r | |
31 | //\r | |
32 | #define EFI_GLOBAL_NVS_AREA_PROTOCOL_GUID \\r | |
33 | { 0x74e1e48, 0x8132, 0x47a1, {0x8c, 0x2c, 0x3f, 0x14, 0xad, 0x9a, 0x66, 0xdc} }\r | |
34 | \r | |
35 | \r | |
36 | //\r | |
37 | // Global NVS Area definition\r | |
38 | //\r | |
39 | #pragma pack (1)\r | |
40 | typedef struct {\r | |
41 | //\r | |
42 | // Miscellaneous Dynamic Values\r | |
43 | //\r | |
44 | UINT32 OperatingSystemType; // Os type indicator\r | |
45 | UINT32 Cfgd; // System configuration description\r | |
46 | UINT32 HpetEnable;\r | |
47 | \r | |
48 | UINT32 Pm1blkIoBaseAddress;\r | |
49 | UINT32 PmbaIoBaseAddress;\r | |
50 | UINT32 Gpe0blkIoBaseAddress;\r | |
51 | UINT32 GbaIoBaseAddress;\r | |
52 | \r | |
53 | UINT32 SmbaIoBaseAddress;\r | |
54 | UINT32 Reserved1;\r | |
55 | UINT32 WdtbaIoBaseAddress;\r | |
56 | \r | |
57 | UINT32 HpetBaseAddress;\r | |
58 | UINT32 HpetSize;\r | |
59 | UINT32 PciExpressBaseAddress;\r | |
60 | UINT32 PciExpressSize;\r | |
61 | \r | |
62 | UINT32 RcbaMmioBaseAddress;\r | |
63 | UINT32 RcbaMmioSize;\r | |
64 | UINT32 IoApicBaseAddress;\r | |
65 | UINT32 IoApicSize;\r | |
66 | \r | |
67 | UINT32 TpmPresent;\r | |
68 | UINT32 DBG2Present;\r | |
69 | UINT32 PlatformType; // Set to one of EFI_PLATFORM_TYPE enums.\r | |
70 | UINT32 AlternateSla; // If TRUE use alternate I2C Slave addresses.\r | |
71 | \r | |
72 | UINT8 Reserved[512 - 4 * 22]; // Total 512 Bytes\r | |
73 | } EFI_GLOBAL_NVS_AREA;\r | |
74 | #pragma pack ()\r | |
75 | \r | |
76 | //\r | |
77 | // Global NVS Area Protocol\r | |
78 | //\r | |
79 | struct _EFI_GLOBAL_NVS_AREA_PROTOCOL {\r | |
80 | EFI_GLOBAL_NVS_AREA *Area;\r | |
81 | };\r | |
82 | \r | |
83 | //\r | |
84 | // Extern the GUID for protocol users.\r | |
85 | //\r | |
86 | extern EFI_GUID gEfiGlobalNvsAreaProtocolGuid;\r | |
87 | \r | |
88 | #endif\r |