1 /*
2  * Copyright (C) 2018 Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
3  *
4  * Permission to use, copy, modify, and/or distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15  */
16 
17 #ifndef __MT76x02_USB_H
18 #define __MT76x02_USB_H
19 
20 #include "mt76x02.h"
21 
22 void mt76x02u_init_mcu(struct mt76_dev *dev);
23 void mt76x02u_mcu_fw_reset(struct mt76x02_dev *dev);
24 int mt76x02u_mcu_fw_send_data(struct mt76x02_dev *dev, const void *data,
25 			      int data_len, u32 max_payload, u32 offset);
26 
27 int mt76x02u_skb_dma_info(struct sk_buff *skb, int port, u32 flags);
28 int mt76x02u_tx_prepare_skb(struct mt76_dev *mdev, void *data,
29 			    enum mt76_txq_id qid, struct mt76_wcid *wcid,
30 			    struct ieee80211_sta *sta,
31 			    struct mt76_tx_info *tx_info);
32 void mt76x02u_tx_complete_skb(struct mt76_dev *mdev, enum mt76_txq_id qid,
33 			      struct mt76_queue_entry *e);
34 void mt76x02u_init_beacon_config(struct mt76x02_dev *dev);
35 void mt76x02u_exit_beacon_config(struct mt76x02_dev *dev);
36 #endif /* __MT76x02_USB_H */
37