#ifndef __MT7601U_USB_H
#define __MT7601U_USB_H
#include "mt7601u.h"
#define MT7601U_FIRMWARE …
#define MT_VEND_REQ_MAX_RETRY …
#define MT_VEND_REQ_TOUT_MS …
#define MT_VEND_DEV_MODE_RESET …
#define MT_VEND_BUF …
enum mt_vendor_req { … };
enum mt_usb_ep_in { … };
enum mt_usb_ep_out { … };
static inline struct usb_device *mt7601u_to_usb_dev(struct mt7601u_dev *mt7601u)
{ … }
static inline bool mt7601u_urb_has_error(struct urb *urb)
{ … }
bool mt7601u_usb_alloc_buf(struct mt7601u_dev *dev, size_t len,
struct mt7601u_dma_buf *buf);
void mt7601u_usb_free_buf(struct mt7601u_dev *dev, struct mt7601u_dma_buf *buf);
int mt7601u_usb_submit_buf(struct mt7601u_dev *dev, int dir, int ep_idx,
struct mt7601u_dma_buf *buf, gfp_t gfp,
usb_complete_t complete_fn, void *context);
void mt7601u_complete_urb(struct urb *urb);
int mt7601u_vendor_request(struct mt7601u_dev *dev, const u8 req,
const u8 direction, const u16 val, const u16 offset,
void *buf, const size_t buflen);
void mt7601u_vendor_reset(struct mt7601u_dev *dev);
int mt7601u_vendor_single_wr(struct mt7601u_dev *dev, const u8 req,
const u16 offset, const u32 val);
#endif