xref: /openbmc/qemu/hw/pci-host/meson.build (revision be19d836)
1pci_ss = ss.source_set()
2pci_ss.add(when: 'CONFIG_PAM', if_true: files('pam.c'))
3pci_ss.add(when: 'CONFIG_PCI_BONITO', if_true: files('bonito.c'))
4pci_ss.add(when: 'CONFIG_GT64120', if_true: files('gt64120.c'))
5pci_ss.add(when: 'CONFIG_PCI_EXPRESS_DESIGNWARE', if_true: files('designware.c'))
6pci_ss.add(when: 'CONFIG_PCI_EXPRESS_GENERIC_BRIDGE', if_true: files('gpex.c'))
7pci_ss.add(when: ['CONFIG_PCI_EXPRESS_GENERIC_BRIDGE', 'CONFIG_ACPI'], if_true: files('gpex-acpi.c'))
8pci_ss.add(when: 'CONFIG_PCI_EXPRESS_Q35', if_true: files('q35.c'))
9pci_ss.add(when: 'CONFIG_PCI_EXPRESS_XILINX', if_true: files('xilinx-pcie.c'))
10pci_ss.add(when: 'CONFIG_PCI_I440FX', if_true: files('i440fx.c'))
11pci_ss.add(when: 'CONFIG_PCI_SABRE', if_true: files('sabre.c'))
12pci_ss.add(when: 'CONFIG_XEN_IGD_PASSTHROUGH', if_true: files('xen_igd_pt.c'))
13pci_ss.add(when: 'CONFIG_REMOTE_PCIHOST', if_true: files('remote.c'))
14pci_ss.add(when: 'CONFIG_SH_PCI', if_true: files('sh_pci.c'))
15
16# PPC devices
17pci_ss.add(when: 'CONFIG_PPC4XX_PCI', if_true: files('ppc4xx_pci.c'))
18pci_ss.add(when: 'CONFIG_PPC440_PCIX', if_true: files('ppc440_pcix.c'))
19pci_ss.add(when: 'CONFIG_RAVEN_PCI', if_true: files('raven.c'))
20pci_ss.add(when: 'CONFIG_GRACKLE_PCI', if_true: files('grackle.c'))
21# NewWorld PowerMac
22pci_ss.add(when: 'CONFIG_UNIN_PCI', if_true: files('uninorth.c'))
23# PowerPC E500 boards
24pci_ss.add(when: 'CONFIG_PPCE500_PCI', if_true: files('ppce500.c'))
25# AmigaOne
26pci_ss.add(when: 'CONFIG_ARTICIA', if_true: files('articia.c'))
27# Pegasos2
28pci_ss.add(when: 'CONFIG_MV64361', if_true: files('mv64361.c'))
29
30# ARM devices
31pci_ss.add(when: 'CONFIG_VERSATILE_PCI', if_true: files('versatile.c'))
32
33# HPPA devices
34specific_ss.add(when: 'CONFIG_ASTRO', if_true: files('astro.c'))
35pci_ss.add(when: 'CONFIG_DINO', if_true: files('dino.c'))
36
37system_ss.add_all(when: 'CONFIG_PCI', if_true: pci_ss)
38
39specific_ss.add(when: 'CONFIG_PCI_POWERNV', if_true: files(
40  'pnv_phb3.c',
41  'pnv_phb3_msi.c',
42  'pnv_phb3_pbcq.c',
43  'pnv_phb4.c',
44  'pnv_phb4_pec.c',
45  'pnv_phb.c',
46))
47