xref: /openbmc/qemu/hw/nubus/nubus-bridge.c (revision a68694cd)
1 /*
2  * QEMU Macintosh Nubus
3  *
4  * Copyright (c) 2013-2018 Laurent Vivier <laurent@vivier.eu>
5  *
6  * This work is licensed under the terms of the GNU GPL, version 2 or later.
7  * See the COPYING file in the top-level directory.
8  *
9  */
10 
11 #include "qemu/osdep.h"
12 #include "hw/sysbus.h"
13 #include "hw/nubus/nubus.h"
14 
15 static void nubus_bridge_class_init(ObjectClass *klass, void *data)
16 {
17     DeviceClass *dc = DEVICE_CLASS(klass);
18 
19     dc->fw_name = "nubus";
20 }
21 
22 static const TypeInfo nubus_bridge_info = {
23     .name          = TYPE_NUBUS_BRIDGE,
24     .parent        = TYPE_SYS_BUS_DEVICE,
25     .instance_size = sizeof(SysBusDevice),
26     .class_init    = nubus_bridge_class_init,
27 };
28 
29 static void nubus_register_types(void)
30 {
31     type_register_static(&nubus_bridge_info);
32 }
33 
34 type_init(nubus_register_types)
35