xref: /linux/drivers/media/usb/as102/as102_usb_drv.h (revision d6317c68f3324e086799e12e4864231bb71829cb)
1*d6317c68SMauro Carvalho Chehab /*
2*d6317c68SMauro Carvalho Chehab  * Abilis Systems Single DVB-T Receiver
3*d6317c68SMauro Carvalho Chehab  * Copyright (C) 2008 Pierrick Hascoet <pierrick.hascoet@abilis.com>
4*d6317c68SMauro Carvalho Chehab  * Copyright (C) 2010 Devin Heitmueller <dheitmueller@kernellabs.com>
5*d6317c68SMauro Carvalho Chehab  *
6*d6317c68SMauro Carvalho Chehab  * This program is free software; you can redistribute it and/or modify
7*d6317c68SMauro Carvalho Chehab  * it under the terms of the GNU General Public License as published by
8*d6317c68SMauro Carvalho Chehab  * the Free Software Foundation; either version 2, or (at your option)
9*d6317c68SMauro Carvalho Chehab  * any later version.
10*d6317c68SMauro Carvalho Chehab  *
11*d6317c68SMauro Carvalho Chehab  * This program is distributed in the hope that it will be useful,
12*d6317c68SMauro Carvalho Chehab  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13*d6317c68SMauro Carvalho Chehab  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14*d6317c68SMauro Carvalho Chehab  * GNU General Public License for more details.
15*d6317c68SMauro Carvalho Chehab  *
16*d6317c68SMauro Carvalho Chehab  * You should have received a copy of the GNU General Public License
17*d6317c68SMauro Carvalho Chehab  * along with this program; if not, write to the Free Software
18*d6317c68SMauro Carvalho Chehab  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19*d6317c68SMauro Carvalho Chehab  */
20*d6317c68SMauro Carvalho Chehab #ifndef _AS102_USB_DRV_H_
21*d6317c68SMauro Carvalho Chehab #define _AS102_USB_DRV_H_
22*d6317c68SMauro Carvalho Chehab 
23*d6317c68SMauro Carvalho Chehab #define AS102_USB_DEVICE_TX_CTRL_CMD	0xF1
24*d6317c68SMauro Carvalho Chehab #define AS102_USB_DEVICE_RX_CTRL_CMD	0xF2
25*d6317c68SMauro Carvalho Chehab 
26*d6317c68SMauro Carvalho Chehab /* define these values to match the supported devices */
27*d6317c68SMauro Carvalho Chehab 
28*d6317c68SMauro Carvalho Chehab /* Abilis system: "TITAN" */
29*d6317c68SMauro Carvalho Chehab #define AS102_REFERENCE_DESIGN		"Abilis Systems DVB-Titan"
30*d6317c68SMauro Carvalho Chehab #define AS102_USB_DEVICE_VENDOR_ID	0x1BA6
31*d6317c68SMauro Carvalho Chehab #define AS102_USB_DEVICE_PID_0001	0x0001
32*d6317c68SMauro Carvalho Chehab 
33*d6317c68SMauro Carvalho Chehab /* PCTV Systems: PCTV picoStick (74e) */
34*d6317c68SMauro Carvalho Chehab #define AS102_PCTV_74E			"PCTV Systems picoStick (74e)"
35*d6317c68SMauro Carvalho Chehab #define PCTV_74E_USB_VID		0x2013
36*d6317c68SMauro Carvalho Chehab #define PCTV_74E_USB_PID		0x0246
37*d6317c68SMauro Carvalho Chehab 
38*d6317c68SMauro Carvalho Chehab /* Elgato: EyeTV DTT Deluxe */
39*d6317c68SMauro Carvalho Chehab #define AS102_ELGATO_EYETV_DTT_NAME	"Elgato EyeTV DTT Deluxe"
40*d6317c68SMauro Carvalho Chehab #define ELGATO_EYETV_DTT_USB_VID	0x0fd9
41*d6317c68SMauro Carvalho Chehab #define ELGATO_EYETV_DTT_USB_PID	0x002c
42*d6317c68SMauro Carvalho Chehab 
43*d6317c68SMauro Carvalho Chehab /* nBox: nBox DVB-T Dongle */
44*d6317c68SMauro Carvalho Chehab #define AS102_NBOX_DVBT_DONGLE_NAME	"nBox DVB-T Dongle"
45*d6317c68SMauro Carvalho Chehab #define NBOX_DVBT_DONGLE_USB_VID	0x0b89
46*d6317c68SMauro Carvalho Chehab #define NBOX_DVBT_DONGLE_USB_PID	0x0007
47*d6317c68SMauro Carvalho Chehab 
48*d6317c68SMauro Carvalho Chehab /* Sky Italia: Digital Key (green led) */
49*d6317c68SMauro Carvalho Chehab #define AS102_SKY_IT_DIGITAL_KEY_NAME	"Sky IT Digital Key (green led)"
50*d6317c68SMauro Carvalho Chehab #define SKY_IT_DIGITAL_KEY_USB_VID	0x2137
51*d6317c68SMauro Carvalho Chehab #define SKY_IT_DIGITAL_KEY_USB_PID	0x0001
52*d6317c68SMauro Carvalho Chehab 
53*d6317c68SMauro Carvalho Chehab void as102_urb_stream_irq(struct urb *urb);
54*d6317c68SMauro Carvalho Chehab 
55*d6317c68SMauro Carvalho Chehab struct as10x_usb_token_cmd_t {
56*d6317c68SMauro Carvalho Chehab 	/* token cmd */
57*d6317c68SMauro Carvalho Chehab 	struct as10x_cmd_t c;
58*d6317c68SMauro Carvalho Chehab 	/* token response */
59*d6317c68SMauro Carvalho Chehab 	struct as10x_cmd_t r;
60*d6317c68SMauro Carvalho Chehab };
61*d6317c68SMauro Carvalho Chehab #endif
62