 521b3673ac
			
		
	
	
		521b3673ac
		
	
	
	
	
		
			
			... it will be used to abstract generic ACPI bits from device that implements ACPI interface. ACPIOSTInfo type is used for passing-through raw _OST event/status codes reported by guest OS to a management layer. It lets management tools interpret values as specified by ACPI spec if it is interested in it. QEMU doesn't encode these values as enum, since it doesn't need to handle them and it allows interface to scale well without any changes in QEMU while guest OS and management evolves in time. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
		
			
				
	
	
		
			16 lines
		
	
	
		
			366 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			366 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #include "hw/acpi/acpi_dev_interface.h"
 | |
| #include "qemu/module.h"
 | |
| 
 | |
| static void register_types(void)
 | |
| {
 | |
|     static const TypeInfo acpi_dev_if_info = {
 | |
|         .name          = TYPE_ACPI_DEVICE_IF,
 | |
|         .parent        = TYPE_INTERFACE,
 | |
|         .class_size = sizeof(AcpiDeviceIfClass),
 | |
|     };
 | |
| 
 | |
|     type_register_static(&acpi_dev_if_info);
 | |
| }
 | |
| 
 | |
| type_init(register_types)
 |