OvmfPkg/MemEncryptSevLib: find pages of initial SMRAM save state map
[mirror_edk2.git] / OvmfPkg / Include / OvmfPlatforms.h
CommitLineData
4e48c72c
GS
1/** @file\r
2 OVMF Platform definitions\r
3\r
cb2e3007 4 Copyright (C) 2015, Red Hat, Inc.\r
4e48c72c
GS
5 Copyright (c) 2014, Gabriel L. Somlo <somlo@cmu.edu>\r
6\r
7 This program and the accompanying materials are licensed and made\r
8 available under the terms and conditions of the BSD License which\r
9 accompanies this distribution. The full text of the license may\r
10 be found at http://opensource.org/licenses/bsd-license.php\r
11\r
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
14**/\r
15\r
16#ifndef __OVMF_PLATFORMS_H__\r
17#define __OVMF_PLATFORMS_H__\r
18\r
19#include <Library/PciLib.h>\r
20#include <IndustryStandard/Pci22.h>\r
cb2e3007
LE
21#include <IndustryStandard/Q35MchIch9.h>\r
22#include <IndustryStandard/I440FxPiix4.h>\r
4e48c72c
GS
23\r
24//\r
25// OVMF Host Bridge DID Address\r
26//\r
27#define OVMF_HOSTBRIDGE_DID \\r
28 PCI_LIB_ADDRESS (0, 0, 0, PCI_DEVICE_ID_OFFSET)\r
29\r
b2f4da39
LE
30//\r
31// Values we program into the PM base address registers\r
32//\r
33#define PIIX4_PMBA_VALUE 0xB000\r
b97af6d4 34#define ICH9_PMBASE_VALUE 0x0600\r
b2f4da39 35\r
cc5e0aa9
LE
36//\r
37// Common bits in same-purpose registers\r
38//\r
39#define PMBA_RTE BIT0\r
40\r
41//\r
42// Common IO ports relative to the Power Management Base Address\r
43//\r
44#define ACPI_TIMER_OFFSET 0x8\r
45\r
4e48c72c 46#endif\r