sysbus.h (95a9457fd44ad97c518858a4e1586a5498f9773c) sysbus.h (7e83a77f96ee18cb891f309dc617caa5e07ff51e)
1#ifndef HW_SYSBUS_H
2#define HW_SYSBUS_H
3
4/* Devices attached directly to the main system bus. */
5
6#include "hw/qdev-core.h"
7#include "exec/memory.h"
8

--- 103 unchanged lines hidden (view full) ---

112 size_t childsize, const char *childtype);
113
114/* Call func for every dynamically created sysbus device in the system */
115void foreach_dynamic_sysbus_device(FindSysbusDeviceFunc *func, void *opaque);
116
117/* Legacy helper function for creating devices. */
118DeviceState *sysbus_create_varargs(const char *name,
119 hwaddr addr, ...);
1#ifndef HW_SYSBUS_H
2#define HW_SYSBUS_H
3
4/* Devices attached directly to the main system bus. */
5
6#include "hw/qdev-core.h"
7#include "exec/memory.h"
8

--- 103 unchanged lines hidden (view full) ---

112 size_t childsize, const char *childtype);
113
114/* Call func for every dynamically created sysbus device in the system */
115void foreach_dynamic_sysbus_device(FindSysbusDeviceFunc *func, void *opaque);
116
117/* Legacy helper function for creating devices. */
118DeviceState *sysbus_create_varargs(const char *name,
119 hwaddr addr, ...);
120DeviceState *sysbus_try_create_varargs(const char *name,
121 hwaddr addr, ...);
120
122static inline DeviceState *sysbus_create_simple(const char *name,
123 hwaddr addr,
124 qemu_irq irq)
125{
126 return sysbus_create_varargs(name, addr, irq, NULL);
127}
128
121static inline DeviceState *sysbus_create_simple(const char *name,
122 hwaddr addr,
123 qemu_irq irq)
124{
125 return sysbus_create_varargs(name, addr, irq, NULL);
126}
127
129static inline DeviceState *sysbus_try_create_simple(const char *name,
130 hwaddr addr,
131 qemu_irq irq)
132{
133 return sysbus_try_create_varargs(name, addr, irq, NULL);
134}
135
136#endif /* HW_SYSBUS_H */
128
129#endif /* HW_SYSBUS_H */