qemu-e2k/hw/ide
Mark Cave-Ayland debb491166 hw/ide/via: implement legacy/native mode switching
Allow the VIA IDE controller to switch between both legacy and native modes by
calling pci_ide_update_mode() to reconfigure the device whenever PCI_CLASS_PROG
is updated.

This patch moves the initial setting of PCI_CLASS_PROG from via_ide_realize() to
via_ide_reset(), and removes the direct setting of PCI_INTERRUPT_PIN during PCI
bus reset since this is now managed by pci_ide_update_mode(). This ensures that
the device configuration is always consistent with respect to the currently
selected mode.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-ID: <20231116103355.588580-5-mark.cave-ayland@ilande.co.uk>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2023-11-21 12:45:21 +01:00
..
ahci_internal.h hw/ide: spelling fixes 2023-08-31 19:47:43 +02:00
ahci-allwinner.c
ahci.c hw/ide/ahci: fix legacy software reset 2023-11-21 12:45:21 +01:00
atapi.c
cmd646.c hw/ide: spelling fixes 2023-08-31 19:47:43 +02:00
core.c ide/ioport: move ide_portio_list[] and ide_portio_list2[] definitions to IDE core 2023-11-21 12:45:21 +01:00
ich.c
ioport.c ide/ioport: move ide_portio_list[] and ide_portio_list2[] definitions to IDE core 2023-11-21 12:45:21 +01:00
isa.c migration: Use vmstate_register_any() for isa-ide 2023-11-01 16:13:58 +01:00
Kconfig
macio.c
meson.build
microdrive.c
mmio.c
pci.c ide/pci: introduce pci_ide_update_mode() function 2023-11-21 12:45:21 +01:00
piix.c hw/ide/piix: properly initialize the BMIBA register 2023-07-14 11:10:57 +02:00
qdev.c
sii3112.c
trace-events
trace.h
via.c hw/ide/via: implement legacy/native mode switching 2023-11-21 12:45:21 +01:00