X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=IntelSiliconPkg%2FIntelVTdDxe%2FDmaProtection.h;h=8cfa69cb2364a670e77bc7f95b4cceb3c302cf56;hp=6efed6e555d1698ded000a72731c966b307b88fb;hb=76c6f69ccadc7835c9616b077d9ff1b8e46fe49e;hpb=c049fc99098b08a4a5bae38ff5f06cce8904fc03;ds=sidebyside diff --git a/IntelSiliconPkg/IntelVTdDxe/DmaProtection.h b/IntelSiliconPkg/IntelVTdDxe/DmaProtection.h index 6efed6e555..8cfa69cb23 100644 --- a/IntelSiliconPkg/IntelVTdDxe/DmaProtection.h +++ b/IntelSiliconPkg/IntelVTdDxe/DmaProtection.h @@ -41,6 +41,8 @@ #include #include +#define VTD_64BITS_ADDRESS(Lo, Hi) (LShiftU64 (Lo, 12) | LShiftU64 (Hi, 32)) + #define ALIGN_VALUE_UP(Value, Alignment) (((Value) + (Alignment) - 1) & (~((Alignment) - 1))) #define ALIGN_VALUE_LOW(Value, Alignment) ((Value) & (~((Alignment) - 1)))