xref: /qemu/hw/pci-host/meson.build (revision 4872fdf71b52288105ae5513f892f39633bec28c)
19235a82dSMarc-André Lureaupci_ss = ss.source_set()
29235a82dSMarc-André Lureaupci_ss.add(when: 'CONFIG_PAM', if_true: files('pam.c'))
39235a82dSMarc-André Lureaupci_ss.add(when: 'CONFIG_PCI_BONITO', if_true: files('bonito.c'))
49235a82dSMarc-André Lureaupci_ss.add(when: 'CONFIG_PCI_EXPRESS_DESIGNWARE', if_true: files('designware.c'))
59235a82dSMarc-André Lureaupci_ss.add(when: 'CONFIG_PCI_EXPRESS_GENERIC_BRIDGE', if_true: files('gpex.c'))
6*4872fdf7SPhilippe Mathieu-Daudépci_ss.add(when: ['CONFIG_PCI_EXPRESS_GENERIC_BRIDGE', 'CONFIG_ACPI'], if_true: files('gpex-acpi.c'))
79235a82dSMarc-André Lureaupci_ss.add(when: 'CONFIG_PCI_EXPRESS_Q35', if_true: files('q35.c'))
89235a82dSMarc-André Lureaupci_ss.add(when: 'CONFIG_PCI_EXPRESS_XILINX', if_true: files('xilinx-pcie.c'))
99235a82dSMarc-André Lureaupci_ss.add(when: 'CONFIG_PCI_I440FX', if_true: files('i440fx.c'))
109235a82dSMarc-André Lureaupci_ss.add(when: 'CONFIG_PCI_SABRE', if_true: files('sabre.c'))
119235a82dSMarc-André Lureaupci_ss.add(when: 'CONFIG_XEN_IGD_PASSTHROUGH', if_true: files('xen_igd_pt.c'))
126fbd84d6SJagannathan Ramanpci_ss.add(when: 'CONFIG_REMOTE_PCIHOST', if_true: files('remote.c'))
13c64bd101SPhilippe Mathieu-Daudépci_ss.add(when: 'CONFIG_SH_PCI', if_true: files('sh_pci.c'))
149235a82dSMarc-André Lureau
159235a82dSMarc-André Lureau# PPC devices
169235a82dSMarc-André Lureaupci_ss.add(when: 'CONFIG_PREP_PCI', if_true: files('prep.c'))
179235a82dSMarc-André Lureaupci_ss.add(when: 'CONFIG_GRACKLE_PCI', if_true: files('grackle.c'))
189235a82dSMarc-André Lureau# NewWorld PowerMac
199235a82dSMarc-André Lureaupci_ss.add(when: 'CONFIG_UNIN_PCI', if_true: files('uninorth.c'))
209235a82dSMarc-André Lureau# PowerPC E500 boards
219235a82dSMarc-André Lureaupci_ss.add(when: 'CONFIG_PPCE500_PCI', if_true: files('ppce500.c'))
22dcdf98a9SBALATON Zoltan# Pegasos2
23dcdf98a9SBALATON Zoltanpci_ss.add(when: 'CONFIG_MV64361', if_true: files('mv64361.c'))
249235a82dSMarc-André Lureau
259235a82dSMarc-André Lureau# ARM devices
269235a82dSMarc-André Lureaupci_ss.add(when: 'CONFIG_VERSATILE_PCI', if_true: files('versatile.c'))
279235a82dSMarc-André Lureau
289235a82dSMarc-André Lureausoftmmu_ss.add_all(when: 'CONFIG_PCI', if_true: pci_ss)
299235a82dSMarc-André Lureau
30995d9556SGreg Kurzspecific_ss.add(when: 'CONFIG_PCI_POWERNV', if_true: files(
319235a82dSMarc-André Lureau  'pnv_phb3.c',
329235a82dSMarc-André Lureau  'pnv_phb3_msi.c',
339235a82dSMarc-André Lureau  'pnv_phb3_pbcq.c',
349235a82dSMarc-André Lureau  'pnv_phb4.c',
359235a82dSMarc-André Lureau  'pnv_phb4_pec.c'
369235a82dSMarc-André Lureau))
37