cregit-Linux how code gets into the kernel

Release 4.12 include/linux/of_pci.h

Directory: include/linux
#ifndef __OF_PCI_H

#define __OF_PCI_H

#include <linux/pci.h>
#include <linux/msi.h>

struct pci_dev;
struct of_phandle_args;
struct device_node;

#ifdef CONFIG_OF_PCI
int of_irq_parse_pci(const struct pci_dev *pdev, struct of_phandle_args *out_irq);
struct device_node *of_pci_find_child_device(struct device_node *parent,
					     unsigned int devfn);
int of_pci_get_devfn(struct device_node *np);
int of_irq_parse_and_map_pci(const struct pci_dev *dev, u8 slot, u8 pin);
int of_pci_parse_bus_range(struct device_node *node, struct resource *res);
int of_get_pci_domain_nr(struct device_node *node);
int of_pci_get_max_link_speed(struct device_node *node);
void of_pci_check_probe_only(void);
int of_pci_map_rid(struct device_node *np, u32 rid,
		   const char *map_name, const char *map_mask_name,
		   struct device_node **target, u32 *id_out);
#else

static inline int of_irq_parse_pci(const struct pci_dev *pdev, struct of_phandle_args *out_irq) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Arnd Bergmann21100.00%1100.00%
Total21100.00%1100.00%


static inline struct device_node *of_pci_find_child_device(struct device_node *parent, unsigned int devfn) { return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
Benjamin Herrenschmidt1466.67%150.00%
Arnd Bergmann733.33%150.00%
Total21100.00%2100.00%


static inline int of_pci_get_devfn(struct device_node *np) { return -EINVAL; }

Contributors

PersonTokensPropCommitsCommitProp
Thierry Reding850.00%150.00%
Arnd Bergmann850.00%150.00%
Total16100.00%2100.00%


static inline int of_irq_parse_and_map_pci(const struct pci_dev *dev, u8 slot, u8 pin) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Arnd Bergmann22100.00%1100.00%
Total22100.00%1100.00%


static inline int of_pci_parse_bus_range(struct device_node *node, struct resource *res) { return -EINVAL; }

Contributors

PersonTokensPropCommitsCommitProp
Thierry Reding1361.90%150.00%
Arnd Bergmann838.10%150.00%
Total21100.00%2100.00%


static inline int of_get_pci_domain_nr(struct device_node *node) { return -1; }

Contributors

PersonTokensPropCommitsCommitProp
Liviu Dudau16100.00%1100.00%
Total16100.00%1100.00%


static inline int of_pci_map_rid(struct device_node *np, u32 rid, const char *map_name, const char *map_mask_name, struct device_node **target, u32 *id_out) { return -EINVAL; }

Contributors

PersonTokensPropCommitsCommitProp
Robin Murphy39100.00%1100.00%
Total39100.00%1100.00%


static inline int of_pci_get_max_link_speed(struct device_node *node) { return -EINVAL; }

Contributors

PersonTokensPropCommitsCommitProp
Shawn Lin16100.00%1100.00%
Total16100.00%1100.00%


static inline void of_pci_check_probe_only(void) { }

Contributors

PersonTokensPropCommitsCommitProp
Marc Zyngier8100.00%1100.00%
Total8100.00%1100.00%

#endif #if defined(CONFIG_OF_ADDRESS) int of_pci_get_host_bridge_resources(struct device_node *dev, unsigned char busno, unsigned char bus_max, struct list_head *resources, resource_size_t *io_base); #else
static inline int of_pci_get_host_bridge_resources(struct device_node *dev, unsigned char busno, unsigned char bus_max, struct list_head *resources, resource_size_t *io_base) { return -EINVAL; }

Contributors

PersonTokensPropCommitsCommitProp
Arnd Bergmann33100.00%1100.00%
Total33100.00%1100.00%

#endif #endif

Overall Contributors

PersonTokensPropCommitsCommitProp
Arnd Bergmann14736.39%211.11%
Robin Murphy7217.82%211.11%
Liviu Dudau5513.61%211.11%
Sebastian Andrzej Siewior286.93%15.56%
Shawn Lin256.19%15.56%
Thierry Reding215.20%211.11%
Grant C. Likely194.70%316.67%
Benjamin Herrenschmidt153.71%15.56%
Marc Zyngier133.22%15.56%
Thomas Petazzoni71.73%15.56%
John Crispin10.25%15.56%
Murali Karicheri10.25%15.56%
Total404100.00%18100.00%
Directory: include/linux
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.