root / hw / xics.h @ d2d979c6
History | View | Annotate | Download (1.5 kB)
1 | b5cec4c5 | David Gibson | /*
|
---|---|---|---|
2 | b5cec4c5 | David Gibson | * QEMU PowerPC pSeries Logical Partition (aka sPAPR) hardware System Emulator
|
3 | b5cec4c5 | David Gibson | *
|
4 | b5cec4c5 | David Gibson | * PAPR Virtualized Interrupt System, aka ICS/ICP aka xics
|
5 | b5cec4c5 | David Gibson | *
|
6 | b5cec4c5 | David Gibson | * Copyright (c) 2010,2011 David Gibson, IBM Corporation.
|
7 | b5cec4c5 | David Gibson | *
|
8 | b5cec4c5 | David Gibson | * Permission is hereby granted, free of charge, to any person obtaining a copy
|
9 | b5cec4c5 | David Gibson | * of this software and associated documentation files (the "Software"), to deal
|
10 | b5cec4c5 | David Gibson | * in the Software without restriction, including without limitation the rights
|
11 | b5cec4c5 | David Gibson | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
12 | b5cec4c5 | David Gibson | * copies of the Software, and to permit persons to whom the Software is
|
13 | b5cec4c5 | David Gibson | * furnished to do so, subject to the following conditions:
|
14 | b5cec4c5 | David Gibson | *
|
15 | b5cec4c5 | David Gibson | * The above copyright notice and this permission notice shall be included in
|
16 | b5cec4c5 | David Gibson | * all copies or substantial portions of the Software.
|
17 | b5cec4c5 | David Gibson | *
|
18 | b5cec4c5 | David Gibson | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
19 | b5cec4c5 | David Gibson | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
20 | b5cec4c5 | David Gibson | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
21 | b5cec4c5 | David Gibson | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
22 | b5cec4c5 | David Gibson | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
23 | b5cec4c5 | David Gibson | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
24 | b5cec4c5 | David Gibson | * THE SOFTWARE.
|
25 | b5cec4c5 | David Gibson | *
|
26 | b5cec4c5 | David Gibson | */
|
27 | b5cec4c5 | David Gibson | #if !defined(__XICS_H__)
|
28 | b5cec4c5 | David Gibson | #define __XICS_H__
|
29 | b5cec4c5 | David Gibson | |
30 | b5cec4c5 | David Gibson | #define XICS_IPI 0x2 |
31 | b5cec4c5 | David Gibson | |
32 | b5cec4c5 | David Gibson | struct icp_state;
|
33 | b5cec4c5 | David Gibson | |
34 | b5cec4c5 | David Gibson | qemu_irq xics_find_qirq(struct icp_state *icp, int irq); |
35 | b5cec4c5 | David Gibson | |
36 | c7a5c0c9 | David Gibson | struct icp_state *xics_system_init(int nr_irqs); |
37 | b5cec4c5 | David Gibson | |
38 | b5cec4c5 | David Gibson | #endif /* __XICS_H__ */ |