cregit-Linux how code gets into the kernel

Release 4.10 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 bergmannarnd 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 herrenschmidtbenjamin herrenschmidt1466.67%150.00%
arnd bergmannarnd bergmann733.33%150.00%
Total21100.00%2100.00%


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

Contributors

PersonTokensPropCommitsCommitProp
arnd bergmannarnd bergmann850.00%150.00%
thierry redingthierry reding850.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 bergmannarnd 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 redingthierry reding1361.90%150.00%
arnd bergmannarnd 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 dudauliviu 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 murphyrobin 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 linshawn lin16100.00%1100.00%
Total16100.00%1100.00%


static inline void of_pci_check_probe_only(void) { }

Contributors

PersonTokensPropCommitsCommitProp
marc zyngiermarc 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 bergmannarnd bergmann33100.00%1100.00%
Total33100.00%1100.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

PersonTokensPropCommitsCommitProp
thomas petazzonithomas petazzoni1593.75%150.00%
wang yijingwang yijing16.25%150.00%
Total16100.00%2100.00%


static inline void of_pci_msi_chip_remove(struct msi_controller *chip) { }

Contributors

PersonTokensPropCommitsCommitProp
thomas petazzonithomas petazzoni1090.91%150.00%
wang yijingwang yijing19.09%150.00%
Total11100.00%2100.00%


static inline struct msi_controller * of_pci_find_msi_chip_by_node(struct device_node *of_node) { return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
thomas petazzonithomas petazzoni1694.12%150.00%
wang yijingwang yijing15.88%150.00%
Total17100.00%2100.00%

#endif #endif

Overall Contributors

PersonTokensPropCommitsCommitProp
arnd bergmannarnd bergmann14830.08%210.53%
thomas petazzonithomas petazzoni8517.28%15.26%
robin murphyrobin murphy7214.63%210.53%
liviu dudauliviu dudau5911.99%210.53%
sebastian andrzej siewiorsebastian andrzej siewior285.69%15.26%
shawn linshawn lin255.08%15.26%
thierry redingthierry reding214.27%210.53%
grant likelygrant likely193.86%315.79%
benjamin herrenschmidtbenjamin herrenschmidt142.85%15.26%
marc zyngiermarc zyngier132.64%15.26%
wang yijingwang yijing61.22%15.26%
murali karicherimurali karicheri10.20%15.26%
john crispinjohn crispin10.20%15.26%
Total492100.00%19100.00%
Directory: include/linux
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.