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 /* 16 * ONLY DEFINEs are permited in this file since it's shared 17 * between C and ASL code. 18 */ 19 #define ACPI_CPU_HOTPLUG_STATUS 4 20 21 /* Limit for CPU arch IDs for CPU hotplug. All hotpluggable CPUs should 22 * have CPUClass.get_arch_id() < ACPI_CPU_HOTPLUG_ID_LIMIT. 23 */ 24 #define ACPI_CPU_HOTPLUG_ID_LIMIT 256 25 26 /* 256 CPU IDs, 8 bits per entry: */ 27 #define ACPI_GPE_PROC_LEN 32 28 29 #define ICH9_CPU_HOTPLUG_IO_BASE 0x0CD8 30 #define PIIX4_CPU_HOTPLUG_IO_BASE 0xaf00 31 #define CPU_HOTPLUG_RESOURCE_DEVICE PRES 32 33 #define ACPI_MEMORY_HOTPLUG_IO_LEN 24 34 #define ACPI_MEMORY_HOTPLUG_BASE 0x0a00 35 36 #define MEMORY_HOTPLUG_DEVICE MHPD 37 #define MEMORY_SLOTS_NUMBER MDNR 38 #define MEMORY_HOTPLUG_IO_REGION HPMR 39 #define MEMORY_SLOT_ADDR_LOW MRBL 40 #define MEMORY_SLOT_ADDR_HIGH MRBH 41 #define MEMORY_SLOT_SIZE_LOW MRLL 42 #define MEMORY_SLOT_SIZE_HIGH MRLH 43 #define MEMORY_SLOT_PROXIMITY MPX 44 #define MEMORY_SLOT_ENABLED MES 45 #define MEMORY_SLOT_INSERT_EVENT MINS 46 #define MEMORY_SLOT_REMOVE_EVENT MRMV 47 #define MEMORY_SLOT_EJECT MEJ 48 #define MEMORY_SLOT_SLECTOR MSEL 49 #define MEMORY_SLOT_OST_EVENT MOEV 50 #define MEMORY_SLOT_OST_STATUS MOSC 51 #define MEMORY_SLOT_LOCK MLCK 52 #define MEMORY_SLOT_STATUS_METHOD MRST 53 #define MEMORY_SLOT_CRS_METHOD MCRS 54 #define MEMORY_SLOT_OST_METHOD MOST 55 #define MEMORY_SLOT_PROXIMITY_METHOD MPXM 56 #define MEMORY_SLOT_EJECT_METHOD MEJ0 57 #define MEMORY_SLOT_NOTIFY_METHOD MTFY 58 #define MEMORY_SLOT_SCAN_METHOD MSCN 59 60 #endif 61