#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pci.h>
#include "mt7996.h"
#include "mac.h"
#include "../trace.h"
static LIST_HEAD(hif_list);
static DEFINE_SPINLOCK(hif_lock);
static u32 hif_idx;
static const struct pci_device_id mt7996_pci_device_table[] = …;
static const struct pci_device_id mt7996_hif_device_table[] = …;
static struct mt7996_hif *mt7996_pci_get_hif2(u32 idx)
{ … }
static void mt7996_put_hif2(struct mt7996_hif *hif)
{ … }
static struct mt7996_hif *mt7996_pci_init_hif2(struct pci_dev *pdev)
{ … }
static int mt7996_pci_hif2_probe(struct pci_dev *pdev)
{ … }
static int mt7996_pci_probe(struct pci_dev *pdev,
const struct pci_device_id *id)
{ … }
static void mt7996_hif_remove(struct pci_dev *pdev)
{ … }
static void mt7996_pci_remove(struct pci_dev *pdev)
{ … }
struct pci_driver mt7996_hif_driver = …;
struct pci_driver mt7996_pci_driver = …;
MODULE_DEVICE_TABLE(pci, mt7996_pci_device_table);
MODULE_DEVICE_TABLE(pci, mt7996_hif_device_table);
MODULE_FIRMWARE(…);
MODULE_FIRMWARE(…);
MODULE_FIRMWARE(…);
MODULE_FIRMWARE(…);
MODULE_FIRMWARE(…);
MODULE_FIRMWARE(…);
MODULE_FIRMWARE(…);
MODULE_FIRMWARE(…);