xref: /openbmc/qemu/include/hw/intc/ioapic.h (revision 526947e496e4447d74b8d42415e2847481c5043d)
1*7f54640bSBernhard Beschow /*
2*7f54640bSBernhard Beschow  *  ioapic.c IOAPIC emulation logic
3*7f54640bSBernhard Beschow  *
4*7f54640bSBernhard Beschow  *  Copyright (c) 2011 Jan Kiszka, Siemens AG
5*7f54640bSBernhard Beschow  *
6*7f54640bSBernhard Beschow  * This library is free software; you can redistribute it and/or
7*7f54640bSBernhard Beschow  * modify it under the terms of the GNU Lesser General Public
8*7f54640bSBernhard Beschow  * License as published by the Free Software Foundation; either
9*7f54640bSBernhard Beschow  * version 2.1 of the License, or (at your option) any later version.
10*7f54640bSBernhard Beschow  *
11*7f54640bSBernhard Beschow  * This library is distributed in the hope that it will be useful,
12*7f54640bSBernhard Beschow  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13*7f54640bSBernhard Beschow  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14*7f54640bSBernhard Beschow  * Lesser General Public License for more details.
15*7f54640bSBernhard Beschow  *
16*7f54640bSBernhard Beschow  * You should have received a copy of the GNU Lesser General Public
17*7f54640bSBernhard Beschow  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
18*7f54640bSBernhard Beschow  */
19*7f54640bSBernhard Beschow 
20*7f54640bSBernhard Beschow #ifndef HW_INTC_IOAPIC_H
21*7f54640bSBernhard Beschow #define HW_INTC_IOAPIC_H
22*7f54640bSBernhard Beschow 
23*7f54640bSBernhard Beschow #define IOAPIC_NUM_PINS 24
24*7f54640bSBernhard Beschow #define IO_APIC_DEFAULT_ADDRESS 0xfec00000
25*7f54640bSBernhard Beschow #define IO_APIC_SECONDARY_ADDRESS (IO_APIC_DEFAULT_ADDRESS + 0x10000)
26*7f54640bSBernhard Beschow #define IO_APIC_SECONDARY_IRQBASE 24 /* primary 0 -> 23, secondary 24 -> 47 */
27*7f54640bSBernhard Beschow 
28*7f54640bSBernhard Beschow #define TYPE_KVM_IOAPIC "kvm-ioapic"
29*7f54640bSBernhard Beschow #define TYPE_IOAPIC "ioapic"
30*7f54640bSBernhard Beschow 
31*7f54640bSBernhard Beschow void ioapic_eoi_broadcast(int vector);
32*7f54640bSBernhard Beschow 
33*7f54640bSBernhard Beschow #endif /* HW_INTC_IOAPIC_H */
34