linux/drivers/net/wireless/intel/iwlwifi/pcie/drv.c

// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
/*
 * Copyright (C) 2005-2014, 2018-2024 Intel Corporation
 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH
 * Copyright (C) 2016-2017 Intel Deutschland GmbH
 */
#define pr_fmt(fmt)

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

#include "fw/acpi.h"

#include "iwl-trans.h"
#include "iwl-drv.h"
#include "iwl-prph.h"
#include "internal.h"

#define TRANS_CFG_MARKER
#define _IS_A(cfg, _struct)
extern int _invalid_type;
#define _TRANS_CFG_MARKER(cfg)
#define _ASSIGN_CFG(cfg)

#define IWL_PCI_DEVICE(dev, subdev, cfg)

/* Hardware specific file defines the PCI IDs table for that hardware module */
VISIBLE_IF_IWLWIFI_KUNIT const struct pci_device_id iwl_hw_card_ids[] =;
MODULE_DEVICE_TABLE(pci, iwl_hw_card_ids);
EXPORT_SYMBOL_IF_IWLWIFI_KUNIT();

#define _IWL_DEV_INFO(_device, _subdevice, _mac_type, _mac_step, _rf_type, \
		      _rf_id, _rf_step, _no_160, _cores, _cdb, _cfg, _name)

#define IWL_DEV_INFO(_device, _subdevice, _cfg, _name)

VISIBLE_IF_IWLWIFI_KUNIT const struct iwl_dev_info iwl_dev_info_table[] =;
EXPORT_SYMBOL_IF_IWLWIFI_KUNIT();

#if IS_ENABLED(CONFIG_IWLWIFI_KUNIT_TESTS)
const unsigned int iwl_dev_info_table_size =;
EXPORT_SYMBOL_IF_IWLWIFI_KUNIT();
#endif

/*
 * Read rf id and cdb info from prph register and store it
 */
static void get_crf_id(struct iwl_trans *iwl_trans)
{}

/*
 * In case that there is no OTP on the NIC, map the rf id and cdb info
 * from the prph registers.
 */
static int map_crf_id(struct iwl_trans *iwl_trans)
{}

/* PCI registers */
#define PCI_CFG_RETRY_TIMEOUT

VISIBLE_IF_IWLWIFI_KUNIT const struct iwl_dev_info *
iwl_pci_find_dev_info(u16 device, u16 subsystem_device,
		      u16 mac_type, u8 mac_step, u16 rf_type, u8 cdb,
		      u8 jacket, u8 rf_id, u8 no_160, u8 cores, u8 rf_step)
{}
EXPORT_SYMBOL_IF_IWLWIFI_KUNIT();

static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
{}

static void iwl_pci_remove(struct pci_dev *pdev)
{}

#ifdef CONFIG_PM_SLEEP

static int iwl_pci_suspend(struct device *device)
{}

static int iwl_pci_resume(struct device *device)
{}

static const struct dev_pm_ops iwl_dev_pm_ops =;

#define IWL_PM_OPS

#else /* CONFIG_PM_SLEEP */

#define IWL_PM_OPS

#endif /* CONFIG_PM_SLEEP */

static struct pci_driver iwl_pci_driver =;

int __must_check iwl_pci_register_driver(void)
{}

void iwl_pci_unregister_driver(void)
{}