#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/usb.h>
#include "mt7601u.h"
#include "usb.h"
#include "trace.h"
static const struct usb_device_id mt7601u_device_table[] = …;
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)
{ … }
static u32 __mt7601u_rr(struct mt7601u_dev *dev, u32 offset)
{ … }
u32 mt7601u_rr(struct mt7601u_dev *dev, u32 offset)
{ … }
static int __mt7601u_vendor_single_wr(struct mt7601u_dev *dev, const u8 req,
const u16 offset, const u32 val)
{ … }
int mt7601u_vendor_single_wr(struct mt7601u_dev *dev, const u8 req,
const u16 offset, const u32 val)
{ … }
void mt7601u_wr(struct mt7601u_dev *dev, u32 offset, u32 val)
{ … }
u32 mt7601u_rmw(struct mt7601u_dev *dev, u32 offset, u32 mask, u32 val)
{ … }
u32 mt7601u_rmc(struct mt7601u_dev *dev, u32 offset, u32 mask, u32 val)
{ … }
void mt7601u_wr_copy(struct mt7601u_dev *dev, u32 offset,
const void *data, int len)
{ … }
void mt7601u_addr_wr(struct mt7601u_dev *dev, const u32 offset, const u8 *addr)
{ … }
static int mt7601u_assign_pipes(struct usb_interface *usb_intf,
struct mt7601u_dev *dev)
{ … }
static int mt7601u_probe(struct usb_interface *usb_intf,
const struct usb_device_id *id)
{ … }
static void mt7601u_disconnect(struct usb_interface *usb_intf)
{ … }
static int mt7601u_suspend(struct usb_interface *usb_intf, pm_message_t state)
{ … }
static int mt7601u_resume(struct usb_interface *usb_intf)
{ … }
MODULE_DEVICE_TABLE(usb, mt7601u_device_table);
MODULE_FIRMWARE(…);
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
static struct usb_driver mt7601u_driver = …;
module_usb_driver(…) …;