linux/drivers/net/wireless/mediatek/mt7601u/mcu.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (C) 2014 Felix Fietkau <[email protected]>
 * Copyright (C) 2015 Jakub Kicinski <[email protected]>
 */

#ifndef __MT7601U_MCU_H
#define __MT7601U_MCU_H

struct mt7601u_dev;

/* Register definitions */
#define MT_MCU_RESET_CTL
#define MT_MCU_INT_LEVEL
#define MT_MCU_COM_REG0
#define MT_MCU_COM_REG1
#define MT_MCU_COM_REG2
#define MT_MCU_COM_REG3

#define MT_MCU_IVB_SIZE
#define MT_MCU_DLM_OFFSET

#define MT_MCU_MEMMAP_WLAN
#define MT_MCU_MEMMAP_BBP
#define MT_MCU_MEMMAP_RF

#define INBAND_PACKET_MAX_LEN

enum mcu_cmd {};

enum mcu_function {};

enum mcu_power_mode {};

enum mcu_calibrate {};

int mt7601u_mcu_init(struct mt7601u_dev *dev);
int mt7601u_mcu_cmd_init(struct mt7601u_dev *dev);
void mt7601u_mcu_cmd_deinit(struct mt7601u_dev *dev);

int
mt7601u_mcu_calibrate(struct mt7601u_dev *dev, enum mcu_calibrate cal, u32 val);
int mt7601u_mcu_tssi_read_kick(struct mt7601u_dev *dev, int use_hvga);

#endif