qemu/include/hw
Heinz Graalfs 477a72a1ef s390x/event-facility: code restructure
Code restructure in order to simplify class hierarchy
  - remove S390SCLPDevice abstract base class
    and move function pointers into new SCLPEventFacilityClass
  - implement SCLPEventFacility as SysBusDevice
  - use define constants for instance creation strings

The following ascii-art shows the class structure wrt the SCLP EventFacility
before (CURRENT) and after the restructure (NEW):

----
CURRENT:

   "s390-sclp-events-bus"
   +-------------------------+
   |      SCLPEventsBus      |
   |-------------------------|
   |BusState qbus            |
   +-------------------------+

   +-------------------------+
   |   SCLPEventFacility     |  - to be replaced by new SCLPEventFacility,
   |-------------------------|    which will be a SysBusDevice
   |SCLPEventsBus sbus       |
   |DeviceState *qdev        |
   |unsigned int receive_mask|
   +-------------------------+

   +-------------------------+
   |   S390SCLPDeviceClass   |  - to be replaced by new SCLPEventFacilityClass
   |-------------------------|
   |DeviceClass qdev         |
   |*(init)()                |
   +-------------------------+

   "s390-sclp-event-facility"
             |
         instance-of
             |
             V
   "s390-sclp-device"           - this is an abstract class
   +-------------------------+
   |     S390SCLPDevice   (A)|  - to be replaced by new SCLPEventFacility
   |-------------------------|
   |SysBusDevice busdev      |
   |SCLPEventFacility *ef    |
   |                         |
   |*(sclp_command_handler)()|  - these 2 go to new SCLPEventFacilityClass
   |*(event_pending)()       |
   +-------------------------+

----
NEW:

   "s390-sclp-events-bus"
   +-------------------------+
   |      SCLPEventsBus      |
   |-------------------------|
   |BusState qbus            |
   +-------------------------+

   +-------------------------+
   | SCLPEventFacilityClass  |
   |-------------------------|
   |DeviceClass parent_class |
   |                         |
   |*(init)()                |
   |*(command_handler)()     |
   |*(event_pending)()       |
   +-------------------------+

   "s390-sclp-event-facility"
   +-------------------------+
   |   SCLPEventFacility     |
   |-------------------------|
   |SysBusDevice parent_class|
   |SCLPEventsBus sbus       |
   |unsigned int receive_mask|
   +-------------------------+

Signed-off-by: Heinz Graalfs <graalfs@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
2014-02-27 09:51:25 +01:00
..
acpi acpi/piix4pm: convert ACPI PCI hotplug to use hotplug-handler API 2014-02-10 10:27:00 +02:00
arm i2c: Rename i2c_bus to I2CBus 2014-02-14 16:22:31 +01:00
audio isa: QOM'ify ISADevice 2013-06-07 14:55:33 +02:00
block qdev: Add enum property types to QAPI schema 2014-02-14 21:12:05 +01:00
char hw/arm/digic: add UART support 2013-12-17 20:12:51 +00:00
cpu icc_bus: QOM'ify ICC 2013-12-24 18:02:18 +01:00
cris cris: Remove the CRIS PIC glue 2014-02-03 14:04:00 +00:00
i2c i2c: Drop FROM_I2C_SLAVE() macro 2014-02-14 16:22:32 +01:00
i386 i2c: Rename i2c_bus to I2CBus 2014-02-14 16:22:31 +01:00
input input: introduce keyboard handler list 2013-04-24 11:50:18 -05:00
intc arm_gic: Add GICC_APRn state to the GICState 2014-02-08 14:50:48 +00:00
ipack ipack: Move IndustryPack out of hw/char/ 2014-02-14 21:11:53 +01:00
isa i2c: Rename i2c_bus to I2CBus 2014-02-14 16:22:31 +01:00
kvm hw: move headers to include/ 2013-04-08 18:13:10 +02:00
lm32 lm32_juart: Relocate and tidy header 2013-07-29 21:06:27 +02:00
m68k hw: move headers to include/ 2013-04-08 18:13:10 +02:00
mips hw/mips: align initrd to 64KB to avoid kernel error 2013-07-29 00:27:35 +02:00
misc arm11mpcore: Split off SCU device 2013-11-05 17:47:30 +01:00
net hw/net: add support for Allwinner EMAC Fast Ethernet controller 2014-02-08 14:50:48 +00:00
nvram loader: use file path size from fw_cfg.h 2013-10-14 17:48:52 +03:00
pci hw/pci: switch to a generic hotplug handling for PCIDevice 2014-02-10 10:27:00 +02:00
pci-host pc: map PCI address space as catchall region for not mapped addresses 2013-12-10 12:29:56 +02:00
ppc exec: Make stl_*_phys input an AddressSpace 2014-02-11 22:57:18 +10:00
s390x s390x/event-facility: code restructure 2014-02-27 09:51:25 +01:00
scsi scsi: Add 2 new sense codes needed by uas 2013-11-26 09:21:17 +01:00
sh4 sh7750: Change cpu field type to SuperHCPU 2013-04-13 13:51:45 +02:00
sparc firmware_abi: move to include/hw/nvram/ 2013-06-02 18:13:54 +03:00
timer hw/timer: add allwinner a10 timer 2013-12-17 20:12:51 +00:00
unicore32 hw: move headers to include/ 2013-04-08 18:13:10 +02:00
virtio dataplane: replace hostmem with memory_region_find 2013-12-20 09:11:57 +01:00
xen pc: Initializing ram_memory under Xen. 2013-09-09 16:22:19 +00:00
boards.h hw: Pass QEMUMachine to its init() method 2013-12-10 12:29:56 +02:00
bt.h Preparation for usb-bt-dongle conditional build 2013-09-10 11:14:41 +02:00
devices.h arm: fix location of some include files 2013-04-15 15:16:01 +02:00
elf_ops.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
empty_slot.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
hotplug.h define hotplug interface 2014-02-10 10:23:35 +02:00
hw.h linux-user: Fix compilation failure 2013-06-27 15:38:35 -05:00
ide.h Call pci_piix3_xen_ide_unplug from unplug_disks 2014-02-20 17:28:08 +00:00
irq.h hw/core: Add interface to allocate and free a single IRQ 2013-10-14 17:11:44 +03:00
loader.h loader: document that errno is set 2014-02-10 10:23:35 +02:00
pcmcia.h pcmcia: QOM'ify PCMCIACardState and MicroDriveState 2013-11-05 18:06:52 +01:00
ptimer.h vmstate: Make VMSTATE_STRUCT_POINTER take type, not ptr-to-type 2014-02-04 15:51:45 +01:00
qdev-core.h QOM infrastructure fixes and device conversions 2014-02-20 13:05:48 +00:00
qdev-dma.h qdev: Remove hex8/32/64 property types 2014-02-14 21:12:04 +01:00
qdev-properties.h qdev: Remove hex8/32/64 property types 2014-02-14 21:12:04 +01:00
qdev.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
sd.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
ssi.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
stream.h Trivial grammar and spelling fixes 2013-05-01 20:55:21 +04:00
sysbus.h memory: Change MemoryRegion priorities from unsigned to signed 2013-10-14 17:11:44 +03:00
usb.h usb: Remove magic constants from device bmAttributes 2014-02-18 15:39:12 +01:00