diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-02-25 09:14:29 +0800 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2016-02-26 13:28:33 +0100 |
commit | 63b90643afb19f84e4cd3681a9a402ec65b1cf8d (patch) | |
tree | 8d709cca09c2d1013e38289627a12322e048b38a /MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c | |
parent | 762d8ddb2877581eaf20e0f090692f06a83c7588 (diff) | |
download | edk2-platforms-63b90643afb19f84e4cd3681a9a402ec65b1cf8d.tar.xz |
MdeModulePkg/PciHostBridge: Refine function header comments.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Shumin Qiu <shumin.qiu@intel.com>
Reviewed-by: Qiu Shumin <shumin.qiu@intel.com>
Diffstat (limited to 'MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c')
-rw-r--r-- | MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c b/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c index 08285d84d5..edf042cc25 100644 --- a/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c +++ b/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge.c @@ -258,6 +258,19 @@ ResourceConflict ( FreePool (Resources);
}
+/**
+ Allocate Length of MMIO or IO resource with alignment BitsOfAlignment
+ from GCD range [BaseAddress, Limit).
+
+ @param Mmio TRUE for MMIO and FALSE for IO.
+ @param Length Length of the resource to allocate.
+ @param BitsOfAlignment Alignment of the resource to allocate.
+ @param BaseAddress The starting address the allocation is from.
+ @param Limit The ending address the allocation is to.
+
+ @retval The base address of the allocated resource or MAX_UINT64 if allocation
+ fails.
+**/
UINT64
AllocateResource (
BOOLEAN Mmio,
@@ -306,6 +319,7 @@ AllocateResource ( }
return MAX_UINT64;
}
+
/**
Enter a certain phase of the PCI enumeration process.
|