2014-11-14 08:37:16 +08:00
|
|
|
/** @file
|
|
|
|
OVMF Platform definitions
|
|
|
|
|
2015-05-13 17:31:10 +08:00
|
|
|
Copyright (C) 2015, Red Hat, Inc.
|
2014-11-14 08:37:16 +08:00
|
|
|
Copyright (c) 2014, Gabriel L. Somlo <somlo@cmu.edu>
|
|
|
|
|
2019-04-04 07:06:33 +08:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2014-11-14 08:37:16 +08:00
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef __OVMF_PLATFORMS_H__
|
|
|
|
#define __OVMF_PLATFORMS_H__
|
|
|
|
|
|
|
|
#include <Library/PciLib.h>
|
|
|
|
#include <IndustryStandard/Pci22.h>
|
2015-05-13 17:31:10 +08:00
|
|
|
#include <IndustryStandard/Q35MchIch9.h>
|
|
|
|
#include <IndustryStandard/I440FxPiix4.h>
|
2020-04-30 09:12:12 +08:00
|
|
|
#include <IndustryStandard/Bhyve.h>
|
2021-09-08 17:01:14 +08:00
|
|
|
#include <IndustryStandard/Microvm.h>
|
2014-11-14 08:37:16 +08:00
|
|
|
|
|
|
|
//
|
|
|
|
// OVMF Host Bridge DID Address
|
|
|
|
//
|
|
|
|
#define OVMF_HOSTBRIDGE_DID \
|
|
|
|
PCI_LIB_ADDRESS (0, 0, 0, PCI_DEVICE_ID_OFFSET)
|
|
|
|
|
2016-05-10 01:26:37 +08:00
|
|
|
//
|
|
|
|
// Values we program into the PM base address registers
|
|
|
|
//
|
2021-12-06 06:54:09 +08:00
|
|
|
#define PIIX4_PMBA_VALUE 0xB000
|
|
|
|
#define ICH9_PMBASE_VALUE 0x0600
|
2016-05-10 01:26:37 +08:00
|
|
|
|
2015-05-13 17:31:53 +08:00
|
|
|
//
|
|
|
|
// Common bits in same-purpose registers
|
|
|
|
//
|
2021-12-06 06:54:09 +08:00
|
|
|
#define PMBA_RTE BIT0
|
2015-05-13 17:31:53 +08:00
|
|
|
|
|
|
|
//
|
|
|
|
// Common IO ports relative to the Power Management Base Address
|
|
|
|
//
|
2021-12-06 06:54:09 +08:00
|
|
|
#define ACPI_TIMER_OFFSET 0x8
|
2015-05-13 17:31:53 +08:00
|
|
|
|
2014-11-14 08:37:16 +08:00
|
|
|
#endif
|