2019-01-10 11:18:47 +03: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 23:43:22 +03:00
|
|
|
#include "qom/object.h"
|
2019-01-10 11:18:47 +03:00
|
|
|
|
2019-09-24 08:51:55 +03:00
|
|
|
#define TYPE_ICS_SPAPR "ics-spapr"
|
2020-09-01 00:07:36 +03:00
|
|
|
/* This is reusing the ICSState typedef from TYPE_ICS */
|
|
|
|
DECLARE_INSTANCE_CHECKER(ICSState, ICS_SPAPR,
|
|
|
|
TYPE_ICS_SPAPR)
|
2019-09-24 08:51:55 +03:00
|
|
|
|
2019-11-26 19:46:23 +03:00
|
|
|
int xics_kvm_connect(SpaprInterruptController *intc, uint32_t nr_servers,
|
|
|
|
Error **errp);
|
2019-09-26 16:23:51 +03:00
|
|
|
void xics_kvm_disconnect(SpaprInterruptController *intc);
|
2020-11-20 20:46:43 +03:00
|
|
|
bool xics_kvm_has_broken_disconnect(void);
|
2019-01-10 11:18:47 +03:00
|
|
|
|
|
|
|
#endif /* XICS_SPAPR_H */
|