2
0

pc-hotplug.h 830 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * QEMU ACPI hotplug utilities shared defines
  3. *
  4. * Copyright (C) 2014 Red Hat Inc
  5. *
  6. * Authors:
  7. * Igor Mammedov <imammedo@redhat.com>
  8. *
  9. * This work is licensed under the terms of the GNU GPL, version 2 or later.
  10. * See the COPYING file in the top-level directory.
  11. */
  12. #ifndef PC_HOTPLUG_H
  13. #define PC_HOTPLUG_H
  14. /*
  15. * ONLY DEFINEs are permitted in this file since it's shared
  16. * between C and ASL code.
  17. */
  18. /* Limit for CPU arch IDs for CPU hotplug. All hotpluggable CPUs should
  19. * have CPUClass.get_arch_id() < ACPI_CPU_HOTPLUG_ID_LIMIT.
  20. */
  21. #define ACPI_CPU_HOTPLUG_ID_LIMIT 256
  22. /* 256 CPU IDs, 8 bits per entry: */
  23. #define ACPI_GPE_PROC_LEN 32
  24. #define ICH9_CPU_HOTPLUG_IO_BASE 0x0CD8
  25. #define PIIX4_CPU_HOTPLUG_IO_BASE 0xaf00
  26. #define CPU_HOTPLUG_RESOURCE_DEVICE PRES
  27. #define ACPI_MEMORY_HOTPLUG_BASE 0x0a00
  28. #endif