s390x/kvm: implement floating-interrupt controller device
[qemu.git] / include / hw / s390x / s390_flic.h
blob497b219e306c2aa63e5c0b616fce3fd957d1ccb1
1 /*
2 * QEMU S390x KVM floating interrupt controller (flic)
4 * Copyright 2014 IBM Corp.
5 * Author(s): Jens Freimann <jfrei@linux.vnet.ibm.com>
7 * This work is licensed under the terms of the GNU GPL, version 2 or (at
8 * your option) any later version. See the COPYING file in the top-level
9 * directory.
12 #ifndef __KVM_S390_FLIC_H
13 #define __KVM_S390_FLIC_H
15 #include "hw/sysbus.h"
17 #define TYPE_KVM_S390_FLIC "s390-flic"
18 #define KVM_S390_FLIC(obj) \
19 OBJECT_CHECK(KVMS390FLICState, (obj), TYPE_KVM_S390_FLIC)
21 typedef struct KVMS390FLICState {
22 SysBusDevice parent_obj;
24 uint32_t fd;
25 } KVMS390FLICState;
27 #ifdef CONFIG_KVM
28 void s390_flic_init(void);
29 #else
30 static inline void s390_flic_init(void) { }
31 #endif
33 #endif /* __KVM_S390_FLIC_H */