linux/drivers/fpga/dfl-pci.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Driver for FPGA Device Feature List (DFL) PCIe device
 *
 * Copyright (C) 2017-2018 Intel Corporation, Inc.
 *
 * Authors:
 *   Zhang Yi <[email protected]>
 *   Xiao Guangrong <[email protected]>
 *   Joseph Grecco <[email protected]>
 *   Enno Luebbers <[email protected]>
 *   Tim Whisonant <[email protected]>
 *   Ananda Ravuri <[email protected]>
 *   Henry Mitchel <[email protected]>
 */

#include <linux/pci.h>
#include <linux/dma-mapping.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/stddef.h>
#include <linux/errno.h>

#include "dfl.h"

#define DRV_VERSION
#define DRV_NAME

#define PCI_VSEC_ID_INTEL_DFLS

#define PCI_VNDR_DFLS_CNT
#define PCI_VNDR_DFLS_RES

#define PCI_VNDR_DFLS_RES_BAR_MASK
#define PCI_VNDR_DFLS_RES_OFF_MASK

struct cci_drvdata {};

static void __iomem *cci_pci_ioremap_bar0(struct pci_dev *pcidev)
{}

static int cci_pci_alloc_irq(struct pci_dev *pcidev)
{}

static void cci_pci_free_irq(struct pci_dev *pcidev)
{}

/* PCI Device ID */
#define PCIE_DEVICE_ID_PF_INT_5_X
#define PCIE_DEVICE_ID_PF_INT_6_X
#define PCIE_DEVICE_ID_PF_DSC_1_X
#define PCIE_DEVICE_ID_INTEL_PAC_N3000
#define PCIE_DEVICE_ID_INTEL_PAC_D5005
#define PCIE_DEVICE_ID_SILICOM_PAC_N5010
#define PCIE_DEVICE_ID_SILICOM_PAC_N5011
#define PCIE_DEVICE_ID_INTEL_DFL
/* PCI Subdevice ID for PCIE_DEVICE_ID_INTEL_DFL */
#define PCIE_SUBDEVICE_ID_INTEL_D5005
#define PCIE_SUBDEVICE_ID_INTEL_N6000
#define PCIE_SUBDEVICE_ID_INTEL_N6001
#define PCIE_SUBDEVICE_ID_INTEL_C6100

/* VF Device */
#define PCIE_DEVICE_ID_VF_INT_5_X
#define PCIE_DEVICE_ID_VF_INT_6_X
#define PCIE_DEVICE_ID_VF_DSC_1_X
#define PCIE_DEVICE_ID_INTEL_PAC_D5005_VF
#define PCIE_DEVICE_ID_INTEL_DFL_VF

static struct pci_device_id cci_pcie_id_tbl[] =;
MODULE_DEVICE_TABLE(pci, cci_pcie_id_tbl);

static int cci_init_drvdata(struct pci_dev *pcidev)
{}

static void cci_remove_feature_devs(struct pci_dev *pcidev)
{}

static int *cci_pci_create_irq_table(struct pci_dev *pcidev, unsigned int nvec)
{}

static int find_dfls_by_vsec(struct pci_dev *pcidev, struct dfl_fpga_enum_info *info)
{}

/* default method of finding dfls starting at offset 0 of bar 0 */
static int find_dfls_by_default(struct pci_dev *pcidev,
				struct dfl_fpga_enum_info *info)
{}

/* enumerate feature devices under pci device */
static int cci_enumerate_feature_devs(struct pci_dev *pcidev)
{}

static
int cci_pci_probe(struct pci_dev *pcidev, const struct pci_device_id *pcidevid)
{}

static int cci_pci_sriov_configure(struct pci_dev *pcidev, int num_vfs)
{}

static void cci_pci_remove(struct pci_dev *pcidev)
{}

static struct pci_driver cci_pci_driver =;

module_pci_driver();

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();