xref: /qemu/include/hw/ppc/xics_spapr.h (revision 37f04b71a9cd62ca0f2d24a70fe843619ad45cd0)
1a51d5afcSThomas Huth /*
2a51d5afcSThomas Huth  * QEMU PowerPC pSeries Logical Partition (aka sPAPR) hardware System Emulator
3a51d5afcSThomas Huth  *
4a51d5afcSThomas Huth  * PAPR Virtualized Interrupt System, aka ICS/ICP aka xics
5a51d5afcSThomas Huth  *
6a51d5afcSThomas Huth  * Copyright (c) 2010, 2011 David Gibson, IBM Corporation.
7a51d5afcSThomas Huth  *
8a51d5afcSThomas Huth  * Permission is hereby granted, free of charge, to any person obtaining a copy
9a51d5afcSThomas Huth  * of this software and associated documentation files (the "Software"), to deal
10a51d5afcSThomas Huth  * in the Software without restriction, including without limitation the rights
11a51d5afcSThomas Huth  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12a51d5afcSThomas Huth  * copies of the Software, and to permit persons to whom the Software is
13a51d5afcSThomas Huth  * furnished to do so, subject to the following conditions:
14a51d5afcSThomas Huth  *
15a51d5afcSThomas Huth  * The above copyright notice and this permission notice shall be included in
16a51d5afcSThomas Huth  * all copies or substantial portions of the Software.
17a51d5afcSThomas Huth  *
18a51d5afcSThomas Huth  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19a51d5afcSThomas Huth  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20a51d5afcSThomas Huth  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
21a51d5afcSThomas Huth  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22a51d5afcSThomas Huth  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23a51d5afcSThomas Huth  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24a51d5afcSThomas Huth  * THE SOFTWARE.
25a51d5afcSThomas Huth  */
26a51d5afcSThomas Huth 
27a51d5afcSThomas Huth #ifndef XICS_SPAPR_H
28a51d5afcSThomas Huth #define XICS_SPAPR_H
29a51d5afcSThomas Huth 
30a51d5afcSThomas Huth #include "hw/ppc/spapr.h"
31db1015e9SEduardo Habkost #include "qom/object.h"
32a51d5afcSThomas Huth 
339db8c551SDavid Gibson #define TYPE_ICS_SPAPR "ics-spapr"
34fa34a3c5SEduardo Habkost /* This is reusing the ICSState typedef from TYPE_ICS */
35fa34a3c5SEduardo Habkost DECLARE_INSTANCE_CHECKER(ICSState, ICS_SPAPR,
36fa34a3c5SEduardo Habkost                          TYPE_ICS_SPAPR)
379db8c551SDavid Gibson 
384ffb7496SGreg Kurz int xics_kvm_connect(SpaprInterruptController *intc, uint32_t nr_servers,
394ffb7496SGreg Kurz                      Error **errp);
4098a39a79SDavid Gibson void xics_kvm_disconnect(SpaprInterruptController *intc);
41*0b66209dSGreg Kurz bool xics_kvm_has_broken_disconnect(void);
42a51d5afcSThomas Huth 
43a51d5afcSThomas Huth #endif /* XICS_SPAPR_H */
44