mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 12:14:01 +08:00
3e0a4e8580
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 or at your option any later version this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 44 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Richard Fontana <rfontana@redhat.com> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190523091651.032047323@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
75 lines
1.6 KiB
C
75 lines
1.6 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Abilis Systems Single DVB-T Receiver
|
|
* Copyright (C) 2008 Pierrick Hascoet <pierrick.hascoet@abilis.com>
|
|
*/
|
|
|
|
#ifndef _AS102_DRV_H
|
|
#define _AS102_DRV_H
|
|
#include <linux/usb.h>
|
|
#include <media/dvb_demux.h>
|
|
#include <media/dvb_frontend.h>
|
|
#include <media/dmxdev.h>
|
|
#include "as10x_handle.h"
|
|
#include "as10x_cmd.h"
|
|
#include "as102_usb_drv.h"
|
|
|
|
#define DRIVER_FULL_NAME "Abilis Systems as10x usb driver"
|
|
#define DRIVER_NAME "as10x_usb"
|
|
|
|
#define debug as102_debug
|
|
extern struct usb_driver as102_usb_driver;
|
|
extern int elna_enable;
|
|
|
|
#define AS102_DEVICE_MAJOR 192
|
|
|
|
#define AS102_USB_BUF_SIZE 512
|
|
#define MAX_STREAM_URB 32
|
|
|
|
struct as10x_bus_adapter_t {
|
|
struct usb_device *usb_dev;
|
|
/* bus token lock */
|
|
struct mutex lock;
|
|
/* low level interface for bus adapter */
|
|
union as10x_bus_token_t {
|
|
/* usb token */
|
|
struct as10x_usb_token_cmd_t usb;
|
|
} token;
|
|
|
|
/* token cmd xfer id */
|
|
uint16_t cmd_xid;
|
|
|
|
/* as10x command and response for dvb interface*/
|
|
struct as10x_cmd_t *cmd, *rsp;
|
|
|
|
/* bus adapter private ops callback */
|
|
const struct as102_priv_ops_t *ops;
|
|
};
|
|
|
|
struct as102_dev_t {
|
|
const char *name;
|
|
struct as10x_bus_adapter_t bus_adap;
|
|
struct list_head device_entry;
|
|
struct kref kref;
|
|
uint8_t elna_cfg;
|
|
|
|
struct dvb_adapter dvb_adap;
|
|
struct dvb_frontend *dvb_fe;
|
|
struct dvb_demux dvb_dmx;
|
|
struct dmxdev dvb_dmxdev;
|
|
|
|
/* timer handle to trig ts stream download */
|
|
struct timer_list timer_handle;
|
|
|
|
struct mutex sem;
|
|
dma_addr_t dma_addr;
|
|
void *stream;
|
|
int streaming;
|
|
struct urb *stream_urb[MAX_STREAM_URB];
|
|
};
|
|
|
|
int as102_dvb_register(struct as102_dev_t *dev);
|
|
void as102_dvb_unregister(struct as102_dev_t *dev);
|
|
|
|
#endif
|