diff options
author | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2023-10-04 09:37:59 +0100 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2023-10-06 10:33:43 +0200 |
commit | 994af0b2e020a91729a39f8c4af4a522ccd3a556 (patch) | |
tree | f91b7796a1449ed2e0a796a860026b4098cbd955 /include | |
parent | 57004204172b59de40bb8617a9082d882c60a2fd (diff) | |
download | qemu-994af0b2e020a91729a39f8c4af4a522ccd3a556.zip qemu-994af0b2e020a91729a39f8c4af4a522ccd3a556.tar.gz qemu-994af0b2e020a91729a39f8c4af4a522ccd3a556.tar.bz2 |
swim: update IWM/ISM register block decoding
Update the IWM/ISM register block decoding to match the description given in the
"SWIM Chip Users Reference". This allows us to validate the device response to
the guest OS which currently only does just enough to indicate that the floppy
drive is unavailable.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-ID: <20231004083806.757242-14-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/block/swim.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/hw/block/swim.h b/include/hw/block/swim.h index 1bc7635..5f567e8 100644 --- a/include/hw/block/swim.h +++ b/include/hw/block/swim.h @@ -50,13 +50,15 @@ struct SWIMCtrl { int mode; /* IWM mode */ int iwm_switch; - uint8_t iwmregs[16]; - uint8_t iwm_data; - uint8_t iwm_mode; + uint8_t iwm_latches; + uint8_t iwmregs[8]; /* SWIM mode */ uint8_t ismregs[16]; uint8_t swim_phase; uint8_t swim_mode; + uint8_t swim_status; + uint8_t pram[16]; + uint8_t pram_idx; SWIMBus bus; }; |