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 _QUARK_PCI_DEVS_H_
4 #define _QUARK_PCI_DEVS_H_
5 
6 #include <device/pci.h>
7 #include <device/pci_def.h>
8 
9 /* DEVICE 0 (Memory Controller Hub) */
10 #define MC_BDF PCI_DEV(PCI_BUS_NUMBER_QNC, MC_DEV, MC_FUN)
11 
12 /* Device IDs */
13 #define I2CGPIO_DEVID 0x0934
14 #define HSUART_DEVID 0x0936
15 #define EHCI_DEVID 0x0939
16 #define LPC_DEVID 0x095E
17 #define PCIE_PORT0_DEVID 0x11c3
18 #define PCIE_PORT1_DEVID 0x11c4
19 
20 /* IO Fabric 1 */
21 #define SIO1_DEV 0x14
22 #define SD_MMC_DEV SIO1_DEV
23 #define HSUART0_DEV SIO1_DEV
24 #define HSUART1_DEV SIO1_DEV
25 #define SD_MMC_FUNC 0
26 #define HSUART0_FUNC 1
27 #define USB_DEV_PORT_FUNC 2
28 #define EHCI_FUNC 3
29 #define OHCI_FUNC 4
30 #define HSUART1_FUNC 5
31 #define HSUART0_BDF PCI_DEV(PCI_BUS_NUMBER_QNC, HSUART0_DEV, HSUART0_FUNC)
32 #define HSUART1_BDF PCI_DEV(PCI_BUS_NUMBER_QNC, HSUART1_DEV, HSUART1_FUNC)
33 
34 /* IO Fabric 2 */
35 #define SIO2_DEV 0x15
36 #define I2CGPIO_DEV SIO2_DEV
37 #define I2CGPIO_FUNC 2
38 #define I2CGPIO_BDF PCI_DEV(PCI_BUS_NUMBER_QNC, I2CGPIO_DEV, I2CGPIO_FUNC)
39 
40 /* PCIe Ports */
41 #define PCIE_DEV 0x17
42 #define PCIE_PORT0_DEV PCIE_DEV
43 #define PCIE_PORT0_FUNC 0
44 #define PCIE_PORT0_BDF PCI_DEV(PCI_BUS_NUMBER_QNC, PCIE_DEV, PCIE_PORT0_FUNC)
45 
46 #define PCIE_PORT1_DEV PCIE_DEV
47 #define PCIE_PORT1_FUNC 1
48 #define PCIE_PORT1_BDF PCI_DEV(PCI_BUS_NUMBER_QNC, PCIE_DEV, PCIE_PORT1_FUNC)
49 
50 /* Platform Controller Unit */
51 #define LPC_DEV PCI_DEVICE_NUMBER_QNC_LPC
52 #define LPC_FUNC PCI_FUNCTION_NUMBER_QNC_LPC
53 #define LPC_BDF PCI_DEV(PCI_BUS_NUMBER_QNC, LPC_DEV, LPC_FUNC)
54 
55 #endif /* _QUARK_PCI_DEVS_H_ */