]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Drivers/MmCommunicationDxe/MmCommunicate.h
ArmPkg/Drivers: Add EFI_MM_COMMUNICATION_PROTOCOL DXE driver.
[mirror_edk2.git] / ArmPkg / Drivers / MmCommunicationDxe / MmCommunicate.h
diff --git a/ArmPkg/Drivers/MmCommunicationDxe/MmCommunicate.h b/ArmPkg/Drivers/MmCommunicationDxe/MmCommunicate.h
new file mode 100644 (file)
index 0000000..0bf1c8d
--- /dev/null
@@ -0,0 +1,28 @@
+/** @file\r
+\r
+  Copyright (c) 2016-2018, ARM Limited. All rights reserved.\r
+\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
+#if !defined _MM_COMMUNICATE_H_\r
+#define _MM_COMMUNICATE_H_\r
+\r
+#define MM_MAJOR_VER_MASK        0xEFFF0000\r
+#define MM_MINOR_VER_MASK        0x0000FFFF\r
+#define MM_MAJOR_VER_SHIFT       16\r
+\r
+#define MM_MAJOR_VER(x) (((x) & MM_MAJOR_VER_MASK) >> MM_MAJOR_VER_SHIFT)\r
+#define MM_MINOR_VER(x) ((x) & MM_MINOR_VER_MASK)\r
+\r
+#define MM_CALLER_MAJOR_VER      0x1UL\r
+#define MM_CALLER_MINOR_VER      0x0\r
+\r
+#endif /* _MM_COMMUNICATE_H_ */\r