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