aboutsummaryrefslogtreecommitdiff
path: root/hw/container.c
blob: 73f94c5fd6d5d019c3ea6ad4b4f41a8b25ace783 (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
#include "sysbus.h"

static int container_initfn(SysBusDevice *dev)
{
    return 0;
}

static void container_class_init(ObjectClass *klass, void *data)
{
    SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass);

    k->init = container_initfn;
}

static DeviceInfo container_info = {
    .name = "container",
    .size = sizeof(SysBusDevice),
    .no_user = 1,
    .class_init = container_class_init,
};

static void container_init(void)
{
    sysbus_register_withprop(&container_info);
}

device_init(container_init);