1 /* 2 * QEMU S390x KVM floating interrupt controller (flic) 3 * 4 * Copyright 2014 IBM Corp. 5 * Author(s): Jens Freimann <jfrei@linux.vnet.ibm.com> 6 * 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. 10 */ 11 12 #ifndef __KVM_S390_FLIC_H 13 #define __KVM_S390_FLIC_H 14 15 #include "hw/sysbus.h" 16 17 #define TYPE_KVM_S390_FLIC "s390-flic" 18 #define KVM_S390_FLIC(obj) \ 19 OBJECT_CHECK(KVMS390FLICState, (obj), TYPE_KVM_S390_FLIC) 20 21 typedef struct KVMS390FLICState { 22 SysBusDevice parent_obj; 23 24 uint32_t fd; 25 } KVMS390FLICState; 26 27 #ifdef CONFIG_KVM 28 void s390_flic_init(void); 29 #else 30 static inline void s390_flic_init(void) { } 31 #endif 32 33 #endif /* __KVM_S390_FLIC_H */ 34