From e641e81de777ad1a0ede948a365a5ce214700ea5 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 7 Sep 2021 18:40:21 +0200 Subject: [PATCH] Add possibility to change the RTC interrupt line The 82C606 SuperIO allows reconfiguring the interrupt line used for the RTC alarm at runtime. --- src/include/86box/nvr.h | 1 + src/nvr_at.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/src/include/86box/nvr.h b/src/include/86box/nvr.h index ceb1bc459..f1776bf79 100644 --- a/src/include/86box/nvr.h +++ b/src/include/86box/nvr.h @@ -121,6 +121,7 @@ extern void nvr_wp_set(int set, int h, nvr_t *nvr); extern void nvr_via_wp_set(int set, int reg, nvr_t *nvr); extern void nvr_bank_set(int base, uint8_t bank, nvr_t *nvr); extern void nvr_lock_set(int base, int size, int lock, nvr_t *nvr); +extern void nvr_irq_set(int irq, nvr_t *nvr); #endif /*EMU_NVR_H*/ diff --git a/src/nvr_at.c b/src/nvr_at.c index ff1c6fcb0..171a131cc 100644 --- a/src/nvr_at.c +++ b/src/nvr_at.c @@ -922,6 +922,13 @@ nvr_lock_set(int base, int size, int lock, nvr_t *nvr) } +void +nvr_irq_set(int irq, nvr_t *nvr) +{ + nvr->irq = irq; +} + + static void nvr_at_reset(void *priv) {