sysbus: Drop FROM_SYSBUS()
As a replacement, use your own macro based on OBJECT_CHECK(). Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
760d1d00b8
commit
f3d74d32e7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user