#include <linux/kernel.h>
#include <linux/of.h>
#include <linux/of_pci.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include "pcie-cadence.h"
#define CDNS_PLAT_CPU_TO_BUS_ADDR …
struct cdns_plat_pcie { … };
struct cdns_plat_pcie_of_data { … };
static const struct of_device_id cdns_plat_pcie_of_match[];
static u64 cdns_plat_cpu_addr_fixup(struct cdns_pcie *pcie, u64 cpu_addr)
{ … }
static const struct cdns_pcie_ops cdns_plat_ops = …;
static int cdns_plat_pcie_probe(struct platform_device *pdev)
{ … }
static void cdns_plat_pcie_shutdown(struct platform_device *pdev)
{ … }
static const struct cdns_plat_pcie_of_data cdns_plat_pcie_host_of_data = …;
static const struct cdns_plat_pcie_of_data cdns_plat_pcie_ep_of_data = …;
static const struct of_device_id cdns_plat_pcie_of_match[] = …;
static struct platform_driver cdns_plat_pcie_driver = …;
builtin_platform_driver(…) …;