2019-01-10 09:18:47 +01:00
|
|
|
/*
|
|
|
|
* QEMU PowerPC pSeries Logical Partition (aka sPAPR) hardware System Emulator
|
|
|
|
*
|
|
|
|
* PAPR Virtualized Interrupt System, aka ICS/ICP aka xics
|
|
|
|
*
|
|
|
|
* Copyright (c) 2010, 2011 David Gibson, IBM Corporation.
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
|
|
* in the Software without restriction, including without limitation the rights
|
|
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
|
|
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
* THE SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef XICS_SPAPR_H
|
|
|
|
#define XICS_SPAPR_H
|
|
|
|
|
|
|
|
#include "hw/ppc/spapr.h"
|
2020-09-03 22:43:22 +02:00
|
|
|
#include "qom/object.h"
|
2019-01-10 09:18:47 +01:00
|
|
|
|
2019-09-24 07:51:55 +02:00
|
|
|
#define TYPE_ICS_SPAPR "ics-spapr"
|
2020-08-31 23:07:36 +02:00
|
|
|
/* This is reusing the ICSState typedef from TYPE_ICS */
|
|
|
|
DECLARE_INSTANCE_CHECKER(ICSState, ICS_SPAPR,
|
|
|
|
TYPE_ICS_SPAPR)
|
2019-09-24 07:51:55 +02:00
|
|
|
|
2019-11-26 17:46:23 +01:00
|
|
|
int xics_kvm_connect(SpaprInterruptController *intc, uint32_t nr_servers,
|
|
|
|
Error **errp);
|
2019-09-26 15:23:51 +02:00
|
|
|
void xics_kvm_disconnect(SpaprInterruptController *intc);
|
2020-11-20 18:46:43 +01:00
|
|
|
bool xics_kvm_has_broken_disconnect(void);
|
2019-01-10 09:18:47 +01:00
|
|
|
|
|
|
|
#endif /* XICS_SPAPR_H */
|