2 * Copyright (c) 2011 The Chromium OS Authors.
3 * (C) Copyright 2008,2009
4 * Graeme Russ, <graeme.russ@gmail.com>
7 * Daniel Engström, Omicron Ceti AB, <daniel@omicron.se>
9 * SPDX-License-Identifier: GPL-2.0+
16 static void config_pci_bridge(struct pci_controller *hose, pci_dev_t dev,
17 struct pci_config_table *table)
21 hose->read_byte(hose, dev, PCI_SECONDARY_BUS, &secondary);
23 pci_hose_scan_bus(hose, secondary);
26 static struct pci_config_table pci_ivybridge_config_table[] = {
27 /* vendor, device, class, bus, dev, func */
28 { PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_BRIDGE_PCI,
29 PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, &config_pci_bridge },
33 void board_pci_setup_hose(struct pci_controller *hose)
35 hose->config_table = pci_ivybridge_config_table;
36 hose->first_busno = 0;
39 /* PCI memory space */
40 pci_set_region(hose->regions + 0,
47 pci_set_region(hose->regions + 1,
53 pci_set_region(hose->regions + 2,
59 hose->region_count = 3;