]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/EmmcBlockIoPei: Support IoMmu
authorHao Wu <hao.a.wu@intel.com>
Mon, 30 Oct 2017 03:15:08 +0000 (11:15 +0800)
committerHao Wu <hao.a.wu@intel.com>
Fri, 17 Nov 2017 03:38:43 +0000 (11:38 +0800)
commit85ad9a6e0afed2bea4252546349235c861701297
tree683ebef3dc01061a55f4fd2257bcb8ae03804239
parent44a0857ec66d53829a8ab5745040cad770883475
MdeModulePkg/EmmcBlockIoPei: Support IoMmu

Update the EmmcBlockIoPei 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.

This is a compatible change.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Bus/Sd/EmmcBlockIoPei/DmaMem.c [new file with mode: 0644]
MdeModulePkg/Bus/Sd/EmmcBlockIoPei/EmmcBlockIoPei.c
MdeModulePkg/Bus/Sd/EmmcBlockIoPei/EmmcBlockIoPei.h
MdeModulePkg/Bus/Sd/EmmcBlockIoPei/EmmcBlockIoPei.inf
MdeModulePkg/Bus/Sd/EmmcBlockIoPei/EmmcHcMem.c
MdeModulePkg/Bus/Sd/EmmcBlockIoPei/EmmcHcMem.h
MdeModulePkg/Bus/Sd/EmmcBlockIoPei/EmmcHci.c