Release 4.11 include/linux/of_pci.h
#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
Person | Tokens | Prop | Commits | CommitProp |
Arnd Bergmann | 21 | 100.00% | 1 | 100.00% |
Total | 21 | 100.00% | 1 | 100.00% |
static inline struct device_node *of_pci_find_child_device(struct device_node *parent,
unsigned int devfn)
{
return NULL;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Benjamin Herrenschmidt | 14 | 66.67% | 1 | 50.00% |
Arnd Bergmann | 7 | 33.33% | 1 | 50.00% |
Total | 21 | 100.00% | 2 | 100.00% |
static inline int of_pci_get_devfn(struct device_node *np)
{
return -EINVAL;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Arnd Bergmann | 8 | 50.00% | 1 | 50.00% |
Thierry Reding | 8 | 50.00% | 1 | 50.00% |
Total | 16 | 100.00% | 2 | 100.00% |
static inline int
of_irq_parse_and_map_pci(const struct pci_dev *dev, u8 slot, u8 pin)
{
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Arnd Bergmann | 22 | 100.00% | 1 | 100.00% |
Total | 22 | 100.00% | 1 | 100.00% |
static inline int
of_pci_parse_bus_range(struct device_node *node, struct resource *res)
{
return -EINVAL;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Thierry Reding | 13 | 61.90% | 1 | 50.00% |
Arnd Bergmann | 8 | 38.10% | 1 | 50.00% |
Total | 21 | 100.00% | 2 | 100.00% |
static inline int
of_get_pci_domain_nr(struct device_node *node)
{
return -1;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Liviu Dudau | 16 | 100.00% | 1 | 100.00% |
Total | 16 | 100.00% | 1 | 100.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
Person | Tokens | Prop | Commits | CommitProp |
Robin Murphy | 39 | 100.00% | 1 | 100.00% |
Total | 39 | 100.00% | 1 | 100.00% |
static inline int
of_pci_get_max_link_speed(struct device_node *node)
{
return -EINVAL;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Shawn Lin | 16 | 100.00% | 1 | 100.00% |
Total | 16 | 100.00% | 1 | 100.00% |
static inline void of_pci_check_probe_only(void) { }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Marc Zyngier | 8 | 100.00% | 1 | 100.00% |
Total | 8 | 100.00% | 1 | 100.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
Person | Tokens | Prop | Commits | CommitProp |
Arnd Bergmann | 33 | 100.00% | 1 | 100.00% |
Total | 33 | 100.00% | 1 | 100.00% |
#endif
#if defined(CONFIG_OF) && defined(CONFIG_PCI_MSI)
int of_pci_msi_chip_add(struct msi_controller *chip);
void of_pci_msi_chip_remove(struct msi_controller *chip);
struct msi_controller *of_pci_find_msi_chip_by_node(struct device_node *of_node);
#else
static inline int of_pci_msi_chip_add(struct msi_controller *chip) { return -EINVAL; }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Thomas Petazzoni | 15 | 93.75% | 1 | 50.00% |
Yijing Wang | 1 | 6.25% | 1 | 50.00% |
Total | 16 | 100.00% | 2 | 100.00% |
static inline void of_pci_msi_chip_remove(struct msi_controller *chip) { }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Thomas Petazzoni | 10 | 90.91% | 1 | 50.00% |
Yijing Wang | 1 | 9.09% | 1 | 50.00% |
Total | 11 | 100.00% | 2 | 100.00% |
static inline struct msi_controller *
of_pci_find_msi_chip_by_node(struct device_node *of_node) { return NULL; }
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Thomas Petazzoni | 16 | 94.12% | 1 | 50.00% |
Yijing Wang | 1 | 5.88% | 1 | 50.00% |
Total | 17 | 100.00% | 2 | 100.00% |
#endif
#endif
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Arnd Bergmann | 148 | 30.08% | 2 | 10.53% |
Thomas Petazzoni | 85 | 17.28% | 1 | 5.26% |
Robin Murphy | 72 | 14.63% | 2 | 10.53% |
Liviu Dudau | 59 | 11.99% | 2 | 10.53% |
Sebastian Andrzej Siewior | 28 | 5.69% | 1 | 5.26% |
Shawn Lin | 25 | 5.08% | 1 | 5.26% |
Thierry Reding | 21 | 4.27% | 2 | 10.53% |
Grant C. Likely | 19 | 3.86% | 3 | 15.79% |
Benjamin Herrenschmidt | 14 | 2.85% | 1 | 5.26% |
Marc Zyngier | 13 | 2.64% | 1 | 5.26% |
Yijing Wang | 6 | 1.22% | 1 | 5.26% |
John Crispin | 1 | 0.20% | 1 | 5.26% |
Murali Karicheri | 1 | 0.20% | 1 | 5.26% |
Total | 492 | 100.00% | 19 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.