1 /* 2 * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com> 3 * 4 * SPDX-License-Identifier: GPL-2.0+ 5 */ 6 7 #ifndef _QUEENSBAY_DEVICE_H_ 8 #define _QUEENSBAY_DEVICE_H_ 9 10 #include <pci.h> 11 12 /* TunnelCreek PCI Devices */ 13 #define TNC_HOST_BRIDGE_DEV 0 14 #define TNC_HOST_BRIDGE_FUNC 0 15 #define TNC_IGD_DEV 2 16 #define TNC_IGD_FUNC 0 17 #define TNC_SDVO_DEV 3 18 #define TNC_SDVO_FUNC 0 19 #define TNC_PCIE0_DEV 23 20 #define TNC_PCIE0_FUNC 0 21 #define TNC_PCIE1_DEV 24 22 #define TNC_PCIE1_FUNC 0 23 #define TNC_PCIE2_DEV 25 24 #define TNC_PCIE2_FUNC 0 25 #define TNC_PCIE3_DEV 26 26 #define TNC_PCIE3_FUNC 0 27 #define TNC_HDA_DEV 27 28 #define TNC_HDA_FUNC 0 29 #define TNC_LPC_DEV 31 30 #define TNC_LPC_FUNC 0 31 32 #define TNC_HOST_BRIDGE \ 33 PCI_BDF(0, TNC_HOST_BRIDGE_DEV, TNC_HOST_BRIDGE_FUNC) 34 #define TNC_IGD \ 35 PCI_BDF(0, TNC_IGD_DEV, TNC_IGD_FUNC) 36 #define TNC_SDVO \ 37 PCI_BDF(0, TNC_SDVO_DEV, TNC_SDVO_FUNC) 38 #define TNC_PCIE0 \ 39 PCI_BDF(0, TNC_PCIE0_DEV, TNC_PCIE0_FUNC) 40 #define TNC_PCIE1 \ 41 PCI_BDF(0, TNC_PCIE1_DEV, TNC_PCIE1_FUNC) 42 #define TNC_PCIE2 \ 43 PCI_BDF(0, TNC_PCIE2_DEV, TNC_PCIE2_FUNC) 44 #define TNC_PCIE3 \ 45 PCI_BDF(0, TNC_PCIE3_DEV, TNC_PCIE3_FUNC) 46 #define TNC_HDA \ 47 PCI_BDF(0, TNC_HDA_DEV, TNC_HDA_FUNC) 48 #define TNC_LPC \ 49 PCI_BDF(0, TNC_LPC_DEV, TNC_LPC_FUNC) 50 51 /* Topcliff IOH PCI Devices */ 52 #define TCF_PCIE_PORT_DEV 0 53 #define TCF_PCIE_PORT_FUNC 0 54 55 #define TCF_DEV_0 0 56 #define TCF_PKT_HUB_FUNC 0 57 #define TCF_GBE_FUNC 1 58 #define TCF_GPIO_FUNC 2 59 60 #define TCF_DEV_2 2 61 #define TCF_USB1_OHCI0_FUNC 0 62 #define TCF_USB1_OHCI1_FUNC 1 63 #define TCF_USB1_OHCI2_FUNC 2 64 #define TCF_USB1_EHCI_FUNC 3 65 #define TCF_USB_DEVICE_FUNC 4 66 67 #define TCF_DEV_4 4 68 #define TCF_SDIO0_FUNC 0 69 #define TCF_SDIO1_FUNC 1 70 71 #define TCF_DEV_6 6 72 #define TCF_SATA_FUNC 0 73 74 #define TCF_DEV_8 8 75 #define TCF_USB2_OHCI0_FUNC 0 76 #define TCF_USB2_OHCI1_FUNC 1 77 #define TCF_USB2_OHCI2_FUNC 2 78 #define TCF_USB2_EHCI_FUNC 3 79 80 #define TCF_DEV_10 10 81 #define TCF_DMA1_FUNC 0 82 #define TCF_UART0_FUNC 1 83 #define TCF_UART1_FUNC 2 84 #define TCF_UART2_FUNC 3 85 #define TCF_UART3_FUNC 4 86 87 #define TCF_DEV_12 12 88 #define TCF_DMA2_FUNC 0 89 #define TCF_SPI_FUNC 1 90 #define TCF_I2C_FUNC 2 91 #define TCF_CAN_FUNC 3 92 #define TCF_1588_FUNC 4 93 94 #endif /* _QUEENSBAY_DEVICE_H_ */ 95