2 * include/asm-xtensa/pci-bridge.h
4 * This file is subject to the terms and conditions of the GNU General
5 * Public License. See the file "COPYING" in the main directory of
6 * this archive for more details.
8 * Copyright (C) 2005 Tensilica Inc.
11 #ifndef _XTENSA_PCI_BRIDGE_H
12 #define _XTENSA_PCI_BRIDGE_H
15 struct pci_controller;
18 * pciauto_bus_scan() enumerates the pci space.
21 extern int pciauto_bus_scan(struct pci_controller *, int);
30 * Structure of a PCI controller (host bridge)
33 struct pci_controller {
34 int index; /* used for pci_controller_num */
35 struct pci_controller *next;
43 volatile unsigned int *cfg_addr;
44 volatile unsigned char *cfg_data;
46 /* Currently, we limit ourselves to 1 IO range and 3 mem
47 * ranges since the common pci_bus structure can't handle more
49 struct resource io_resource;
50 struct resource mem_resources[3];
51 int mem_resource_count;
53 /* Host bridge I/O and Memory space
54 * Used for BAR placement algorithms
56 struct pci_space io_space;
57 struct pci_space mem_space;
59 /* Return the interrupt number fo a device. */
60 int (*map_irq)(struct pci_dev*, u8, u8);
64 static inline void pcibios_init_resource(struct resource *res,
65 unsigned long start, unsigned long end, int flags, char *name)
76 #endif /* _XTENSA_PCI_BRIDGE_H */