--- /dev/null
+/** @file\r
+ The definition for DMA access Library.\r
+\r
+ Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r
+ This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution. The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php.\r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#ifndef __DMA_ACCESS_LIB_H__\r
+#define __DMA_ACCESS_LIB_H__\r
+\r
+/**\r
+ Set DMA protected region.\r
+\r
+ @param LowMemoryBase The protected low memory region base.\r
+ @param LowMemoryLength The protected low memory region length.\r
+ @param HighMemoryBase The protected high memory region base.\r
+ @param HighMemoryLength The protected high memory region length.\r
+\r
+ @retval EFI_SUCCESS The DMA protection is set.\r
+ @retval EFI_UNSUPPORTED The DMA protection is not set.\r
+**/\r
+EFI_STATUS\r
+SetDmaProtectedRange (\r
+ IN UINT32 LowMemoryBase,\r
+ IN UINT32 LowMemoryLength,\r
+ IN UINT64 HighMemoryBase,\r
+ IN UINT64 HighMemoryLength\r
+ );\r
+\r
+/**\r
+ Diable DMA protection.\r
+\r
+ @retval DMA protection is disabled.\r
+**/\r
+EFI_STATUS\r
+DisableDmaProtection (\r
+ VOID\r
+ );\r
+\r
+/**\r
+ Get protected low memory alignment.\r
+\r
+ @return protected low memory alignment.\r
+**/\r
+UINT32\r
+GetLowMemoryAlignment (\r
+ VOID\r
+ );\r
+\r
+/**\r
+ Get protected high memory alignment.\r
+\r
+ @return protected high memory alignment.\r
+**/\r
+UINT64\r
+GetHighMemoryAlignment (\r
+ VOID\r
+ );\r
+\r
+#endif\r
+\r