2 * RX Interrupt Control Unit
4 * Copyright (c) 2019 Yoshinori Sato
6 * SPDX-License-Identifier: GPL-2.0-or-later
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms and conditions of the GNU General Public License,
10 * version 2 or later, as published by the Free Software Foundation.
12 * This program is distributed in the hope it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
17 * You should have received a copy of the GNU General Public License along with
18 * this program. If not, see <http://www.gnu.org/licenses/>.
21 #ifndef HW_INTC_RX_ICU_H
22 #define HW_INTC_RX_ICU_H
24 #include "hw/sysbus.h"
25 #include "qom/object.h"
29 TRG_NEDGE
= 1, /* Falling */
30 TRG_PEDGE
= 2, /* Raising */
31 TRG_BEDGE
= 3, /* Both */
40 /* Software interrupt request */
47 SysBusDevice parent_obj
;
51 struct IRQSource src
[NR_IRQS
];
58 uint8_t dtcer
[NR_IRQS
];
59 uint8_t ier
[NR_IRQS
/ 8];
73 #define TYPE_RX_ICU "rx-icu"
74 OBJECT_DECLARE_SIMPLE_TYPE(RXICUState
, RX_ICU
)
76 #endif /* HW_INTC_RX_ICU_H */