2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License version 2 as
4 * published by the Free Software Foundation.
6 * This program is distributed in the hope that it will be useful,
7 * but WITHOUT ANY WARRANTY; without even the implied warranty of
8 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 * GNU General Public License for more details.
11 * You should have received a copy of the GNU General Public License
12 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 * Copyright (C) 2014 ARM Limited
16 * Author: Will Deacon <will.deacon@arm.com>
19 #ifndef _PCI_HOST_COMMON_H
20 #define _PCI_HOST_COMMON_H
22 #include <linux/kernel.h>
23 #include <linux/platform_device.h>
25 struct gen_pci_cfg_bus_ops
{
30 struct gen_pci_cfg_windows
{
32 struct resource
*bus_range
;
35 struct gen_pci_cfg_bus_ops
*ops
;
39 struct pci_host_bridge host
;
40 struct gen_pci_cfg_windows cfg
;
41 struct list_head resources
;
44 int pci_host_common_probe(struct platform_device
*pdev
,
47 #endif /* _PCI_HOST_COMMON_H */