qemu

FORK: QEMU emulator
git clone https://git.neptards.moe/neptards/qemu.git
Log | Files | Refs | Submodules | LICENSE

generic_event_device_x86.c (982B)


      1 /*
      2  * x86 variant of the generic event device for hw reduced acpi
      3  *
      4  * This program is free software; you can redistribute it and/or modify it
      5  * under the terms and conditions of the GNU General Public License,
      6  * version 2 or later, as published by the Free Software Foundation.
      7  */
      8 
      9 #include "qemu/osdep.h"
     10 #include "hw/acpi/generic_event_device.h"
     11 #include "hw/i386/pc.h"
     12 
     13 static void acpi_ged_x86_class_init(ObjectClass *class, void *data)
     14 {
     15     AcpiDeviceIfClass *adevc = ACPI_DEVICE_IF_CLASS(class);
     16 
     17     adevc->madt_cpu = pc_madt_cpu_entry;
     18 }
     19 
     20 static const TypeInfo acpi_ged_x86_info = {
     21     .name          = TYPE_ACPI_GED_X86,
     22     .parent        = TYPE_ACPI_GED,
     23     .class_init    = acpi_ged_x86_class_init,
     24     .interfaces = (InterfaceInfo[]) {
     25         { TYPE_HOTPLUG_HANDLER },
     26         { TYPE_ACPI_DEVICE_IF },
     27         { }
     28     }
     29 };
     30 
     31 static void acpi_ged_x86_register_types(void)
     32 {
     33     type_register_static(&acpi_ged_x86_info);
     34 }
     35 
     36 type_init(acpi_ged_x86_register_types)