drm/rockchip: Don't change hdmi reference clock rate
[drm/drm-misc.git] / arch / arm64 / kernel / pci.c
blobfd9a7bed83ce8ce85603b4b14aa91fecf695b02d
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * Code borrowed from powerpc/kernel/pci-common.c
5 * Copyright (C) 2003 Anton Blanchard <anton@au.ibm.com>, IBM
6 * Copyright (C) 2014 ARM Ltd.
7 */
9 #include <linux/pci.h>
12 * raw_pci_read/write - Platform-specific PCI config space access.
14 int raw_pci_read(unsigned int domain, unsigned int bus,
15 unsigned int devfn, int reg, int len, u32 *val)
17 struct pci_bus *b = pci_find_bus(domain, bus);
19 if (!b)
20 return PCIBIOS_DEVICE_NOT_FOUND;
21 return b->ops->read(b, devfn, reg, len, val);
24 int raw_pci_write(unsigned int domain, unsigned int bus,
25 unsigned int devfn, int reg, int len, u32 val)
27 struct pci_bus *b = pci_find_bus(domain, bus);
29 if (!b)
30 return PCIBIOS_DEVICE_NOT_FOUND;
31 return b->ops->write(b, devfn, reg, len, val);
34 #ifdef CONFIG_NUMA
36 int pcibus_to_node(struct pci_bus *bus)
38 return dev_to_node(&bus->dev);
40 EXPORT_SYMBOL(pcibus_to_node);
42 #endif