]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Include/Protocol/VirtualUncachedPages.h
Updating ArmLib.h to add functions needed to turn on paging in CpuDxe. Also added...
[mirror_edk2.git] / ArmPkg / Include / Protocol / VirtualUncachedPages.h
diff --git a/ArmPkg/Include/Protocol/VirtualUncachedPages.h b/ArmPkg/Include/Protocol/VirtualUncachedPages.h
new file mode 100644 (file)
index 0000000..32deec2
--- /dev/null
@@ -0,0 +1,60 @@
+/** @file\r
+\r
+  Copyright (c) 2008-2010 Apple Inc. All rights reserved.<BR>\r
+\r
+  All rights reserved. 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 __VIRTUAL_UNCACHED_PAGES_ROTOCOL_H__\r
+#define __VIRTUAL_UNCACHED_PAGES_ROTOCOL_H__\r
+\r
+//\r
+// Protocol GUID\r
+//\r
+#define VIRTUAL_UNCACHED_PAGES_PROTOCOL_GUID { 0xAD651C7D, 0x3C22, 0x4DBF, { 0x92, 0xe8, 0x38, 0xa7, 0xcd, 0xae, 0x87, 0xb2 } }\r
+\r
+\r
+\r
+//\r
+// Protocol interface structure\r
+//\r
+typedef struct _VIRTUAL_UNCACHED_PAGES_PROTOCOL  VIRTUAL_UNCACHED_PAGES_PROTOCOL;\r
+\r
+\r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *CONVERT_PAGES_TO_UNCACHED_VIRTUAL_ADDRESS) (\r
+  IN  VIRTUAL_UNCACHED_PAGES_PROTOCOL   *This,\r
+  IN  EFI_PHYSICAL_ADDRESS              Address,\r
+  IN  UINTN                             Length,\r
+  IN  EFI_PHYSICAL_ADDRESS              VirtualMask,\r
+  OUT UINT64                            *Attributes     OPTIONAL\r
+  );\r
+  \r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *FREE_CONVERTED_PAGES) (\r
+  IN  VIRTUAL_UNCACHED_PAGES_PROTOCOL   *This,\r
+  IN  EFI_PHYSICAL_ADDRESS              Address,\r
+  IN  UINTN                             Length,\r
+  IN  EFI_PHYSICAL_ADDRESS              VirtualMask,\r
+  IN  UINT64                            Attributes\r
+  );\r
+\r
+\r
+\r
+struct _VIRTUAL_UNCACHED_PAGES_PROTOCOL {\r
+  CONVERT_PAGES_TO_UNCACHED_VIRTUAL_ADDRESS  ConvertPages;\r
+  FREE_CONVERTED_PAGES                       FreeConvertedPages;\r
+};\r
+\r
+extern EFI_GUID gVirtualUncachedPagesProtocolGuid;\r
+\r
+#endif 
\ No newline at end of file