developer | 0f312e8 | 2022-11-01 12:31:52 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: ISC */ |
| 2 | /* |
| 3 | * Copyright (C) 2016 Felix Fietkau <nbd@nbd.name> |
| 4 | */ |
| 5 | |
| 6 | #ifndef __MT76x2_MAC_H |
| 7 | #define __MT76x2_MAC_H |
| 8 | |
| 9 | #include "mt76x2.h" |
| 10 | |
| 11 | struct mt76x02_dev; |
| 12 | struct mt76x2_sta; |
| 13 | struct mt76x02_vif; |
| 14 | |
| 15 | void mt76x2_mac_stop(struct mt76x02_dev *dev, bool force); |
| 16 | |
| 17 | static inline void mt76x2_mac_resume(struct mt76x02_dev *dev) |
| 18 | { |
| 19 | mt76_wr(dev, MT_MAC_SYS_CTRL, |
| 20 | MT_MAC_SYS_CTRL_ENABLE_TX | |
| 21 | MT_MAC_SYS_CTRL_ENABLE_RX); |
| 22 | } |
| 23 | |
| 24 | #endif |