From 5c3dc3220a3cad6ad1dc80f77a92426b40054851 Mon Sep 17 00:00:00 2001 From: Lephe Date: Sun, 14 Apr 2024 18:21:14 +0200 Subject: [PATCH] intc: add definition for SCIF interrupt --- include/gint/intc.h | 2 ++ src/intc/intc.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/gint/intc.h b/include/gint/intc.h index ee4a9e3..7af58aa 100644 --- a/include/gint/intc.h +++ b/include/gint/intc.h @@ -41,6 +41,8 @@ enum { INTC_DMA_DEI4, INTC_DMA_DEI5, INTC_DMA_DADERR, + /* Serial Communication Interface with FIFO (SCIF0) */ + INTC_SCIF0, /* Real-Time Clock [RTC]; a single IPR covers all 3 interrupts */ INTC_RTC_ATI, INTC_RTC_PRI, diff --git a/src/intc/intc.c b/src/intc/intc.c index 10c471a..688d194 100644 --- a/src/intc/intc.c +++ b/src/intc/intc.c @@ -60,6 +60,8 @@ static struct info { { IPRF, 0x0f00, IMR5, 0x10, _ }, { IPRF, 0x0f00, IMR5, 0x20, _ }, { IPRF, 0x0f00, IMR5, 0x40, _ }, + /* SCIF */ + { IPRG, 0xf000, IMR5, 0x01, _ /* Driver not SH3-compatible yet */ }, /* RTC */ { IPRK, 0xf000, IMR10, 0x04, IPRA, 0x000f }, { IPRK, 0xf000, IMR10, 0x02, IPRA, 0x000f },