linux/drivers/media/usb/as102/as102_usb_drv.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Abilis Systems Single DVB-T Receiver
 * Copyright (C) 2008 Pierrick Hascoet <[email protected]>
 * Copyright (C) 2010 Devin Heitmueller <[email protected]>
 */
#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[] =;

/* Note that this table must always have the same number of entries as the
   as102_usb_id_table struct */
static const char * const as102_device_names[] =;

/* eLNA configuration: devices built on the reference design work best
   with 0xA0, while custom designs seem to require 0xC0 */
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);