]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/SmmControl2Dxe: correct PCI_CONFIG_READ_WRITE in S3 boot script
authorLaszlo Ersek <lersek@redhat.com>
Thu, 1 Dec 2016 01:20:15 +0000 (02:20 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Mon, 9 Jan 2017 19:49:20 +0000 (20:49 +0100)
commit7ecfa0aa38a3601c958a81dc36f69b5e04e40584
tree5ecb6dadedae967e00baab2b427a88b081daee72
parent133834858a3ab5ba61ca1dc2bb37d322095fcf07
OvmfPkg/SmmControl2Dxe: correct PCI_CONFIG_READ_WRITE in S3 boot script

EFI_BOOT_SCRIPT_PCI_CONFIG_READ_WRITE_OPCODE expects the PCI address to
access in UEFI encoding, not in edk2/PciLib encoding.

Introduce the POWER_MGMT_REGISTER_Q35_EFI_PCI_ADDRESS() macro, and with
it, store the ICH9_GEN_PMCON_1 register's address to the boot script in
UEFI representation.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
OvmfPkg/Include/IndustryStandard/Q35MchIch9.h
OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.c