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_FAM16KB_PCI_DEVS_H_
4 #define _AMD_FAM16KB_PCI_DEVS_H_
5 
6 #include <device/pci_def.h>
7 
8 #define BUS0 0
9 
10 /* Graphics and Display */
11 #define GFX_DEV 0x1
12 #define GFX_FUNC 0
13 #define GFX_DEVFN PCI_DEVFN(GFX_DEV,GFX_FUNC)
14 
15 /* Internal Audio Controller */
16 #define ACTL_FUNC 1
17 #define ACTL_DEVFN PCI_DEVFN(GFX_DEV,ACTL_FUNC)
18 
19 /* PCIe Ports */
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
26 #define NB_PCIE_PORT_DEVID 0x1439
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)
32 
33 #endif /* _AMD_FAM16KB_PCI_DEVS_H_ */