qemu-patch-raspberry4/hw/block
Andreas Färber 19d46d711d fdc: Fix inheritence for SUNW,fdtwo
Since commit dd3be74207 SUNW,fdtwo's
initfn (realizefn since 940194c236)
was using SYSBUS_FDC() cast. This uses type sysbus-fdc rather than
SUNW,fdtwo.

Fix this by letting SUNW,fdtwo and sysbus-fdc both inherit from an
abstract type base-sysbus-fdc.

This allows to consolidate realizefns by using instance_init functions.
Clean up variable names and variable order while at it.

Reported-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Cc: Hu Tao <hutao@cn.fujitsu.com>
Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Andreas Färber <afaerber@suse.de>
2013-07-29 20:41:13 +02:00
..
dataplane dataplane: refuse to start if device is already in use 2013-07-29 17:19:15 +02:00
block.c hw: move target-independent files to subdirectories 2013-04-08 18:13:12 +02:00
cdrom.c hw: move target-independent files to subdirectories 2013-04-08 18:13:12 +02:00
ecc.c hw: move target-independent files to subdirectories 2013-04-08 18:13:12 +02:00
fdc.c fdc: Fix inheritence for SUNW,fdtwo 2013-07-29 20:41:13 +02:00
hd-geometry.c hw: move target-independent files to subdirectories 2013-04-08 18:13:12 +02:00
m25p80.c block/m25p80: Update Micron entries 2013-07-19 12:52:03 +04:00
Makefile.objs NVMe: Initial commit for new storage interface 2013-06-17 17:47:59 +02:00
nand.c nand: Don't inherit from Sysbus 2013-06-25 19:15:46 +01:00
nvme.c devices: Associate devices to their logical category 2013-07-29 10:37:09 -05:00
nvme.h NVMe: Initial commit for new storage interface 2013-06-17 17:47:59 +02:00
onenand.c hw/block: pass owner to memory_region_init* functions 2013-07-04 17:42:47 +02:00
pc_sysfw.c devices: Associate devices to their logical category 2013-07-29 10:37:09 -05:00
pflash_cfi01.c devices: Associate devices to their logical category 2013-07-29 10:37:09 -05:00
pflash_cfi02.c pflash_cfi02: Use QOM realize for pflash_cfi02 2013-07-23 00:37:35 +02:00
tc58128.c hw: move block devices to hw/block/, configure via default-configs/ 2013-04-08 18:13:13 +02:00
virtio-blk.c Merge remote-tracking branch 'stefanha/block' into staging 2013-07-29 11:33:48 -05:00
xen_blkif.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
xen_disk.c xen_disk: support "direct-io-safe" backend option 2013-07-29 11:03:48 +00:00