2014-11-14 01:37:16 +01:00
|
|
|
/** @file
|
|
|
|
OVMF Platform definitions
|
|
|
|
|
2015-05-13 11:31:10 +02:00
|
|
|
Copyright (C) 2015, Red Hat, Inc.
|
2014-11-14 01:37:16 +01:00
|
|
|
Copyright (c) 2014, Gabriel L. Somlo <somlo@cmu.edu>
|
|
|
|
|
|
|
|
This program and the accompanying materials are licensed and made
|
|
|
|
available under the terms and conditions of the BSD License which
|
|
|
|
accompanies this distribution. The full text of the license may
|
|
|
|
be found at http://opensource.org/licenses/bsd-license.php
|
|
|
|
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef __OVMF_PLATFORMS_H__
|
|
|
|
#define __OVMF_PLATFORMS_H__
|
|
|
|
|
|
|
|
#include <Library/PciLib.h>
|
|
|
|
#include <IndustryStandard/Pci22.h>
|
2015-05-13 11:31:10 +02:00
|
|
|
#include <IndustryStandard/Q35MchIch9.h>
|
|
|
|
#include <IndustryStandard/I440FxPiix4.h>
|
2014-11-14 01:37:16 +01:00
|
|
|
|
|
|
|
//
|
|
|
|
// OVMF Host Bridge DID Address
|
|
|
|
//
|
|
|
|
#define OVMF_HOSTBRIDGE_DID \
|
|
|
|
PCI_LIB_ADDRESS (0, 0, 0, PCI_DEVICE_ID_OFFSET)
|
|
|
|
|
2015-05-13 11:31:53 +02:00
|
|
|
//
|
|
|
|
// Common bits in same-purpose registers
|
|
|
|
//
|
|
|
|
#define PMBA_RTE BIT0
|
|
|
|
|
|
|
|
//
|
|
|
|
// Common IO ports relative to the Power Management Base Address
|
|
|
|
//
|
|
|
|
#define ACPI_TIMER_OFFSET 0x8
|
|
|
|
|
2014-11-14 01:37:16 +01:00
|
|
|
#endif
|