Fix IP22 timer calibration.
[linux-2.6/linux-mips.git] / include / asm-mips / pci_channel.h
blobce1ecaf2625bbe13798927d50de9c3165b134c83
1 #ifndef __ASM_PCI_CHANNEL_H
2 #define __ASM_PCI_CHANNEL_H
4 /*
5 * This file essentially defines the interface between board
6 * specific PCI code and MIPS common PCI code. Should potentially put
7 * into include/asm/pci.h file.
8 */
10 #include <linux/ioport.h>
11 #include <linux/pci.h>
14 * Each pci channel is a top-level PCI bus seem by CPU. A machine with
15 * multiple PCI channels may have multiple PCI host controllers or a
16 * single controller supporting multiple channels.
18 struct pci_channel {
19 struct pci_ops *pci_ops;
20 struct resource *io_resource;
21 struct resource *mem_resource;
22 int first_devfn;
23 int last_devfn;
27 * each board defines an array of pci_channels, that ends with all NULL entry
29 extern struct pci_channel mips_pci_channels[];
32 * board supplied pci irq fixup routine
34 extern void pcibios_fixup_irqs(void);
37 * board supplied pci fixup routines
39 extern void pcibios_fixup_resources(struct pci_dev *dev);
41 #endif /* __ASM_PCI_CHANNEL_H */