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