]> git.proxmox.com Git - mirror_edk2.git/blobdiff - QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei/general_definitions.h
QuarkSocPkg: Add new package for Quark SoC X1000
[mirror_edk2.git] / QuarkSocPkg / QuarkNorthCluster / MemoryInit / Pei / general_definitions.h
diff --git a/QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei/general_definitions.h b/QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei/general_definitions.h
new file mode 100644 (file)
index 0000000..c5f92b3
--- /dev/null
@@ -0,0 +1,90 @@
+/************************************************************************\r
+ *\r
+ * Copyright (c) 2013-2015 Intel Corporation.\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
+#ifndef __GENERAL_DEFINITIONS_H\r
+#define __GENERAL_DEFINITIONS_H\r
+\r
+#undef BIT0\r
+#undef BIT1\r
+#undef BIT2\r
+#undef BIT3\r
+#undef BIT4\r
+#undef BIT5\r
+#undef BIT6\r
+#undef BIT7\r
+#undef BIT8\r
+#undef BIT9\r
+#undef BIT10\r
+#undef BIT11\r
+#undef BIT12\r
+#undef BIT13\r
+#undef BIT14\r
+#undef BIT15\r
+#undef BIT16\r
+#undef BIT17\r
+#undef BIT18\r
+#undef BIT19\r
+#undef BIT20\r
+#undef BIT21\r
+#undef BIT22\r
+#undef BIT23\r
+#undef BIT24\r
+#undef BIT25\r
+#undef BIT26\r
+#undef BIT27\r
+#undef BIT28\r
+#undef BIT29\r
+#undef BIT30\r
+#undef BIT31\r
+\r
+\r
+\r
+// defines\r
+#define BIT0  0x00000001U\r
+#define BIT1  0x00000002U\r
+#define BIT2  0x00000004U\r
+#define BIT3  0x00000008U\r
+#define BIT4  0x00000010U\r
+#define BIT5  0x00000020U\r
+#define BIT6  0x00000040U\r
+#define BIT7  0x00000080U\r
+#define BIT8  0x00000100U\r
+#define BIT9  0x00000200U\r
+#define BIT10 0x00000400U\r
+#define BIT11 0x00000800U\r
+#define BIT12 0x00001000U\r
+#define BIT13 0x00002000U\r
+#define BIT14 0x00004000U\r
+#define BIT15 0x00008000U\r
+#define BIT16 0x00010000U\r
+#define BIT17 0x00020000U\r
+#define BIT18 0x00040000U\r
+#define BIT19 0x00080000U\r
+#define BIT20 0x00100000U\r
+#define BIT21 0x00200000U\r
+#define BIT22 0x00400000U\r
+#define BIT23 0x00800000U\r
+#define BIT24 0x01000000U\r
+#define BIT25 0x02000000U\r
+#define BIT26 0x04000000U\r
+#define BIT27 0x08000000U\r
+#define BIT28 0x10000000U\r
+#define BIT29 0x20000000U\r
+#define BIT30 0x40000000U\r
+#define BIT31 0x80000000U\r
+\r
+\r
+#define true  0x01\r
+#define false 0x00\r
+\r
+#endif\r