xref: /aosp_15_r20/external/coreboot/src/soc/amd/common/block/include/amdblocks/pci_devs.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef AMD_BLOCK_PCI_DEVS_H
4 #define AMD_BLOCK_PCI_DEVS_H
5 
6 #include <device/pci_def.h>
7 
8 #if !defined(__SIMPLE_DEVICE__)
9 #include <device/device.h>
10 #define _SOC_DEV(slot, func)	pcidev_on_root(slot, func)
11 #else
12 #define _SOC_DEV(slot, func)	PCI_DEV(0, slot, func)
13 #endif
14 
15 #endif /* AMD_BLOCK_PCI_DEVS_H */
16