]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Bus/Pci/UhciPei/UhcPeim.c
MdeModulePkg UhciPei: Support IoMmu
authorStar Zeng <star.zeng@intel.com>
Mon, 20 Nov 2017 07:44:39 +0000 (15:44 +0800)
committerStar Zeng <star.zeng@intel.com>
Wed, 22 Nov 2017 10:37:49 +0000 (18:37 +0800)
commit8284b1791ea99416db42075626d7098fa4f89598
treea86b070dde86af55159480d31caaa545d5e2f97c
parentc34a5aab53d2fd87204a00bb93cd41bb6dc4d15b
MdeModulePkg UhciPei: Support IoMmu

Update the UhciPei driver to consume IOMMU_PPI to allocate DMA buffer.

If no IOMMU_PPI exists, this driver still calls PEI service to allocate
DMA buffer, with assumption that DRAM==DMA.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
MdeModulePkg/Bus/Pci/UhciPei/DmaMem.c [new file with mode: 0644]
MdeModulePkg/Bus/Pci/UhciPei/UhcPeim.c
MdeModulePkg/Bus/Pci/UhciPei/UhcPeim.h
MdeModulePkg/Bus/Pci/UhciPei/UhciPei.inf