Angel Pons | 4b42983 | 2020-04-02 23:48:50 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Dave Frodin | 2093c4f | 2014-06-13 08:12:48 -0600 | [diff] [blame] | 2 | |
| 3 | #ifndef _AMD_FAM16KB_PCI_DEVS_H_ |
| 4 | #define _AMD_FAM16KB_PCI_DEVS_H_ |
| 5 | |
Kyösti Mälkki | f7ca672 | 2017-09-10 06:30:54 +0300 | [diff] [blame] | 6 | #include <device/pci_def.h> |
| 7 | |
Dave Frodin | 2093c4f | 2014-06-13 08:12:48 -0600 | [diff] [blame] | 8 | #define BUS0 0 |
| 9 | |
| 10 | /* Graphics and Display */ |
| 11 | #define GFX_DEV 0x1 |
| 12 | #define GFX_FUNC 0 |
Elyes Haouas | 693f7c1 | 2022-07-16 09:38:17 +0200 | [diff] [blame^] | 13 | #define GFX_DEVFN PCI_DEVFN(GFX_DEV, GFX_FUNC) |
Dave Frodin | 2093c4f | 2014-06-13 08:12:48 -0600 | [diff] [blame] | 14 | |
Dave Frodin | 3ff4f85 | 2014-12-01 15:20:47 -0700 | [diff] [blame] | 15 | /* Internal Audio Controller */ |
| 16 | #define ACTL_FUNC 1 |
Elyes Haouas | 693f7c1 | 2022-07-16 09:38:17 +0200 | [diff] [blame^] | 17 | #define ACTL_DEVFN PCI_DEVFN(GFX_DEV, ACTL_FUNC) |
Dave Frodin | 3ff4f85 | 2014-12-01 15:20:47 -0700 | [diff] [blame] | 18 | |
Dave Frodin | 2093c4f | 2014-06-13 08:12:48 -0600 | [diff] [blame] | 19 | /* PCIe Ports */ |
Fabian Kunkel | 647456c | 2015-05-25 17:16:02 +0200 | [diff] [blame] | 20 | #define NB_PCIE_PORT1_FUNC 0x1 |
| 21 | #define NB_PCIE_PORT2_FUNC 0x2 |
| 22 | #define NB_PCIE_PORT3_FUNC 0x3 |
| 23 | #define NB_PCIE_PORT4_FUNC 0x4 |
| 24 | #define NB_PCIE_PORT5_FUNC 0x5 |
| 25 | #define NB_PCIE_DEV 2 |
Dave Frodin | 2093c4f | 2014-06-13 08:12:48 -0600 | [diff] [blame] | 26 | #define NB_PCIE_PORT_DEVID 0x1439 |
Elyes Haouas | 693f7c1 | 2022-07-16 09:38:17 +0200 | [diff] [blame^] | 27 | #define NB_PCIE_PORT1_DEVFN PCI_DEVFN(NB_PCIE_DEV, NB_PCIE_PORT1_FUNC) |
| 28 | #define NB_PCIE_PORT2_DEVFN PCI_DEVFN(NB_PCIE_DEV, NB_PCIE_PORT2_FUNC) |
| 29 | #define NB_PCIE_PORT3_DEVFN PCI_DEVFN(NB_PCIE_DEV, NB_PCIE_PORT3_FUNC) |
| 30 | #define NB_PCIE_PORT4_DEVFN PCI_DEVFN(NB_PCIE_DEV, NB_PCIE_PORT4_FUNC) |
| 31 | #define NB_PCIE_PORT5_DEVFN PCI_DEVFN(NB_PCIE_DEV, NB_PCIE_PORT5_FUNC) |
Dave Frodin | 2093c4f | 2014-06-13 08:12:48 -0600 | [diff] [blame] | 32 | |
| 33 | #endif /* _AMD_FAM16KB_PCI_DEVS_H_ */ |