xref: /openbmc/qemu/include/hw/intc/grlib_irqmp.h (revision 0fa5cd4a)
1f432962eSClément Chigot /*
2f432962eSClément Chigot  * QEMU GRLIB Components
3f432962eSClément Chigot  *
4f432962eSClément Chigot  * SPDX-License-Identifier: MIT
5f432962eSClément Chigot  *
6f432962eSClément Chigot  * Copyright (c) 2010-2024 AdaCore
7f432962eSClément Chigot  *
8f432962eSClément Chigot  * Permission is hereby granted, free of charge, to any person obtaining a copy
9f432962eSClément Chigot  * of this software and associated documentation files (the "Software"), to deal
10f432962eSClément Chigot  * in the Software without restriction, including without limitation the rights
11f432962eSClément Chigot  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12f432962eSClément Chigot  * copies of the Software, and to permit persons to whom the Software is
13f432962eSClément Chigot  * furnished to do so, subject to the following conditions:
14f432962eSClément Chigot  *
15f432962eSClément Chigot  * The above copyright notice and this permission notice shall be included in
16f432962eSClément Chigot  * all copies or substantial portions of the Software.
17f432962eSClément Chigot  *
18f432962eSClément Chigot  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19f432962eSClément Chigot  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20f432962eSClément Chigot  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
21f432962eSClément Chigot  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22f432962eSClément Chigot  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23f432962eSClément Chigot  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24f432962eSClément Chigot  * THE SOFTWARE.
25f432962eSClément Chigot  */
26f432962eSClément Chigot 
27f432962eSClément Chigot #ifndef GRLIB_IRQMP_H
28f432962eSClément Chigot #define GRLIB_IRQMP_H
29f432962eSClément Chigot 
30f432962eSClément Chigot #include "hw/sysbus.h"
31f432962eSClément Chigot 
32f432962eSClément Chigot /* Emulation of GrLib device is base on the GRLIB IP Core User's Manual:
33f432962eSClément Chigot  * http://www.gaisler.com/products/grlib/grip.pdf
34f432962eSClément Chigot  */
35f432962eSClément Chigot 
36f432962eSClément Chigot /* IRQMP */
37f432962eSClément Chigot #define TYPE_GRLIB_IRQMP "grlib-irqmp"
38f432962eSClément Chigot 
39*0fa5cd4aSClément Chigot void grlib_irqmp_ack(DeviceState *dev, unsigned int cpu, int intno);
40f432962eSClément Chigot 
41f432962eSClément Chigot #endif /* GRLIB_IRQMP_H */
42