linux/drivers/net/can/ctucanfd/ctucanfd_pci.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*******************************************************************************
 *
 * CTU CAN FD IP Core
 *
 * Copyright (C) 2015-2018 Ondrej Ille <[email protected]> FEE CTU
 * Copyright (C) 2018-2021 Ondrej Ille <[email protected]> self-funded
 * Copyright (C) 2018-2019 Martin Jerabek <[email protected]> FEE CTU
 * Copyright (C) 2018-2022 Pavel Pisa <[email protected]> FEE CTU/self-funded
 *
 * Project advisors:
 *     Jiri Novak <[email protected]>
 *     Pavel Pisa <[email protected]>
 *
 * Department of Measurement         (http://meas.fel.cvut.cz/)
 * Faculty of Electrical Engineering (http://www.fel.cvut.cz)
 * Czech Technical University        (http://www.cvut.cz/)
 ******************************************************************************/

#include <linux/module.h>
#include <linux/pci.h>

#include "ctucanfd.h"

#ifndef PCI_DEVICE_DATA
#define PCI_DEVICE_DATA
#endif

#ifndef PCI_VENDOR_ID_TEDIA
#define PCI_VENDOR_ID_TEDIA
#endif

#ifndef PCI_DEVICE_ID_TEDIA_CTUCAN_VER21
#define PCI_DEVICE_ID_TEDIA_CTUCAN_VER21
#endif

#define CTUCAN_BAR0_CTUCAN_ID
#define CTUCAN_BAR0_CRA_BASE
#define CYCLONE_IV_CRA_A2P_IE

#define CTUCAN_WITHOUT_CTUCAN_ID
#define CTUCAN_WITH_CTUCAN_ID

struct ctucan_pci_board_data {};

static struct ctucan_pci_board_data *ctucan_pci_get_bdata(struct pci_dev *pdev)
{}

static void ctucan_pci_set_drvdata(struct device *dev,
				   struct net_device *ndev)
{}

/**
 * ctucan_pci_probe - PCI registration call
 * @pdev:	Handle to the pci device structure
 * @ent:	Pointer to the entry from ctucan_pci_tbl
 *
 * This function does all the memory allocation and registration for the CAN
 * device.
 *
 * Return: 0 on success and failure value on error
 */
static int ctucan_pci_probe(struct pci_dev *pdev,
			    const struct pci_device_id *ent)
{}

/**
 * ctucan_pci_remove - Unregister the device after releasing the resources
 * @pdev:	Handle to the pci device structure
 *
 * This function frees all the resources allocated to the device.
 * Return: 0 always
 */
static void ctucan_pci_remove(struct pci_dev *pdev)
{}

static SIMPLE_DEV_PM_OPS(ctucan_pci_pm_ops, ctucan_suspend, ctucan_resume);

static const struct pci_device_id ctucan_pci_tbl[] =;

static struct pci_driver ctucan_pci_driver =;

module_pci_driver();

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