blob: d2549d47b355856d5174b413c7844e2cc0e23e1b [file] [log] [blame]
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +03001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2014 Sage Electronic Engineering, LLC.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20#ifndef _PI_HUDSON_PCI_DEVS_H_
21#define _PI_HUDSON_PCI_DEVS_H_
22
23#define BUS0 0
24
25/* XHCI */
26#define XHCI_DEV 0x10
27#define XHCI_FUNC 0
28#define XHCI_DEVID 0x7814
29#define XHCI_DEVFN PCI_DEVFN(XHCI_DEV,XHCI_FUNC)
30
31/* SATA */
32#define SATA_DEV 0x11
33#define SATA_FUNC 0
34#define SATA_IDE_DEVID 0x7800
35#define AHCI_DEVID_MS 0x7801
36#define AHCI_DEVID_AMD 0x7804
37#define SATA_DEVFN PCI_DEVFN(SATA_DEV,SATA_FUNC)
38
39/* OHCI */
40#define OHCI1_DEV 0x12
41#define OHCI1_FUNC 0
42#define OHCI2_DEV 0x13
43#define OHCI2_FUNC 0
44#define OHCI3_DEV 0x16
45#define OHCI3_FUNC 0
46#define OHCI4_DEV 0x14
47#define OHCI4_FUNC 5
48#define OHCI_DEVID 0x7807
49#define OHCI1_DEVFN PCI_DEVFN(OHCI1_DEV,OHCI1_FUNC)
50#define OHCI2_DEVFN PCI_DEVFN(OHCI2_DEV,OHCI2_FUNC)
51#define OHCI3_DEVFN PCI_DEVFN(OHCI3_DEV,OHCI3_FUNC)
52#define OHCI4_DEVFN PCI_DEVFN(OHCI4_DEV,OHCI4_FUNC)
53
54/* EHCI */
55#define EHCI1_DEV 0x12
56#define EHCI1_FUNC 2
57#define EHCI2_DEV 0x13
58#define EHCI2_FUNC 2
Paul Menzel68402102014-12-15 07:55:52 +010059#define EHCI3_DEV 0x16
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030060#define EHCI3_FUNC 2
61#define EHCI_DEVID 0x7808
62#define EHCI1_DEVFN PCI_DEVFN(EHCI1_DEV,EHCI1_FUNC)
63#define EHCI2_DEVFN PCI_DEVFN(EHCI2_DEV,EHCI2_FUNC)
64#define EHCI3_DEVFN PCI_DEVFN(EHCI3_DEV,EHCI3_FUNC)
65
66/* SMBUS */
67#define SMBUS_DEV 0x14
68#define SMBUS_FUNC 0
69#define SMBUS_DEVID 0x780B
70#define SMBUS_DEVFN PCI_DEVFN(SMBUS_DEV,SMBUS_FUNC)
71
72/* HD Audio */
73#define HDA_DEV 0x14
74#define HDA_FUNC 2
75#define HDA_DEVID 0x780D
76#define HDA_DEVFN PCI_DEVFN(HDA_DEV,HDA_FUNC)
77
78/* LPC BUS */
79#define PCU_DEV 0x14
80#define LPC_FUNC 3
81#define LPC_DEVID 0x780E
82#define LPC_DEVFN PCI_DEVFN(LPC_DEV,LPC_FUNC)
83
84/* PCI Ports */
85#define SB_PCI_PORT_DEV 0x14
86#define SB_PCI_PORT_FUNC 4
87# define SB_PCI_PORT_DEVID 0x780F
88# define SB_PCI_PORT_DEVFN PCI_DEVFN(SB_PCI_PORT_DEV,SB_PCI_PORT_FUNC)
89
90/* SD Controller */
91#define SD_DEV 0x14
92#define SD_FUNC 7
93#define SD_DEVID 0x7806
94#define SD_DEVFN PCI_DEVFN(SD_DEV,SD_FUNC)
95
96#endif /* _PI_HUDSON_PCI_DEVS_H_ */