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 <mark.cave-ayland@ilande.co.uk> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20210830102447.10806-12-mark.cave-ayland@ilande.co.uk> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
323f984908
commit
812f06995b
@ -26,11 +26,11 @@
|
|||||||
|
|
||||||
#define VIA1_IRQ_NB 8
|
#define VIA1_IRQ_NB 8
|
||||||
|
|
||||||
#define VIA1_IRQ_ONE_SECOND (1 << VIA1_IRQ_ONE_SECOND_BIT)
|
#define VIA1_IRQ_ONE_SECOND (1 << VIA1_IRQ_ONE_SECOND_BIT)
|
||||||
#define VIA1_IRQ_60HZ (1 << VIA1_IRQ_60HZ_BIT)
|
#define VIA1_IRQ_60HZ (1 << VIA1_IRQ_60HZ_BIT)
|
||||||
#define VIA1_IRQ_ADB_READY (1 << VIA1_IRQ_ADB_READY_BIT)
|
#define VIA1_IRQ_ADB_READY (1 << VIA1_IRQ_ADB_READY_BIT)
|
||||||
#define VIA1_IRQ_ADB_DATA (1 << VIA1_IRQ_ADB_DATA_BIT)
|
#define VIA1_IRQ_ADB_DATA (1 << VIA1_IRQ_ADB_DATA_BIT)
|
||||||
#define VIA1_IRQ_ADB_CLOCK (1 << VIA1_IRQ_ADB_CLOCK_BIT)
|
#define VIA1_IRQ_ADB_CLOCK (1 << VIA1_IRQ_ADB_CLOCK_BIT)
|
||||||
|
|
||||||
|
|
||||||
#define TYPE_MOS6522_Q800_VIA1 "mos6522-q800-via1"
|
#define TYPE_MOS6522_Q800_VIA1 "mos6522-q800-via1"
|
||||||
@ -80,18 +80,18 @@ struct MOS6522Q800VIA1State {
|
|||||||
|
|
||||||
/* VIA 2 */
|
/* VIA 2 */
|
||||||
#define VIA2_IRQ_SCSI_DATA_BIT 0
|
#define VIA2_IRQ_SCSI_DATA_BIT 0
|
||||||
#define VIA2_IRQ_SLOT_BIT 1
|
#define VIA2_IRQ_NUBUS_BIT 1
|
||||||
#define VIA2_IRQ_UNUSED_BIT 2
|
#define VIA2_IRQ_UNUSED_BIT 2
|
||||||
#define VIA2_IRQ_SCSI_BIT 3
|
#define VIA2_IRQ_SCSI_BIT 3
|
||||||
#define VIA2_IRQ_ASC_BIT 4
|
#define VIA2_IRQ_ASC_BIT 4
|
||||||
|
|
||||||
#define VIA2_IRQ_NB 8
|
#define VIA2_IRQ_NB 8
|
||||||
|
|
||||||
#define VIA2_IRQ_SCSI_DATA (1 << VIA2_IRQ_SCSI_DATA_BIT)
|
#define VIA2_IRQ_SCSI_DATA (1 << VIA2_IRQ_SCSI_DATA_BIT)
|
||||||
#define VIA2_IRQ_SLOT (1 << VIA2_IRQ_SLOT_BIT)
|
#define VIA2_IRQ_NUBUS (1 << VIA2_IRQ_NUBUS_BIT)
|
||||||
#define VIA2_IRQ_UNUSED (1 << VIA2_IRQ_SCSI_BIT)
|
#define VIA2_IRQ_UNUSED (1 << VIA2_IRQ_SCSI_BIT)
|
||||||
#define VIA2_IRQ_SCSI (1 << VIA2_IRQ_UNUSED_BIT)
|
#define VIA2_IRQ_SCSI (1 << VIA2_IRQ_UNUSED_BIT)
|
||||||
#define VIA2_IRQ_ASC (1 << VIA2_IRQ_ASC_BIT)
|
#define VIA2_IRQ_ASC (1 << VIA2_IRQ_ASC_BIT)
|
||||||
|
|
||||||
#define TYPE_MOS6522_Q800_VIA2 "mos6522-q800-via2"
|
#define TYPE_MOS6522_Q800_VIA2 "mos6522-q800-via2"
|
||||||
OBJECT_DECLARE_SIMPLE_TYPE(MOS6522Q800VIA2State, MOS6522_Q800_VIA2)
|
OBJECT_DECLARE_SIMPLE_TYPE(MOS6522Q800VIA2State, MOS6522_Q800_VIA2)
|
||||||
|
Loading…
Reference in New Issue
Block a user