linux/drivers/net/wireless/mediatek/mt76/mt7915/mmio.c

// SPDX-License-Identifier: ISC
/* Copyright (C) 2020 MediaTek Inc. */

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/rtnetlink.h>
#include <linux/pci.h>

#include "mt7915.h"
#include "mac.h"
#include "mcu.h"
#include "../trace.h"
#include "../dma.h"

static bool wed_enable;
module_param(wed_enable, bool, 0644);
MODULE_PARM_DESC();

static const u32 mt7915_reg[] =;

static const u32 mt7916_reg[] =;

static const u32 mt7986_reg[] =;

static const u32 mt7915_offs[] =;

static const u32 mt7916_offs[] =;

static const struct mt76_connac_reg_map mt7915_reg_map[] =;

static const struct mt76_connac_reg_map mt7916_reg_map[] =;

static const struct mt76_connac_reg_map mt7986_reg_map[] =;

static u32 mt7915_reg_map_l1(struct mt7915_dev *dev, u32 addr)
{}

static u32 mt7915_reg_map_l2(struct mt7915_dev *dev, u32 addr)
{}

static u32 __mt7915_reg_addr(struct mt7915_dev *dev, u32 addr)
{}

static u32 __mt7915_reg_remap_addr(struct mt7915_dev *dev, u32 addr)
{}

void mt7915_memcpy_fromio(struct mt7915_dev *dev, void *buf, u32 offset,
			  size_t len)
{}

static u32 mt7915_rr(struct mt76_dev *mdev, u32 offset)
{}

static void mt7915_wr(struct mt76_dev *mdev, u32 offset, u32 val)
{}

static u32 mt7915_rmw(struct mt76_dev *mdev, u32 offset, u32 mask, u32 val)
{}

#ifdef CONFIG_NET_MEDIATEK_SOC_WED
static void mt7915_mmio_wed_update_rx_stats(struct mtk_wed_device *wed,
					    struct mtk_wed_wo_rx_stats *stats)
{}

static int mt7915_mmio_wed_reset(struct mtk_wed_device *wed)
{}
#endif

int mt7915_mmio_wed_init(struct mt7915_dev *dev, void *pdev_ptr,
			 bool pci, int *irq)
{}

static int mt7915_mmio_init(struct mt76_dev *mdev,
			    void __iomem *mem_base,
			    u32 device_id)
{}

void mt7915_dual_hif_set_irq_mask(struct mt7915_dev *dev,
				  bool write_reg,
				  u32 clear, u32 set)
{}

static void mt7915_rx_poll_complete(struct mt76_dev *mdev,
				    enum mt76_rxq_id q)
{}

/* TODO: support 2/4/6/8 MSI-X vectors */
static void mt7915_irq_tasklet(struct tasklet_struct *t)
{}

irqreturn_t mt7915_irq_handler(int irq, void *dev_instance)
{}

struct mt7915_dev *mt7915_mmio_probe(struct device *pdev,
				     void __iomem *mem_base, u32 device_id)
{}

static int __init mt7915_init(void)
{}

static void __exit mt7915_exit(void)
{}

module_init();
module_exit(mt7915_exit);
MODULE_DESCRIPTION();
MODULE_LICENSE();