#include <linux/module.h>
#include <linux/firmware.h>
#include "mt76x02.h"
#include "mt76x02_mcu.h"
#include "mt76x02_usb.h"
#define MT_CMD_HDR_LEN …
#define MT_FCE_DMA_ADDR …
#define MT_FCE_DMA_LEN …
#define MT_TX_CPU_FROM_FCE_CPU_DESC_IDX …
static void
mt76x02u_multiple_mcu_reads(struct mt76_dev *dev, u8 *data, int len)
{ … }
static int mt76x02u_mcu_wait_resp(struct mt76_dev *dev, u8 seq)
{ … }
static int
__mt76x02u_mcu_send_msg(struct mt76_dev *dev, struct sk_buff *skb,
int cmd, bool wait_resp)
{ … }
static int
mt76x02u_mcu_send_msg(struct mt76_dev *dev, int cmd, const void *data,
int len, bool wait_resp)
{ … }
static inline void skb_put_le32(struct sk_buff *skb, u32 val)
{ … }
static int
mt76x02u_mcu_wr_rp(struct mt76_dev *dev, u32 base,
const struct mt76_reg_pair *data, int n)
{ … }
static int
mt76x02u_mcu_rd_rp(struct mt76_dev *dev, u32 base,
struct mt76_reg_pair *data, int n)
{ … }
void mt76x02u_mcu_fw_reset(struct mt76x02_dev *dev)
{ … }
EXPORT_SYMBOL_GPL(…);
static int
__mt76x02u_mcu_fw_send_data(struct mt76x02_dev *dev, u8 *data,
const void *fw_data, int len, u32 dst_addr)
{ … }
int mt76x02u_mcu_fw_send_data(struct mt76x02_dev *dev, const void *data,
int data_len, u32 max_payload, u32 offset)
{ … }
EXPORT_SYMBOL_GPL(…);
void mt76x02u_init_mcu(struct mt76_dev *dev)
{ … }
EXPORT_SYMBOL_GPL(…);
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;