aboutsummaryrefslogtreecommitdiff
path: root/include/hw
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2023-11-16 10:33:52 +0000
committerKevin Wolf <kwolf@redhat.com>2023-11-21 12:45:21 +0100
commit75524884443f388840ddc96c4a8dcb9072e092f1 (patch)
tree59a4276a24901986d13fa1051b5a13dbdd32707c /include/hw
parent8f371203837da7b35aa341b48a9027c2e91d0a9a (diff)
downloadqemu-75524884443f388840ddc96c4a8dcb9072e092f1.zip
qemu-75524884443f388840ddc96c4a8dcb9072e092f1.tar.gz
qemu-75524884443f388840ddc96c4a8dcb9072e092f1.tar.bz2
ide/ioport: move ide_portio_list[] and ide_portio_list2[] definitions to IDE core
These definitions are present in ioport.c which is currently only available when CONFIG_IDE_ISA is enabled. Move them to the IDE core so that they can be made available to PCI IDE controllers that support switching to legacy mode. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Message-ID: <20231116103355.588580-2-mark.cave-ayland@ilande.co.uk> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/ide/internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/ide/internal.h b/include/hw/ide/internal.h
index 2bfa753..3bdcc75 100644
--- a/include/hw/ide/internal.h
+++ b/include/hw/ide/internal.h
@@ -354,6 +354,9 @@ enum ide_dma_cmd {
extern const char *IDE_DMA_CMD_lookup[IDE_DMA__COUNT];
+extern const MemoryRegionPortio ide_portio_list[];
+extern const MemoryRegionPortio ide_portio2_list[];
+
#define ide_cmd_is_read(s) \
((s)->dma_cmd == IDE_DMA_READ)