x86: Refactor PCI to permit alternate init
[oweals/u-boot.git] / arch / x86 / cpu / pci.c
1 /*
2  * Copyright (c) 2011 The Chromium OS Authors.
3  * (C) Copyright 2008,2009
4  * Graeme Russ, <graeme.russ@gmail.com>
5  *
6  * (C) Copyright 2002
7  * Daniel Engström, Omicron Ceti AB, <daniel@omicron.se>
8  *
9  * SPDX-License-Identifier:     GPL-2.0+
10  */
11
12 #include <common.h>
13 #include <pci.h>
14 #include <asm/pci.h>
15
16 static struct pci_controller x86_hose;
17
18 void pci_init_board(void)
19 {
20         struct pci_controller *hose = &x86_hose;
21
22         board_pci_setup_hose(hose);
23         pci_setup_type1(hose);
24         pci_register_hose(hose);
25
26         hose->last_busno = pci_hose_scan(hose);
27 }