2 * Copyright (C) 2018 Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
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.
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.
20 #include <linux/device.h>
25 #define MT7612U_EEPROM_SIZE 512
27 #define MT_USB_AGGR_SIZE_LIMIT 21 /* 1024B unit */
28 #define MT_USB_AGGR_TIMEOUT 0x80 /* 33ns unit */
30 extern const struct ieee80211_ops mt76x2u_ops
;
32 int mt76x2u_register_device(struct mt76x02_dev
*dev
);
33 int mt76x2u_init_hardware(struct mt76x02_dev
*dev
);
34 void mt76x2u_cleanup(struct mt76x02_dev
*dev
);
35 void mt76x2u_stop_hw(struct mt76x02_dev
*dev
);
37 int mt76x2u_mac_reset(struct mt76x02_dev
*dev
);
38 int mt76x2u_mac_start(struct mt76x02_dev
*dev
);
39 int mt76x2u_mac_stop(struct mt76x02_dev
*dev
);
41 int mt76x2u_phy_set_channel(struct mt76x02_dev
*dev
,
42 struct cfg80211_chan_def
*chandef
);
43 void mt76x2u_phy_calibrate(struct work_struct
*work
);
45 void mt76x2u_mcu_complete_urb(struct urb
*urb
);
46 int mt76x2u_mcu_init(struct mt76x02_dev
*dev
);
47 int mt76x2u_mcu_fw_init(struct mt76x02_dev
*dev
);
49 int mt76x2u_alloc_queues(struct mt76x02_dev
*dev
);
50 void mt76x2u_queues_deinit(struct mt76x02_dev
*dev
);
51 void mt76x2u_stop_queues(struct mt76x02_dev
*dev
);
52 int mt76x2u_skb_dma_info(struct sk_buff
*skb
, enum dma_msg_port port
,
55 #endif /* __MT76x2U_H */