#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/usb.h>
#include "as102_drv.h"
#include "as102_usb_drv.h"
#include "as102_fw.h"
static void as102_usb_disconnect(struct usb_interface *interface);
static int as102_usb_probe(struct usb_interface *interface,
const struct usb_device_id *id);
static int as102_usb_start_stream(struct as102_dev_t *dev);
static void as102_usb_stop_stream(struct as102_dev_t *dev);
static int as102_open(struct inode *inode, struct file *file);
static int as102_release(struct inode *inode, struct file *file);
static const struct usb_device_id as102_usb_id_table[] = …;
static const char * const as102_device_names[] = …;
static uint8_t const as102_elna_cfg[] = …;
struct usb_driver as102_usb_driver = …;
static const struct file_operations as102_dev_fops = …;
static struct usb_class_driver as102_usb_class_driver = …;
static int as102_usb_xfer_cmd(struct as10x_bus_adapter_t *bus_adap,
unsigned char *send_buf, int send_buf_len,
unsigned char *recv_buf, int recv_buf_len)
{ … }
static int as102_send_ep1(struct as10x_bus_adapter_t *bus_adap,
unsigned char *send_buf,
int send_buf_len,
int swap32)
{ … }
static int as102_read_ep2(struct as10x_bus_adapter_t *bus_adap,
unsigned char *recv_buf, int recv_buf_len)
{ … }
static const struct as102_priv_ops_t as102_priv_ops = …;
static int as102_submit_urb_stream(struct as102_dev_t *dev, struct urb *urb)
{ … }
void as102_urb_stream_irq(struct urb *urb)
{ … }
static void as102_free_usb_stream_buffer(struct as102_dev_t *dev)
{ … }
static int as102_alloc_usb_stream_buffer(struct as102_dev_t *dev)
{ … }
static void as102_usb_stop_stream(struct as102_dev_t *dev)
{ … }
static int as102_usb_start_stream(struct as102_dev_t *dev)
{ … }
static void as102_usb_release(struct kref *kref)
{ … }
static void as102_usb_disconnect(struct usb_interface *intf)
{ … }
static int as102_usb_probe(struct usb_interface *intf,
const struct usb_device_id *id)
{ … }
static int as102_open(struct inode *inode, struct file *file)
{ … }
static int as102_release(struct inode *inode, struct file *file)
{ … }
MODULE_DEVICE_TABLE(usb, as102_usb_id_table);