xref: /linux/drivers/net/wireless/mediatek/mt76/mt76x02_usb.h (revision 48dea9a700c8728cc31a1dd44588b97578de86ee)
1 /* SPDX-License-Identifier: ISC */
2 /*
3  * Copyright (C) 2018 Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
4  */
5 
6 #ifndef __MT76x02_USB_H
7 #define __MT76x02_USB_H
8 
9 #include "mt76x02.h"
10 
11 int mt76x02u_mac_start(struct mt76x02_dev *dev);
12 void mt76x02u_init_mcu(struct mt76_dev *dev);
13 void mt76x02u_mcu_fw_reset(struct mt76x02_dev *dev);
14 int mt76x02u_mcu_fw_send_data(struct mt76x02_dev *dev, const void *data,
15 			      int data_len, u32 max_payload, u32 offset);
16 
17 int mt76x02u_skb_dma_info(struct sk_buff *skb, int port, u32 flags);
18 int mt76x02u_tx_prepare_skb(struct mt76_dev *mdev, void *data,
19 			    enum mt76_txq_id qid, struct mt76_wcid *wcid,
20 			    struct ieee80211_sta *sta,
21 			    struct mt76_tx_info *tx_info);
22 void mt76x02u_tx_complete_skb(struct mt76_dev *mdev, enum mt76_txq_id qid,
23 			      struct mt76_queue_entry *e);
24 void mt76x02u_init_beacon_config(struct mt76x02_dev *dev);
25 void mt76x02u_exit_beacon_config(struct mt76x02_dev *dev);
26 #endif /* __MT76x02_USB_H */
27