blob: 1e97031d0770d37ee4a328112f8e5fdc91297285 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#include "sysbus.h"
static int container_initfn(SysBusDevice *dev)
{
return 0;
}
static void container_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass);
k->init = container_initfn;
dc->no_user = 1;
}
static TypeInfo container_info = {
.name = "container",
.parent = TYPE_SYS_BUS_DEVICE,
.instance_size = sizeof(SysBusDevice),
.class_init = container_class_init,
};
static void container_init(void)
{
type_register_static(&container_info);
}
device_init(container_init);
|