summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2017-09-22 00:31:12 +0200
committerLaszlo Ersek <lersek@redhat.com>2017-10-03 16:07:37 +0200
commit4776d5cb3abfa2e35fee03c3a3e219648fee3761 (patch)
tree3a2dd790e602e95dfce9b06b43553dce613aba75 /OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
parenta980324709b195dfe3f83741a7319cc9dc7a2efd (diff)
downloadedk2-4776d5cb3abfa2e35fee03c3a3e219648fee3761.tar.gz
edk2-4776d5cb3abfa2e35fee03c3a3e219648fee3761.tar.bz2
edk2-4776d5cb3abfa2e35fee03c3a3e219648fee3761.zip
OvmfPkg/PciHotPlugInitDxe: add helper functions for setting up paddings
Extract the SetIoPadding() and SetMmioPadding() functions, so that we can set EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR fields using parameter names and values that are more friendly than the original field names and their expected values. Introduce the HighBitSetRoundUp32() and HighBitSetRoundUp64() functions for calculating the last parameter ("SizeExponent") of SetIoPadding() and SetMmioPadding(). Put the new functions to use when requesting the default reservations. (In order to be consistent with a later patch, "SizeExponent" is calculated for SetIoPadding() with HighBitSetRoundUp64().) Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Marcel Apfelbaum <marcel@redhat.com> Cc: Ruiyu Ni <ruiyu.ni@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf')
-rw-r--r--OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf1
1 files changed, 1 insertions, 0 deletions
diff --git a/OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf b/OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
index 91729ae1ed..e0ec9baae1 100644
--- a/OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
+++ b/OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
@@ -29,6 +29,7 @@
MdePkg/MdePkg.dec
[LibraryClasses]
+ BaseLib
BaseMemoryLib
DebugLib
DevicePathLib