linux/drivers/pci/setup-res.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Support routines for initializing a PCI subsystem
 *
 * Extruded from code written by
 *      Dave Rusling ([email protected])
 *      David Mosberger ([email protected])
 *	David Miller ([email protected])
 *
 * Fixed for multiple PCI buses, 1999 Andrea Arcangeli <[email protected]>
 *
 * Nov 2000, Ivan Kokshaysky <[email protected]>
 *	     Resource sorting
 */

#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/pci.h>
#include <linux/errno.h>
#include <linux/ioport.h>
#include <linux/cache.h>
#include <linux/slab.h>
#include "pci.h"

static void pci_std_update_resource(struct pci_dev *dev, int resno)
{}

void pci_update_resource(struct pci_dev *dev, int resno)
{}

int pci_claim_resource(struct pci_dev *dev, int resource)
{}
EXPORT_SYMBOL();

void pci_disable_bridge_window(struct pci_dev *dev)
{}

/*
 * Generic function that returns a value indicating that the device's
 * original BIOS BAR address was not saved and so is not available for
 * reinstatement.
 *
 * Can be over-ridden by architecture specific code that implements
 * reinstatement functionality rather than leaving it disabled when
 * normal allocation attempts fail.
 */
resource_size_t __weak pcibios_retrieve_fw_addr(struct pci_dev *dev, int idx)
{}

static int pci_revert_fw_address(struct resource *res, struct pci_dev *dev,
		int resno, resource_size_t size)
{}

/*
 * We don't have to worry about legacy ISA devices, so nothing to do here.
 * This is marked as __weak because multiple architectures define it; it should
 * eventually go away.
 */
resource_size_t __weak pcibios_align_resource(void *data,
					      const struct resource *res,
					      resource_size_t size,
					      resource_size_t align)
{}

static int __pci_assign_resource(struct pci_bus *bus, struct pci_dev *dev,
		int resno, resource_size_t size, resource_size_t align)
{}

static int _pci_assign_resource(struct pci_dev *dev, int resno,
				resource_size_t size, resource_size_t min_align)
{}

int pci_assign_resource(struct pci_dev *dev, int resno)
{}
EXPORT_SYMBOL();

int pci_reassign_resource(struct pci_dev *dev, int resno,
			  resource_size_t addsize, resource_size_t min_align)
{}

void pci_release_resource(struct pci_dev *dev, int resno)
{}
EXPORT_SYMBOL();

int pci_resize_resource(struct pci_dev *dev, int resno, int size)
{}
EXPORT_SYMBOL();

int pci_enable_resources(struct pci_dev *dev, int mask)
{}