#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/errno.h>
#include <linux/ioport.h>
#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/proc_fs.h>
#include <linux/slab.h>
#include "pci.h"
void pci_add_resource_offset(struct list_head *resources, struct resource *res,
resource_size_t offset)
{ … }
EXPORT_SYMBOL(…);
void pci_add_resource(struct list_head *resources, struct resource *res)
{ … }
EXPORT_SYMBOL(…);
void pci_free_resource_list(struct list_head *resources)
{ … }
EXPORT_SYMBOL(…);
void pci_bus_add_resource(struct pci_bus *bus, struct resource *res,
unsigned int flags)
{ … }
struct resource *pci_bus_resource_n(const struct pci_bus *bus, int n)
{ … }
EXPORT_SYMBOL_GPL(…);
void pci_bus_remove_resource(struct pci_bus *bus, struct resource *res)
{ … }
void pci_bus_remove_resources(struct pci_bus *bus)
{ … }
int devm_request_pci_bus_resources(struct device *dev,
struct list_head *resources)
{ … }
EXPORT_SYMBOL_GPL(…);
static struct pci_bus_region pci_32_bit = …;
#ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT
static struct pci_bus_region pci_64_bit = …;
static struct pci_bus_region pci_high = …;
#endif
static void pci_clip_resource_to_region(struct pci_bus *bus,
struct resource *res,
struct pci_bus_region *region)
{ … }
static int pci_bus_alloc_from_region(struct pci_bus *bus, struct resource *res,
resource_size_t size, resource_size_t align,
resource_size_t min, unsigned long type_mask,
resource_alignf alignf,
void *alignf_data,
struct pci_bus_region *region)
{ … }
int pci_bus_alloc_resource(struct pci_bus *bus, struct resource *res,
resource_size_t size, resource_size_t align,
resource_size_t min, unsigned long type_mask,
resource_alignf alignf,
void *alignf_data)
{ … }
EXPORT_SYMBOL(…);
bool pci_bus_clip_resource(struct pci_dev *dev, int idx)
{ … }
void __weak pcibios_resource_survey_bus(struct pci_bus *bus) { … }
void __weak pcibios_bus_add_device(struct pci_dev *pdev) { … }
void pci_bus_add_device(struct pci_dev *dev)
{ … }
EXPORT_SYMBOL_GPL(…);
void pci_bus_add_devices(const struct pci_bus *bus)
{ … }
EXPORT_SYMBOL(…);
static void __pci_walk_bus(struct pci_bus *top, int (*cb)(struct pci_dev *, void *),
void *userdata, bool locked)
{ … }
void pci_walk_bus(struct pci_bus *top, int (*cb)(struct pci_dev *, void *), void *userdata)
{ … }
EXPORT_SYMBOL_GPL(…);
void pci_walk_bus_locked(struct pci_bus *top, int (*cb)(struct pci_dev *, void *), void *userdata)
{ … }
EXPORT_SYMBOL_GPL(…);
struct pci_bus *pci_bus_get(struct pci_bus *bus)
{ … }
void pci_bus_put(struct pci_bus *bus)
{ … }