+/** @file\r
+ Macros for accessing QEMU's CPU hotplug register block.\r
+\r
+ Copyright (C) 2019, Red Hat, Inc.\r
+\r
+ SPDX-License-Identifier: BSD-2-Clause-Patent\r
+\r
+ @par Specification Reference:\r
+\r
+ - "docs/specs/acpi_cpu_hotplug.txt" in the QEMU source tree.\r
+\r
+ The original (now "legacy") CPU hotplug interface appeared in QEMU v1.5.0.\r
+ The new ("modern") hotplug interface appeared in QEMU v2.7.0.\r
+\r
+ The macros in this header file map to the minimal subset of the modern\r
+ interface that OVMF needs.\r
+**/\r
+\r
+#ifndef QEMU_CPU_HOTPLUG_H_\r
+#define QEMU_CPU_HOTPLUG_H_\r
+\r
+#include <Base.h>\r
+\r
+//\r
+// Each register offset is:\r
+// - relative to the board-dependent IO base address of the register block,\r
+// - named QEMU_CPUHP_(R|W|RW)_*, according to the possible access modes of the\r
+// register,\r
+// - followed by distinguished bitmasks or values in the register.\r
+//\r
+#define QEMU_CPUHP_R_CMD_DATA2 0x0\r
+\r
+#define QEMU_CPUHP_R_CPU_STAT 0x4\r
+#define QEMU_CPUHP_STAT_ENABLED BIT0\r
+\r
+#define QEMU_CPUHP_RW_CMD_DATA 0x8\r
+\r
+#define QEMU_CPUHP_W_CPU_SEL 0x0\r
+\r
+#define QEMU_CPUHP_W_CMD 0x5\r
+#define QEMU_CPUHP_CMD_GET_PENDING 0x0\r
+\r
+#endif // QEMU_CPU_HOTPLUG_H_\r