Contributors: 7
Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
Tomasz Nowicki |
72 |
43.90% |
1 |
12.50% |
Hanjun Guo |
58 |
35.37% |
1 |
12.50% |
Ganapatrao Kulkarni |
18 |
10.98% |
1 |
12.50% |
Liviu Dudau |
7 |
4.27% |
1 |
12.50% |
Catalin Marinas |
4 |
2.44% |
1 |
12.50% |
Linus Torvalds (pre-git) |
3 |
1.83% |
2 |
25.00% |
Thomas Gleixner |
2 |
1.22% |
1 |
12.50% |
Total |
164 |
|
8 |
|
123456789101112131415161718192021222324252627282930313233343536373839404142
// SPDX-License-Identifier: GPL-2.0-only
/*
* Code borrowed from powerpc/kernel/pci-common.c
*
* Copyright (C) 2003 Anton Blanchard <anton@au.ibm.com>, IBM
* Copyright (C) 2014 ARM Ltd.
*/
#include <linux/pci.h>
/*
* raw_pci_read/write - Platform-specific PCI config space access.
*/
int raw_pci_read(unsigned int domain, unsigned int bus,
unsigned int devfn, int reg, int len, u32 *val)
{
struct pci_bus *b = pci_find_bus(domain, bus);
if (!b)
return PCIBIOS_DEVICE_NOT_FOUND;
return b->ops->read(b, devfn, reg, len, val);
}
int raw_pci_write(unsigned int domain, unsigned int bus,
unsigned int devfn, int reg, int len, u32 val)
{
struct pci_bus *b = pci_find_bus(domain, bus);
if (!b)
return PCIBIOS_DEVICE_NOT_FOUND;
return b->ops->write(b, devfn, reg, len, val);
}
#ifdef CONFIG_NUMA
int pcibus_to_node(struct pci_bus *bus)
{
return dev_to_node(&bus->dev);
}
EXPORT_SYMBOL(pcibus_to_node);
#endif