]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/Include/Register/Cpuid.h
UefiCpuPkg: Add Cpuid.h include files for CPUID related defines
[mirror_edk2.git] / UefiCpuPkg / Include / Register / Cpuid.h
diff --git a/UefiCpuPkg/Include/Register/Cpuid.h b/UefiCpuPkg/Include/Register/Cpuid.h
new file mode 100644 (file)
index 0000000..6730551
--- /dev/null
@@ -0,0 +1,51 @@
+/** @file\r
+CPUID Definitions.\r
+\r
+CPUID definitions based on contents of the Intel(R) 64 and IA-32 Architectures\r
+Software Developer's Manual, Volume 2A, CPUID instruction.\r
+\r
+Copyright (c) 2015, 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 __CPUID_H__\r
+#define __CPUID_H__\r
+\r
+//\r
+// Definitions for CPUID instruction\r
+//\r
+#define CPUID_SIGNATURE                         0x0\r
+\r
+#define CPUID_VERSION_INFO                      0x1\r
+\r
+#define CPUID_CACHE_INFO                        0x2\r
+\r
+#define CPUID_SERIAL_NUMBER                     0x3\r
+\r
+#define CPUID_CACHE_PARAMS                      0x4\r
+\r
+#define CPUID_EXTENDED_TOPOLOGY                 0xB\r
+#define   CPUID_EXTENDED_TOPOLOGY_LEVEL_TYPE_INVALID  0x0\r
+#define   CPUID_EXTENDED_TOPOLOGY_LEVEL_TYPE_SMT      0x1\r
+#define   CPUID_EXTENDED_TOPOLOGY_LEVEL_TYPE_CORE     0x2\r
+\r
+#define CPUID_EXTENDED_FUNCTION                 0x80000000\r
+\r
+#define CPUID_EXTENDED_CPU_SIG                  0x80000001\r
+\r
+#define CPUID_BRAND_STRING1                     0x80000002\r
+\r
+#define CPUID_BRAND_STRING2                     0x80000003\r
+\r
+#define CPUID_BRAND_STRING3                     0x80000004\r
+\r
+#define CPUID_VIR_PHY_ADDRESS_SIZE              0x80000008\r
+\r
+#endif\r