Contributors: 17
	  
        
          | Author | 
          Tokens | 
          Token Proportion | 
          Commits | 
          Commit Proportion | 
        
	  
	  
        
        
          | Linus Torvalds | 
          108 | 
          32.14% | 
          2 | 
          6.06% | 
        
        
          | Linus Torvalds (pre-git) | 
          86 | 
          25.60% | 
          10 | 
          30.30% | 
        
        
          | Russell King | 
          40 | 
          11.90% | 
          5 | 
          15.15% | 
        
        
          | Rob Herring | 
          37 | 
          11.01% | 
          2 | 
          6.06% | 
        
        
          | Linus Walleij | 
          22 | 
          6.55% | 
          1 | 
          3.03% | 
        
        
          | Anton Vorontsov | 
          9 | 
          2.68% | 
          1 | 
          3.03% | 
        
        
          | Saeed Bishara | 
          5 | 
          1.49% | 
          1 | 
          3.03% | 
        
        
          | Lennert Buytenhek | 
          5 | 
          1.49% | 
          2 | 
          6.06% | 
        
        
          | Lorenzo Pieralisi | 
          5 | 
          1.49% | 
          1 | 
          3.03% | 
        
        
          | Thierry Reding | 
          5 | 
          1.49% | 
          1 | 
          3.03% | 
        
        
          | Dan J Williams | 
          3 | 
          0.89% | 
          1 | 
          3.03% | 
        
        
          | Björn Helgaas | 
          3 | 
          0.89% | 
          1 | 
          3.03% | 
        
        
          | Hiroshi Doyu | 
          2 | 
          0.60% | 
          1 | 
          3.03% | 
        
        
          | Thomas Gleixner | 
          2 | 
          0.60% | 
          1 | 
          3.03% | 
        
        
          | Ralf Baechle | 
          2 | 
          0.60% | 
          1 | 
          3.03% | 
        
        
          | Eli Carter | 
          1 | 
          0.30% | 
          1 | 
          3.03% | 
        
        
          | Greg Kroah-Hartman | 
          1 | 
          0.30% | 
          1 | 
          3.03% | 
        
	  
	  
        
          | Total | 
          336 | 
           | 
          33 | 
           | 
	    
	  
    
 
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 *  arch/arm/include/asm/mach/pci.h
 *
 *  Copyright (C) 2000 Russell King
 */
#ifndef __ASM_MACH_PCI_H
#define __ASM_MACH_PCI_H
#include <linux/ioport.h>
struct pci_sys_data;
struct pci_ops;
struct pci_bus;
struct pci_host_bridge;
struct device;
struct hw_pci {
	struct pci_ops	*ops;
	int		nr_controllers;
	void		**private_data;
	int		(*setup)(int nr, struct pci_sys_data *);
	int		(*scan)(int nr, struct pci_host_bridge *);
	void		(*preinit)(void);
	void		(*postinit)(void);
	u8		(*swizzle)(struct pci_dev *dev, u8 *pin);
	int		(*map_irq)(const struct pci_dev *dev, u8 slot, u8 pin);
};
/*
 * Per-controller structure
 */
struct pci_sys_data {
	struct list_head node;
	int		busnr;		/* primary bus number			*/
	u64		mem_offset;	/* bus->cpu memory mapping offset	*/
	unsigned long	io_offset;	/* bus->cpu IO mapping offset		*/
	struct pci_bus	*bus;		/* PCI bus				*/
	struct list_head resources;	/* root bus resources (apertures)       */
	struct resource io_res;
	char		io_res_name[12];
					/* Bridge swizzling			*/
	u8		(*swizzle)(struct pci_dev *, u8 *);
					/* IRQ mapping				*/
	int		(*map_irq)(const struct pci_dev *, u8, u8);
	void		*private_data;	/* platform controller private data	*/
};
/*
 * Call this with your hw_pci struct to initialise the PCI system.
 */
void pci_common_init_dev(struct device *, struct hw_pci *);
/*
 * Compatibility wrapper for older platforms that do not care about
 * passing the parent device.
 */
static inline void pci_common_init(struct hw_pci *hw)
{
	pci_common_init_dev(NULL, hw);
}
/*
 * Setup early fixed I/O mapping.
 */
#if defined(CONFIG_PCI)
extern void pci_map_io_early(unsigned long pfn);
#else
static inline void pci_map_io_early(unsigned long pfn) {}
#endif
/*
 * PCI controllers
 */
extern struct pci_ops iop3xx_ops;
extern int iop3xx_pci_setup(int nr, struct pci_sys_data *);
extern void iop3xx_pci_preinit(void);
extern void iop3xx_pci_preinit_cond(void);
extern struct pci_ops dc21285_ops;
extern int dc21285_setup(int nr, struct pci_sys_data *);
extern void dc21285_preinit(void);
extern void dc21285_postinit(void);
#endif /* __ASM_MACH_PCI_H */