Skip to content

Commit 812f069

Browse files
mcaylandvivier
authored andcommitted
mac_via: rename VIA2_IRQ_SLOT_BIT to VIA2_IRQ_NUBUS_BIT
Also improve the alignment of the shifted constants. Signed-off-by: Mark Cave-Ayland <[email protected]> Reviewed-by: Laurent Vivier <[email protected]> Message-Id: <[email protected]> Signed-off-by: Laurent Vivier <[email protected]>
1 parent 323f984 commit 812f069

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

include/hw/misc/mac_via.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626

2727
#define VIA1_IRQ_NB 8
2828

29-
#define VIA1_IRQ_ONE_SECOND (1 << VIA1_IRQ_ONE_SECOND_BIT)
30-
#define VIA1_IRQ_60HZ (1 << VIA1_IRQ_60HZ_BIT)
31-
#define VIA1_IRQ_ADB_READY (1 << VIA1_IRQ_ADB_READY_BIT)
32-
#define VIA1_IRQ_ADB_DATA (1 << VIA1_IRQ_ADB_DATA_BIT)
33-
#define VIA1_IRQ_ADB_CLOCK (1 << VIA1_IRQ_ADB_CLOCK_BIT)
29+
#define VIA1_IRQ_ONE_SECOND (1 << VIA1_IRQ_ONE_SECOND_BIT)
30+
#define VIA1_IRQ_60HZ (1 << VIA1_IRQ_60HZ_BIT)
31+
#define VIA1_IRQ_ADB_READY (1 << VIA1_IRQ_ADB_READY_BIT)
32+
#define VIA1_IRQ_ADB_DATA (1 << VIA1_IRQ_ADB_DATA_BIT)
33+
#define VIA1_IRQ_ADB_CLOCK (1 << VIA1_IRQ_ADB_CLOCK_BIT)
3434

3535

3636
#define TYPE_MOS6522_Q800_VIA1 "mos6522-q800-via1"
@@ -80,18 +80,18 @@ struct MOS6522Q800VIA1State {
8080

8181
/* VIA 2 */
8282
#define VIA2_IRQ_SCSI_DATA_BIT 0
83-
#define VIA2_IRQ_SLOT_BIT 1
83+
#define VIA2_IRQ_NUBUS_BIT 1
8484
#define VIA2_IRQ_UNUSED_BIT 2
8585
#define VIA2_IRQ_SCSI_BIT 3
8686
#define VIA2_IRQ_ASC_BIT 4
8787

8888
#define VIA2_IRQ_NB 8
8989

90-
#define VIA2_IRQ_SCSI_DATA (1 << VIA2_IRQ_SCSI_DATA_BIT)
91-
#define VIA2_IRQ_SLOT (1 << VIA2_IRQ_SLOT_BIT)
92-
#define VIA2_IRQ_UNUSED (1 << VIA2_IRQ_SCSI_BIT)
93-
#define VIA2_IRQ_SCSI (1 << VIA2_IRQ_UNUSED_BIT)
94-
#define VIA2_IRQ_ASC (1 << VIA2_IRQ_ASC_BIT)
90+
#define VIA2_IRQ_SCSI_DATA (1 << VIA2_IRQ_SCSI_DATA_BIT)
91+
#define VIA2_IRQ_NUBUS (1 << VIA2_IRQ_NUBUS_BIT)
92+
#define VIA2_IRQ_UNUSED (1 << VIA2_IRQ_SCSI_BIT)
93+
#define VIA2_IRQ_SCSI (1 << VIA2_IRQ_UNUSED_BIT)
94+
#define VIA2_IRQ_ASC (1 << VIA2_IRQ_ASC_BIT)
9595

9696
#define TYPE_MOS6522_Q800_VIA2 "mos6522-q800-via2"
9797
OBJECT_DECLARE_SIMPLE_TYPE(MOS6522Q800VIA2State, MOS6522_Q800_VIA2)

0 commit comments

Comments
 (0)