projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
760d1d0
)
sysbus: Drop FROM_SYSBUS()
author
Andreas Färber
<afaerber@suse.de>
Sat, 27 Jul 2013 13:39:20 +0000
(15:39 +0200)
committer
Andreas Färber
<afaerber@suse.de>
Mon, 29 Jul 2013 19:07:02 +0000
(21:07 +0200)
As a replacement, use your own macro based on OBJECT_CHECK().
Signed-off-by: Andreas Färber <afaerber@suse.de>
include/hw/sysbus.h
patch
|
blob
|
history
diff --git
a/include/hw/sysbus.h
b/include/hw/sysbus.h
index 8c17165cf2b0062c82d1f89371b1cd5621804c74..fbfc066a2193143a67f89035f7c5c3f785e23686 100644
(file)
--- a/
include/hw/sysbus.h
+++ b/
include/hw/sysbus.h
@@
-55,9
+55,6
@@
struct SysBusDevice {
pio_addr_t pio[QDEV_MAX_PIO];
};
-/* Macros to compensate for lack of type inheritance in C. */
-#define FROM_SYSBUS(type, dev) DO_UPCAST(type, busdev, dev)
-
void *sysbus_new(void);
void sysbus_init_mmio(SysBusDevice *dev, MemoryRegion *memory);
MemoryRegion *sysbus_mmio_get_region(SysBusDevice *dev, int n);