]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/Include/OvmfPlatforms.h
OvmfPkg: Apply uncrustify changes
[mirror_edk2.git] / OvmfPkg / Include / OvmfPlatforms.h
1 /** @file
2 OVMF Platform definitions
3
4 Copyright (C) 2015, Red Hat, Inc.
5 Copyright (c) 2014, Gabriel L. Somlo <somlo@cmu.edu>
6
7 SPDX-License-Identifier: BSD-2-Clause-Patent
8 **/
9
10 #ifndef __OVMF_PLATFORMS_H__
11 #define __OVMF_PLATFORMS_H__
12
13 #include <Library/PciLib.h>
14 #include <IndustryStandard/Pci22.h>
15 #include <IndustryStandard/Q35MchIch9.h>
16 #include <IndustryStandard/I440FxPiix4.h>
17 #include <IndustryStandard/Bhyve.h>
18 #include <IndustryStandard/Microvm.h>
19
20 //
21 // OVMF Host Bridge DID Address
22 //
23 #define OVMF_HOSTBRIDGE_DID \
24 PCI_LIB_ADDRESS (0, 0, 0, PCI_DEVICE_ID_OFFSET)
25
26 //
27 // Values we program into the PM base address registers
28 //
29 #define PIIX4_PMBA_VALUE 0xB000
30 #define ICH9_PMBASE_VALUE 0x0600
31
32 //
33 // Common bits in same-purpose registers
34 //
35 #define PMBA_RTE BIT0
36
37 //
38 // Common IO ports relative to the Power Management Base Address
39 //
40 #define ACPI_TIMER_OFFSET 0x8
41
42 #endif