]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/UfsBlockIoPei: Support IoMmu
authorHao Wu <hao.a.wu@intel.com>
Wed, 18 Oct 2017 05:37:56 +0000 (13:37 +0800)
committerHao Wu <hao.a.wu@intel.com>
Fri, 17 Nov 2017 03:35:02 +0000 (11:35 +0800)
commit44a0857ec66d53829a8ab5745040cad770883475
tree9292bdca79a1bc03b3bfee84590be39f2df012a0
parent0aa179411872d1f3340107e91b3a590dccd44f88
MdeModulePkg/UfsBlockIoPei: Support IoMmu

V2 changes:
Resource cleanup logic update in UfsEndOfPei().

V1 history:
Update the UfsBlockIoPei 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/Ufs/UfsBlockIoPei/DmaMem.c [new file with mode: 0644]
MdeModulePkg/Bus/Ufs/UfsBlockIoPei/UfsBlockIoPei.c
MdeModulePkg/Bus/Ufs/UfsBlockIoPei/UfsBlockIoPei.h
MdeModulePkg/Bus/Ufs/UfsBlockIoPei/UfsBlockIoPei.inf
MdeModulePkg/Bus/Ufs/UfsBlockIoPei/UfsHcMem.c
MdeModulePkg/Bus/Ufs/UfsBlockIoPei/UfsHcMem.h
MdeModulePkg/Bus/Ufs/UfsBlockIoPei/UfsHci.c