8063396bf3
This converts existing DECLARE_INSTANCE_CHECKER usage to OBJECT_DECLARE_SIMPLE_TYPE when possible. $ ./scripts/codeconverter/converter.py -i \ --pattern=AddObjectDeclareSimpleType $(git grep -l '' -- '*.[ch]') Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Acked-by: Paul Durrant <paul@xen.org> Message-Id: <20200916182519.415636-6-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
38 lines
922 B
C
38 lines
922 B
C
/*
|
|
* virtual css bridge definition
|
|
*
|
|
* Copyright 2012,2016 IBM Corp.
|
|
* Author(s): Cornelia Huck <cornelia.huck@de.ibm.com>
|
|
* Pierre Morel <pmorel@linux.vnet.ibm.com>
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or (at
|
|
* your option) any later version. See the COPYING file in the top-level
|
|
* directory.
|
|
*/
|
|
|
|
#ifndef HW_S390X_CSS_BRIDGE_H
|
|
#define HW_S390X_CSS_BRIDGE_H
|
|
|
|
#include "qom/object.h"
|
|
#include "hw/sysbus.h"
|
|
|
|
/* virtual css bridge */
|
|
struct VirtualCssBridge {
|
|
SysBusDevice sysbus_dev;
|
|
bool css_dev_path;
|
|
};
|
|
|
|
#define TYPE_VIRTUAL_CSS_BRIDGE "virtual-css-bridge"
|
|
OBJECT_DECLARE_SIMPLE_TYPE(VirtualCssBridge, VIRTUAL_CSS_BRIDGE)
|
|
|
|
/* virtual css bus type */
|
|
struct VirtualCssBus {
|
|
BusState parent_obj;
|
|
};
|
|
|
|
#define TYPE_VIRTUAL_CSS_BUS "virtual-css-bus"
|
|
OBJECT_DECLARE_SIMPLE_TYPE(VirtualCssBus, VIRTUAL_CSS_BUS)
|
|
VirtualCssBus *virtual_css_bus_init(void);
|
|
|
|
#endif
|