qemu/hw/ide
Thomas Huth 9a585f3ea6 hw/ide/ahci: Add a Kconfig switch for the AHCI-ICH9 device
Some of our machines (like the ARM cubieboard) use CONFIG_AHCI for an AHCI
sysbus device, but do not use CONFIG_PCI since they do not feature a PCI
bus. With CONFIG_AHCI but without CONFIG_PCI, currently linking fails:

    ../hw/ide/ich.o: In function `pci_ich9_ahci_realize':
    hw/ide/ich.c:124: undefined reference to `pci_allocate_irq'
    hw/ide/ich.c:126: undefined reference to `pci_register_bar'
    hw/ide/ich.c:128: undefined reference to `pci_register_bar'
    hw/ide/ich.c:131: undefined reference to `pci_add_capability'
    hw/ide/ich.c:147: undefined reference to `msi_init'
    ../hw/ide/ich.o: In function `pci_ich9_uninit':
    hw/ide/ich.c:158: undefined reference to `msi_uninit'
    ../hw/ide/ich.o:(.data.rel+0x50): undefined reference to `vmstate_pci_device'

We must only compile ich.c if CONFIG_PCI is available, too, so introduce a
new config switch for this device.

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: John Snow <jsnow@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2019-05-13 09:36:31 +02:00
..
ahci_internal.h ahci: fix FIS I bit and PIO Setup FIS interrupt 2018-06-25 16:50:48 -04:00
ahci-allwinner.c ide: use local path for local headers 2018-06-01 19:20:37 +03:00
ahci.c ahci: fix FIS I bit and PIO Setup FIS interrupt 2018-06-25 16:50:48 -04:00
atapi.c hw/ide: drop iov field from IDEDMA 2019-02-22 09:42:13 +00:00
cmd646.c ide: Get rid of CMD646BAR struct 2019-01-25 14:52:11 -05:00
core.c hw/ide: drop iov field from IDEBufferedRequest 2019-02-22 09:42:13 +00:00
ich.c ide: use local path for local headers 2018-06-01 19:20:37 +03:00
ioport.c ide: split ioport registration to a separate file 2019-02-05 16:50:19 +01:00
isa.c hw: Do not include "sysemu/block-backend.h" if it is not necessary 2018-03-12 16:12:46 +01:00
Kconfig hw/ide/ahci: Add a Kconfig switch for the AHCI-ICH9 device 2019-05-13 09:36:31 +02:00
macio.c macio: add addr property to macio IDE object 2018-08-30 10:42:18 +10:00
Makefile.objs hw/ide/ahci: Add a Kconfig switch for the AHCI-ICH9 device 2019-05-13 09:36:31 +02:00
microdrive.c hw: Do not include "sysemu/block-backend.h" if it is not necessary 2018-03-12 16:12:46 +01:00
mmio.c hw: Do not include "sysemu/block-backend.h" if it is not necessary 2018-03-12 16:12:46 +01:00
pci.c cmd646: Move PCI IDE specific functions to ide/pci.c 2019-01-25 14:52:11 -05:00
piix.c trivial: Don't include isa.h if it is not really necessary 2019-01-09 11:24:35 +01:00
qdev.c block: Remove deprecated -drive option serial 2018-08-15 12:50:39 +02:00
sii3112.c sii3112: Remove duplicated code and use PCI IDE ops instead 2019-01-25 14:52:11 -05:00
trace-events trace-events: Fix attribution of trace points to source 2019-03-22 16:18:07 +00:00
via.c ide/via: Implement and use native PCI IDE mode 2019-01-25 14:52:12 -05:00