summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Bus/Pci/EhciDxe/UsbHcMem.h
diff options
context:
space:
mode:
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2009-10-14 06:22:49 +0000
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2009-10-14 06:22:49 +0000
commit739802e49c6ae401534d3ed3d743cb2d82ff8c62 (patch)
tree1543fb8b090cee090fe2c041226d406c7558c051 /MdeModulePkg/Bus/Pci/EhciDxe/UsbHcMem.h
parent62b658dd7fc1a617b2bfc81b58d168a6ecb10608 (diff)
downloadedk2-platforms-739802e49c6ae401534d3ed3d743cb2d82ff8c62.tar.xz
update code to eliminate the wrong assumption that pci address is equal to host address in all archs.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9339 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus/Pci/EhciDxe/UsbHcMem.h')
-rw-r--r--MdeModulePkg/Bus/Pci/EhciDxe/UsbHcMem.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/MdeModulePkg/Bus/Pci/EhciDxe/UsbHcMem.h b/MdeModulePkg/Bus/Pci/EhciDxe/UsbHcMem.h
index 8152ce813b..ce0a78298f 100644
--- a/MdeModulePkg/Bus/Pci/EhciDxe/UsbHcMem.h
+++ b/MdeModulePkg/Bus/Pci/EhciDxe/UsbHcMem.h
@@ -135,4 +135,21 @@ UsbHcFreeMem (
IN VOID *Mem,
IN UINTN Size
);
+
+/**
+ Get the pci memory address according to the allocated host memory address.
+
+ @param Pool The memory pool of the host controller.
+ @param Mem The memory to free.
+ @param Size The size of the memory to free.
+
+ @return the pci memory address
+**/
+EFI_PHYSICAL_ADDRESS
+UsbHcGetPciAddressForHostMem (
+ IN USBHC_MEM_POOL *Pool,
+ IN VOID *Mem,
+ IN UINTN Size
+ );
+
#endif