mt7921.h (1d8efc741df80be940e1584b5ac613dc03d58bd6) mt7921.h (0da3c795d07bf005d4b0be8d6cdc4714aa51a988)
1/* SPDX-License-Identifier: ISC */
2/* Copyright (C) 2020 MediaTek Inc. */
3
4#ifndef __MT7921_H
5#define __MT7921_H
6
7#include <linux/interrupt.h>
8#include <linux/ktime.h>
1/* SPDX-License-Identifier: ISC */
2/* Copyright (C) 2020 MediaTek Inc. */
3
4#ifndef __MT7921_H
5#define __MT7921_H
6
7#include <linux/interrupt.h>
8#include <linux/ktime.h>
9#include "../mt76_connac.h"
9#include "../mt76_connac_mcu.h"
10#include "regs.h"
11
12#define MT7921_MAX_INTERFACES 4
13#define MT7921_MAX_WMM_SETS 4
14#define MT7921_WTBL_SIZE 20
15#define MT7921_WTBL_RESERVED (MT7921_WTBL_SIZE - 1)
16#define MT7921_WTBL_STA (MT7921_WTBL_RESERVED - \
17 MT7921_MAX_INTERFACES)

--- 141 unchanged lines hidden (view full) ---

159
160 spinlock_t token_lock;
161 int token_count;
162 struct idr token;
163
164 u8 fw_debug;
165
166 struct mt76_connac_pm pm;
10#include "regs.h"
11
12#define MT7921_MAX_INTERFACES 4
13#define MT7921_MAX_WMM_SETS 4
14#define MT7921_WTBL_SIZE 20
15#define MT7921_WTBL_RESERVED (MT7921_WTBL_SIZE - 1)
16#define MT7921_WTBL_STA (MT7921_WTBL_RESERVED - \
17 MT7921_MAX_INTERFACES)

--- 141 unchanged lines hidden (view full) ---

159
160 spinlock_t token_lock;
161 int token_count;
162 struct idr token;
163
164 u8 fw_debug;
165
166 struct mt76_connac_pm pm;
167 struct mt76_connac_coredump coredump;
167};
168
169enum {
170 MT_LMAC_AC00,
171 MT_LMAC_AC01,
172 MT_LMAC_AC02,
173 MT_LMAC_AC03,
174 MT_LMAC_ALTX0 = 0x10,

--- 157 unchanged lines hidden (view full) ---

332int mt7921_mcu_fw_pmctrl(struct mt7921_dev *dev);
333void mt7921_pm_wake_work(struct work_struct *work);
334void mt7921_pm_power_save_work(struct work_struct *work);
335bool mt7921_wait_for_mcu_init(struct mt7921_dev *dev);
336int mt7921_mac_set_beacon_filter(struct mt7921_phy *phy,
337 struct ieee80211_vif *vif,
338 bool enable);
339void mt7921_pm_interface_iter(void *priv, u8 *mac, struct ieee80211_vif *vif);
168};
169
170enum {
171 MT_LMAC_AC00,
172 MT_LMAC_AC01,
173 MT_LMAC_AC02,
174 MT_LMAC_AC03,
175 MT_LMAC_ALTX0 = 0x10,

--- 157 unchanged lines hidden (view full) ---

333int mt7921_mcu_fw_pmctrl(struct mt7921_dev *dev);
334void mt7921_pm_wake_work(struct work_struct *work);
335void mt7921_pm_power_save_work(struct work_struct *work);
336bool mt7921_wait_for_mcu_init(struct mt7921_dev *dev);
337int mt7921_mac_set_beacon_filter(struct mt7921_phy *phy,
338 struct ieee80211_vif *vif,
339 bool enable);
340void mt7921_pm_interface_iter(void *priv, u8 *mac, struct ieee80211_vif *vif);
341void mt7921_coredump_work(struct work_struct *work);
340#endif
342#endif