]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/SdBlockIoPei: Support IoMmu
authorHao Wu <hao.a.wu@intel.com>
Mon, 30 Oct 2017 05:49:31 +0000 (13:49 +0800)
committerHao Wu <hao.a.wu@intel.com>
Fri, 17 Nov 2017 03:38:46 +0000 (11:38 +0800)
commit77af86688c2a117f3addd44b8434c92744ac180e
tree35b707d95c4d11a637d10171e0edda294fbd4b3a
parent85ad9a6e0afed2bea4252546349235c861701297
MdeModulePkg/SdBlockIoPei: Support IoMmu

Update the SdBlockIoPei 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/SdBlockIoPei/DmaMem.c [new file with mode: 0644]
MdeModulePkg/Bus/Sd/SdBlockIoPei/SdBlockIoPei.c
MdeModulePkg/Bus/Sd/SdBlockIoPei/SdBlockIoPei.h
MdeModulePkg/Bus/Sd/SdBlockIoPei/SdBlockIoPei.inf
MdeModulePkg/Bus/Sd/SdBlockIoPei/SdHcMem.c
MdeModulePkg/Bus/Sd/SdBlockIoPei/SdHcMem.h
MdeModulePkg/Bus/Sd/SdBlockIoPei/SdHci.c