linux/drivers/pci/of_property.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * Copyright (C) 2022-2023, Advanced Micro Devices, Inc.
 */

#include <linux/pci.h>
#include <linux/of.h>
#include <linux/of_irq.h>
#include <linux/bitfield.h>
#include <linux/bits.h>
#include "pci.h"

#define OF_PCI_ADDRESS_CELLS
#define OF_PCI_SIZE_CELLS
#define OF_PCI_MAX_INT_PIN

struct of_pci_addr_pair {};

/*
 * Each entry in the ranges table is a tuple containing the child address,
 * the parent address, and the size of the region in the child address space.
 * Thus, for PCI, in each entry parent address is an address on the primary
 * side and the child address is the corresponding address on the secondary
 * side.
 */
struct of_pci_range {};

#define OF_PCI_ADDR_SPACE_IO
#define OF_PCI_ADDR_SPACE_MEM32
#define OF_PCI_ADDR_SPACE_MEM64

#define OF_PCI_ADDR_FIELD_NONRELOC
#define OF_PCI_ADDR_FIELD_SS
#define OF_PCI_ADDR_FIELD_PREFETCH
#define OF_PCI_ADDR_FIELD_BUS
#define OF_PCI_ADDR_FIELD_DEV
#define OF_PCI_ADDR_FIELD_FUNC
#define OF_PCI_ADDR_FIELD_REG

enum of_pci_prop_compatible {};

static void of_pci_set_address(struct pci_dev *pdev, u32 *prop, u64 addr,
			       u32 reg_num, u32 flags, bool reloc)
{}

static int of_pci_get_addr_flags(struct resource *res, u32 *flags)
{}

static int of_pci_prop_bus_range(struct pci_dev *pdev,
				 struct of_changeset *ocs,
				 struct device_node *np)
{}

static int of_pci_prop_ranges(struct pci_dev *pdev, struct of_changeset *ocs,
			      struct device_node *np)
{}

static int of_pci_prop_reg(struct pci_dev *pdev, struct of_changeset *ocs,
			   struct device_node *np)
{}

static int of_pci_prop_interrupts(struct pci_dev *pdev,
				  struct of_changeset *ocs,
				  struct device_node *np)
{}

static int of_pci_prop_intr_ctrl(struct pci_dev *pdev, struct of_changeset *ocs,
				 struct device_node *np)
{}

static int of_pci_prop_intr_map(struct pci_dev *pdev, struct of_changeset *ocs,
				struct device_node *np)
{}

static int of_pci_prop_compatible(struct pci_dev *pdev,
				  struct of_changeset *ocs,
				  struct device_node *np)
{}

int of_pci_add_properties(struct pci_dev *pdev, struct of_changeset *ocs,
			  struct device_node *np)
{}