]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/CpuHotplugSmm/ApicId.h
OvmfPkg/CpuHotplugSmm: add function for collecting CPUs with events
[mirror_edk2.git] / OvmfPkg / CpuHotplugSmm / ApicId.h
diff --git a/OvmfPkg/CpuHotplugSmm/ApicId.h b/OvmfPkg/CpuHotplugSmm/ApicId.h
new file mode 100644 (file)
index 0000000..3c36514
--- /dev/null
@@ -0,0 +1,23 @@
+/** @file\r
+  Type and macro definitions for representing and printing APIC IDs, compatibly\r
+  with the LocalApicLib and PrintLib classes, respectively.\r
+\r
+  Copyright (c) 2020, Red Hat, Inc.\r
+\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
+**/\r
+\r
+#ifndef APIC_ID_H_\r
+#define APIC_ID_H_\r
+\r
+//\r
+// The type that LocalApicLib represents an APIC ID with.\r
+//\r
+typedef UINT32 APIC_ID;\r
+\r
+//\r
+// The PrintLib conversion specification for formatting an APIC_ID.\r
+//\r
+#define FMT_APIC_ID "0x%08x"\r
+\r
+#endif // APIC_ID_H_\r