17e629d1dSIgor Mammedov /* 27e629d1dSIgor Mammedov * QEMU ACPI hotplug utilities shared defines 37e629d1dSIgor Mammedov * 47e629d1dSIgor Mammedov * Copyright (C) 2014 Red Hat Inc 57e629d1dSIgor Mammedov * 67e629d1dSIgor Mammedov * Authors: 77e629d1dSIgor Mammedov * Igor Mammedov <imammedo@redhat.com> 87e629d1dSIgor Mammedov * 97e629d1dSIgor Mammedov * This work is licensed under the terms of the GNU GPL, version 2 or later. 107e629d1dSIgor Mammedov * See the COPYING file in the top-level directory. 117e629d1dSIgor Mammedov */ 127e629d1dSIgor Mammedov #ifndef PC_HOTPLUG_H 137e629d1dSIgor Mammedov #define PC_HOTPLUG_H 147e629d1dSIgor Mammedov 157e629d1dSIgor Mammedov /* 167e629d1dSIgor Mammedov * ONLY DEFINEs are permited in this file since it's shared 177e629d1dSIgor Mammedov * between C and ASL code. 187e629d1dSIgor Mammedov */ 197e629d1dSIgor Mammedov #define ACPI_CPU_HOTPLUG_STATUS 4 207e629d1dSIgor Mammedov 217e629d1dSIgor Mammedov /* Limit for CPU arch IDs for CPU hotplug. All hotpluggable CPUs should 227e629d1dSIgor Mammedov * have CPUClass.get_arch_id() < ACPI_CPU_HOTPLUG_ID_LIMIT. 237e629d1dSIgor Mammedov */ 247e629d1dSIgor Mammedov #define ACPI_CPU_HOTPLUG_ID_LIMIT 256 257e629d1dSIgor Mammedov 267e629d1dSIgor Mammedov /* 256 CPU IDs, 8 bits per entry: */ 277e629d1dSIgor Mammedov #define ACPI_GPE_PROC_LEN 32 287e629d1dSIgor Mammedov 297e629d1dSIgor Mammedov #define ICH9_CPU_HOTPLUG_IO_BASE 0x0CD8 307e629d1dSIgor Mammedov #define PIIX4_CPU_HOTPLUG_IO_BASE 0xaf00 317e629d1dSIgor Mammedov 32*3ef77acaSIgor Mammedov #define ACPI_MEMORY_HOTPLUG_IO_LEN 24 33*3ef77acaSIgor Mammedov #define ACPI_MEMORY_HOTPLUG_BASE 0x0a00 34*3ef77acaSIgor Mammedov 357e629d1dSIgor Mammedov #endif 36