10f3a4a01SFabien Chouteau /* 20f3a4a01SFabien Chouteau * QEMU GRLIB Components 30f3a4a01SFabien Chouteau * 4f432962eSClément Chigot * SPDX-License-Identifier: MIT 5f432962eSClément Chigot * 6f432962eSClément Chigot * Copyright (c) 2010-2024 AdaCore 70f3a4a01SFabien Chouteau * 80f3a4a01SFabien Chouteau * Permission is hereby granted, free of charge, to any person obtaining a copy 90f3a4a01SFabien Chouteau * of this software and associated documentation files (the "Software"), to deal 100f3a4a01SFabien Chouteau * in the Software without restriction, including without limitation the rights 110f3a4a01SFabien Chouteau * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 120f3a4a01SFabien Chouteau * copies of the Software, and to permit persons to whom the Software is 130f3a4a01SFabien Chouteau * furnished to do so, subject to the following conditions: 140f3a4a01SFabien Chouteau * 150f3a4a01SFabien Chouteau * The above copyright notice and this permission notice shall be included in 160f3a4a01SFabien Chouteau * all copies or substantial portions of the Software. 170f3a4a01SFabien Chouteau * 180f3a4a01SFabien Chouteau * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 190f3a4a01SFabien Chouteau * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 200f3a4a01SFabien Chouteau * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 210f3a4a01SFabien Chouteau * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 220f3a4a01SFabien Chouteau * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 230f3a4a01SFabien Chouteau * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 240f3a4a01SFabien Chouteau * THE SOFTWARE. 250f3a4a01SFabien Chouteau */ 260f3a4a01SFabien Chouteau 27f432962eSClément Chigot #ifndef GRLIB_IRQMP_H 28f432962eSClément Chigot #define GRLIB_IRQMP_H 290f3a4a01SFabien Chouteau 3083c9f4caSPaolo Bonzini #include "hw/sysbus.h" 310f3a4a01SFabien Chouteau 320f3a4a01SFabien Chouteau /* Emulation of GrLib device is base on the GRLIB IP Core User's Manual: 330f3a4a01SFabien Chouteau * http://www.gaisler.com/products/grlib/grip.pdf 340f3a4a01SFabien Chouteau */ 350f3a4a01SFabien Chouteau 363f10bcbbSFabien Chouteau /* IRQMP */ 37e178113fSMarkus Armbruster #define TYPE_GRLIB_IRQMP "grlib-irqmp" 383f10bcbbSFabien Chouteau 39*0fa5cd4aSClément Chigot void grlib_irqmp_ack(DeviceState *dev, unsigned int cpu, int intno); 403f10bcbbSFabien Chouteau 41f432962eSClément Chigot #endif /* GRLIB_IRQMP_H */ 42