xref: /kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt76x2/mac.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt76x2/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: ISC */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2016 Felix Fietkau <nbd@nbd.name>
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#ifndef __MT76x2_MAC_H
78c2ecf20Sopenharmony_ci#define __MT76x2_MAC_H
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#include "mt76x2.h"
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_cistruct mt76x02_dev;
128c2ecf20Sopenharmony_cistruct mt76x2_sta;
138c2ecf20Sopenharmony_cistruct mt76x02_vif;
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_civoid mt76x2_mac_stop(struct mt76x02_dev *dev, bool force);
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_cistatic inline void mt76x2_mac_resume(struct mt76x02_dev *dev)
188c2ecf20Sopenharmony_ci{
198c2ecf20Sopenharmony_ci	mt76_wr(dev, MT_MAC_SYS_CTRL,
208c2ecf20Sopenharmony_ci		MT_MAC_SYS_CTRL_ENABLE_TX |
218c2ecf20Sopenharmony_ci		MT_MAC_SYS_CTRL_ENABLE_RX);
228c2ecf20Sopenharmony_ci}
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci#endif
25

Indexes created Thu Nov 07 10:32:03 CST 2024