Angel Pons | 4b42983 | 2020-04-02 23:48:50 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Kyösti Mälkki | a62191b | 2015-05-27 07:58:22 +0300 | [diff] [blame] | 2 | |
| 3 | #ifndef _AMD_00730F01_PCI_DEVS_H_ |
| 4 | #define _AMD_00730F01_PCI_DEVS_H_ |
| 5 | |
Kyösti Mälkki | a62191b | 2015-05-27 07:58:22 +0300 | [diff] [blame] | 6 | /* Graphics and Display */ |
| 7 | #define GFX_DEV 0x1 |
| 8 | #define GFX_FUNC 0 |
| 9 | #define GFX_DEVID 0x9850 |
Elyes Haouas | 693f7c1 | 2022-07-16 09:38:17 +0200 | [diff] [blame] | 10 | #define GFX_DEVFN PCI_DEVFN(GFX_DEV, GFX_FUNC) |
Kyösti Mälkki | a62191b | 2015-05-27 07:58:22 +0300 | [diff] [blame] | 11 | |
| 12 | /* Internal Audio controller */ |
| 13 | #define ACTL_DEV 0x1 |
| 14 | #define ACTL_FUNC 1 |
| 15 | #define ACTL_DEVID 0x9840 |
Elyes Haouas | 693f7c1 | 2022-07-16 09:38:17 +0200 | [diff] [blame] | 16 | #define ACTL_DEVFN PCI_DEVFN(ACTL_DEV, ACTL_FUNC) |
Kyösti Mälkki | a62191b | 2015-05-27 07:58:22 +0300 | [diff] [blame] | 17 | |
| 18 | /* PCIe Ports */ |
| 19 | #define NB_PCIE_PORT2_DEV 0x2 |
| 20 | #define NB_PCIE_FUNC0 0 |
| 21 | #define NB_PCIE_FUNC1 1 |
| 22 | #define NB_PCIE_FUNC2 2 |
| 23 | #define NB_PCIE_FUNC3 3 |
| 24 | #define NB_PCIE_FUNC4 4 |
| 25 | #define NB_PCIE_FUNC5 5 |
| 26 | #define NB_PCIE_PORT_DEVID 0x1439 |
Elyes Haouas | 693f7c1 | 2022-07-16 09:38:17 +0200 | [diff] [blame] | 27 | #define NB_PCIE_PORT0_DEVFN PCI_DEVFN(NB_PCIE_PORT2_DEV, NB_PCIE_FUNC0) |
| 28 | #define NB_PCIE_PORT1_DEVFN PCI_DEVFN(NB_PCIE_PORT2_DEV, NB_PCIE_FUNC1) |
| 29 | #define NB_PCIE_PORT2_DEVFN PCI_DEVFN(NB_PCIE_PORT2_DEV, NB_PCIE_FUNC2) |
| 30 | #define NB_PCIE_PORT3_DEVFN PCI_DEVFN(NB_PCIE_PORT2_DEV, NB_PCIE_FUNC3) |
| 31 | #define NB_PCIE_PORT4_DEVFN PCI_DEVFN(NB_PCIE_PORT2_DEV, NB_PCIE_FUNC4) |
| 32 | #define NB_PCIE_PORT5_DEVFN PCI_DEVFN(NB_PCIE_PORT2_DEV, NB_PCIE_FUNC5) |
Kyösti Mälkki | a62191b | 2015-05-27 07:58:22 +0300 | [diff] [blame] | 33 | |
| 34 | #endif /* _AMD_00730F01_PCI_DEVS_H_ */ |