[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 02/11] mac_via: use IFR bit flag constants for VIA1 IRQs
|
From: |
Mark Cave-Ayland |
|
Subject: |
[PATCH 02/11] mac_via: use IFR bit flag constants for VIA1 IRQs |
|
Date: |
Thu, 27 Jan 2022 20:53:56 +0000 |
This allows us to easily see how the physical control lines are mapped to the
IFR bit flags.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
---
include/hw/misc/mac_via.h | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/hw/misc/mac_via.h b/include/hw/misc/mac_via.h
index b445565866..b0c3825c9b 100644
--- a/include/hw/misc/mac_via.h
+++ b/include/hw/misc/mac_via.h
@@ -18,11 +18,11 @@
#define VIA_SIZE 0x2000
/* VIA 1 */
-#define VIA1_IRQ_ONE_SECOND_BIT 0
-#define VIA1_IRQ_60HZ_BIT 1
-#define VIA1_IRQ_ADB_READY_BIT 2
-#define VIA1_IRQ_ADB_DATA_BIT 3
-#define VIA1_IRQ_ADB_CLOCK_BIT 4
+#define VIA1_IRQ_ONE_SECOND_BIT CA2_INT_BIT
+#define VIA1_IRQ_60HZ_BIT CA1_INT_BIT
+#define VIA1_IRQ_ADB_READY_BIT SR_INT_BIT
+#define VIA1_IRQ_ADB_DATA_BIT CB2_INT_BIT
+#define VIA1_IRQ_ADB_CLOCK_BIT CB1_INT_BIT
#define VIA1_IRQ_NB 8
--
2.20.1
- [PATCH 00/11] mos6522: switch to gpios, add control line edge-triggering and extra debugging, Mark Cave-Ayland, 2022/01/27
- [PATCH 01/11] mos6522: add defines for IFR bit flags, Mark Cave-Ayland, 2022/01/27
- [PATCH 02/11] mac_via: use IFR bit flag constants for VIA1 IRQs,
Mark Cave-Ayland <=
- [PATCH 03/11] mac_via: use IFR bit flag constants for VIA2 IRQs, Mark Cave-Ayland, 2022/01/27
- [PATCH 04/11] mos6522: switch over to use qdev gpios for IRQs, Mark Cave-Ayland, 2022/01/27
- [PATCH 05/11] mos6522: remove update_irq() and set_sr_int() methods from MOS6522DeviceClass, Mark Cave-Ayland, 2022/01/27
- [PATCH 06/11] mos6522: use device_class_set_parent_reset() to propagate reset to parent, Mark Cave-Ayland, 2022/01/27
- [PATCH 07/11] mos6522: add register names to register read/write trace events, Mark Cave-Ayland, 2022/01/27
- [PATCH 09/11] mos6522: record last_irq_levels in mos6522_set_irq(), Mark Cave-Ayland, 2022/01/27
- [PATCH 08/11] mos6522: add "info via" HMP command for debugging, Mark Cave-Ayland, 2022/01/27
- [PATCH 10/11] mos6522: implement edge-triggering for CA1/2 and CB1/2 control line IRQs, Mark Cave-Ayland, 2022/01/27
- [PATCH 11/11] macio/pmu.c: remove redundant code, Mark Cave-Ayland, 2022/01/27