diff options
author | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-10-14 06:22:49 +0000 |
---|---|---|
committer | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-10-14 06:22:49 +0000 |
commit | 739802e49c6ae401534d3ed3d743cb2d82ff8c62 (patch) | |
tree | 1543fb8b090cee090fe2c041226d406c7558c051 /MdeModulePkg/Bus/Pci/EhciDxe/UsbHcMem.h | |
parent | 62b658dd7fc1a617b2bfc81b58d168a6ecb10608 (diff) | |
download | edk2-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.h | 17 |
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
|