mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-02-15 17:09:31 -07:00
mac_via: move PRAM contents and block backend to MOS6522Q800VIA1State
The PRAM contents are accessed using clock and data pins on q800 VIA1 port B and so can be moved to MOS6522Q800VIA1State. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20210830102447.10806-4-mark.cave-ayland@ilande.co.uk> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
ae6f236f4f
commit
8064d7bb54
2 changed files with 34 additions and 32 deletions
|
|
@ -40,7 +40,11 @@ struct MOS6522Q800VIA1State {
|
|||
|
||||
qemu_irq irqs[VIA1_IRQ_NB];
|
||||
uint8_t last_b;
|
||||
|
||||
/* RTC */
|
||||
uint8_t PRAM[256];
|
||||
BlockBackend *blk;
|
||||
VMChangeStateEntry *vmstate;
|
||||
|
||||
/* external timers */
|
||||
QEMUTimer *one_second_timer;
|
||||
|
|
@ -80,8 +84,6 @@ OBJECT_DECLARE_SIMPLE_TYPE(MacVIAState, MAC_VIA)
|
|||
struct MacVIAState {
|
||||
SysBusDevice busdev;
|
||||
|
||||
VMChangeStateEntry *vmstate;
|
||||
|
||||
/* MMIO */
|
||||
MemoryRegion mmio;
|
||||
MemoryRegion via1mem;
|
||||
|
|
@ -101,7 +103,6 @@ struct MacVIAState {
|
|||
uint8_t cmd;
|
||||
int wprotect;
|
||||
int alt;
|
||||
BlockBackend *blk;
|
||||
|
||||
/* ADB */
|
||||
ADBBusState adb_bus;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue