Release 4.16 include/linux/of_pci.h
/* SPDX-License-Identifier: GPL-2.0 */
#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;
#if IS_ENABLED(CONFIG_OF) && IS_ENABLED(CONFIG_PCI)
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_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 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_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 IS_ENABLED(CONFIG_OF_IRQ)
int of_irq_parse_and_map_pci(const struct pci_dev *dev, u8 slot, u8 pin);
#else
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 |
Guenter Roeck | 22 | 100.00% | 1 | 100.00% |
Total | 22 | 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
#endif
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Arnd Bergmann | 101 | 26.10% | 2 | 11.11% |
Robin Murphy | 71 | 18.35% | 1 | 5.56% |
Liviu Dudau | 55 | 14.21% | 2 | 11.11% |
Guenter Roeck | 48 | 12.40% | 1 | 5.56% |
Shawn Lin | 25 | 6.46% | 1 | 5.56% |
Thierry Reding | 21 | 5.43% | 2 | 11.11% |
Sebastian Andrzej Siewior | 16 | 4.13% | 1 | 5.56% |
Benjamin Herrenschmidt | 15 | 3.88% | 1 | 5.56% |
Marc Zyngier | 13 | 3.36% | 1 | 5.56% |
Rob Herring | 11 | 2.84% | 1 | 5.56% |
Thomas Petazzoni | 7 | 1.81% | 1 | 5.56% |
Grant C. Likely | 2 | 0.52% | 2 | 11.11% |
Greg Kroah-Hartman | 1 | 0.26% | 1 | 5.56% |
Murali Karicheri | 1 | 0.26% | 1 | 5.56% |
Total | 387 | 100.00% | 18 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.