coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
pci_devs.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef _AMD_00730F01_PCI_DEVS_H_
4 #define _AMD_00730F01_PCI_DEVS_H_
5 
6 #define BUS0 0
7 
8 /* Graphics and Display */
9 #define GFX_DEV 0x1
10 #define GFX_FUNC 0
11 #define GFX_DEVID 0x9850
12 #define GFX_DEVFN PCI_DEVFN(GFX_DEV,GFX_FUNC)
13 
14 /* Internal Audio controller */
15 #define ACTL_DEV 0x1
16 #define ACTL_FUNC 1
17 #define ACTL_DEVID 0x9840
18 #define ACTL_DEVFN PCI_DEVFN(ACTL_DEV,ACTL_FUNC)
19 
20 /* PCIe Ports */
21 #define NB_PCIE_PORT2_DEV 0x2
22 #define NB_PCIE_FUNC0 0
23 #define NB_PCIE_FUNC1 1
24 #define NB_PCIE_FUNC2 2
25 #define NB_PCIE_FUNC3 3
26 #define NB_PCIE_FUNC4 4
27 #define NB_PCIE_FUNC5 5
28 #define NB_PCIE_PORT_DEVID 0x1439
29 #define NB_PCIE_PORT0_DEVFN PCI_DEVFN(NB_PCIE_PORT2_DEV,NB_PCIE_FUNC0)
30 #define NB_PCIE_PORT1_DEVFN PCI_DEVFN(NB_PCIE_PORT2_DEV,NB_PCIE_FUNC1)
31 #define NB_PCIE_PORT2_DEVFN PCI_DEVFN(NB_PCIE_PORT2_DEV,NB_PCIE_FUNC2)
32 #define NB_PCIE_PORT3_DEVFN PCI_DEVFN(NB_PCIE_PORT2_DEV,NB_PCIE_FUNC3)
33 #define NB_PCIE_PORT4_DEVFN PCI_DEVFN(NB_PCIE_PORT2_DEV,NB_PCIE_FUNC4)
34 #define NB_PCIE_PORT5_DEVFN PCI_DEVFN(NB_PCIE_PORT2_DEV,NB_PCIE_FUNC5)
35 
36 #endif /* _AMD_00730F01_PCI_DEVS_H_ */