/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. */ #ifndef _ASM_PCI_H #define _ASM_PCI_H #include <linux/mm.h> #ifdef __KERNEL__ /* * This file essentially defines the interface between board * specific PCI code and MIPS common PCI code. Should potentially put * into include/asm/pci.h file. */ #include <linux/ioport.h> #include <linux/list.h> #include <linux/of.h> #ifdef CONFIG_PCI_DRIVERS_LEGACY /* * Each pci channel is a top-level PCI bus seem by CPU. A machine with * multiple PCI channels may have multiple PCI host controllers or a * single controller supporting multiple channels. */ struct pci_controller { struct list_head list; struct pci_bus *bus; struct device_node *of_node; struct pci_ops *pci_ops; struct resource *mem_resource; unsigned long mem_offset; struct resource *io_resource; unsigned long io_offset; unsigned long io_map_base; struct resource *busn_resource; #ifndef CONFIG_PCI_DOMAINS_GENERIC unsigned int index; /* For compatibility with current (as of July 2003) pciutils and XFree86. Eventually will be removed. */ unsigned int need_domain_info; #endif /* Optional access methods for reading/writing the bus number of the PCI controller */ int (*get_busno)(void); void (*set_busno)(int busno); }; /* * Used by boards to register their PCI busses before the actual scanning. */ extern void register_pci_controller(struct pci_controller *hose); /* * board supplied pci irq fixup routine */ extern int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin); /* Do platform specific device initialization at pci_enable_device() time */ extern int pcibios_plat_dev_init(struct pci_dev *dev); extern char * (*pcibios_plat_setup)(char *str); #ifdef CONFIG_OF /* this function parses memory ranges from a device node */ extern void pci_load_of_ranges(struct pci_controller *hose, struct device_node *node); #else
static inline void pci_load_of_ranges(struct pci_controller *hose, struct device_node *node) {}Contributors
Person | Tokens | Prop | Commits | CommitProp |
Paul Burton | 16 | 100.00% | 1 | 100.00% |
Total | 16 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Paul Burton | 16 | 100.00% | 1 | 100.00% |
Total | 16 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Paul Burton | 21 | 100.00% | 1 | 100.00% |
Total | 21 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Paul Burton | 7 | 53.85% | 1 | 50.00% |
Linus Torvalds | 6 | 46.15% | 1 | 50.00% |
Total | 13 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Paul Burton | 18 | 100.00% | 1 | 100.00% |
Total | 18 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 24 | 92.31% | 1 | 50.00% |
Matthew Wilcox | 2 | 7.69% | 1 | 50.00% |
Total | 26 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 22 | 100.00% | 1 | 100.00% |
Total | 22 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Paul Burton | 159 | 37.06% | 4 | 14.81% |
Ralf Bächle | 154 | 35.90% | 7 | 25.93% |
Linus Torvalds (pre-git) | 43 | 10.02% | 3 | 11.11% |
Andrew Isaacson | 20 | 4.66% | 1 | 3.70% |
Andrew Morton | 15 | 3.50% | 2 | 7.41% |
Linus Torvalds | 9 | 2.10% | 2 | 7.41% |
John Crispin | 8 | 1.86% | 1 | 3.70% |
Joshua Kinard | 5 | 1.17% | 1 | 3.70% |
Sergey Ryazanov | 4 | 0.93% | 1 | 3.70% |
David Woodhouse | 3 | 0.70% | 1 | 3.70% |
Wolfgang Grandegger | 3 | 0.70% | 1 | 3.70% |
Zubair Lutfullah Kakakhel | 3 | 0.70% | 1 | 3.70% |
Matthew Wilcox | 2 | 0.47% | 1 | 3.70% |
Christoph Hellwig | 1 | 0.23% | 1 | 3.70% |
Total | 429 | 100.00% | 27 | 100.00% |