blob: 92f6ac5c577ca0f027f717807f970f902ad3438a [file] [log] [blame]
Angel Pons4b429832020-04-02 23:48:50 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Kyösti Mälkkia62191b2015-05-27 07:58:22 +03002
3#ifndef _AMD_00730F01_PCI_DEVS_H_
4#define _AMD_00730F01_PCI_DEVS_H_
5
Kyösti Mälkkia62191b2015-05-27 07:58:22 +03006/* Graphics and Display */
7#define GFX_DEV 0x1
8#define GFX_FUNC 0
Elyes Haouas693f7c12022-07-16 09:38:17 +02009#define GFX_DEVFN PCI_DEVFN(GFX_DEV, GFX_FUNC)
Kyösti Mälkkia62191b2015-05-27 07:58:22 +030010
11/* Internal Audio controller */
12#define ACTL_DEV 0x1
13#define ACTL_FUNC 1
Elyes Haouas693f7c12022-07-16 09:38:17 +020014#define ACTL_DEVFN PCI_DEVFN(ACTL_DEV, ACTL_FUNC)
Kyösti Mälkkia62191b2015-05-27 07:58:22 +030015
16/* PCIe Ports */
17#define NB_PCIE_PORT2_DEV 0x2
18#define NB_PCIE_FUNC0 0
19#define NB_PCIE_FUNC1 1
20#define NB_PCIE_FUNC2 2
21#define NB_PCIE_FUNC3 3
22#define NB_PCIE_FUNC4 4
23#define NB_PCIE_FUNC5 5
Elyes Haouas693f7c12022-07-16 09:38:17 +020024#define NB_PCIE_PORT0_DEVFN PCI_DEVFN(NB_PCIE_PORT2_DEV, NB_PCIE_FUNC0)
25#define NB_PCIE_PORT1_DEVFN PCI_DEVFN(NB_PCIE_PORT2_DEV, NB_PCIE_FUNC1)
26#define NB_PCIE_PORT2_DEVFN PCI_DEVFN(NB_PCIE_PORT2_DEV, NB_PCIE_FUNC2)
27#define NB_PCIE_PORT3_DEVFN PCI_DEVFN(NB_PCIE_PORT2_DEV, NB_PCIE_FUNC3)
28#define NB_PCIE_PORT4_DEVFN PCI_DEVFN(NB_PCIE_PORT2_DEV, NB_PCIE_FUNC4)
29#define NB_PCIE_PORT5_DEVFN PCI_DEVFN(NB_PCIE_PORT2_DEV, NB_PCIE_FUNC5)
Kyösti Mälkkia62191b2015-05-27 07:58:22 +030030
31#endif /* _AMD_00730F01_PCI_DEVS_H_ */