xref: /linux/drivers/media/usb/dvb-usb/dtv5100.h (revision d99ff463ecf651437e9e4abe68f331dfb6b5bd9d)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * DVB USB Linux driver for AME DTV-5100 USB2.0 DVB-T
4  *
5  * Copyright (C) 2008  Antoine Jacquet <royale@zerezo.com>
6  * http://royale.zerezo.com/dtv5100/
7  */
8 
9 #ifndef _DVB_USB_DTV5100_H_
10 #define _DVB_USB_DTV5100_H_
11 
12 #define DVB_USB_LOG_PREFIX "dtv5100"
13 #include "dvb-usb.h"
14 
15 #define DTV5100_USB_TIMEOUT 500
16 
17 #define DTV5100_DEMOD_ADDR	0x00
18 #define DTV5100_DEMOD_WRITE	0xc0
19 #define DTV5100_DEMOD_READ	0xc1
20 
21 #define DTV5100_TUNER_ADDR	0xc4
22 #define DTV5100_TUNER_WRITE	0xc7
23 #define DTV5100_TUNER_READ	0xc8
24 
25 #define DRIVER_AUTHOR "Antoine Jacquet, http://royale.zerezo.com/"
26 #define DRIVER_DESC "AME DTV-5100 USB2.0 DVB-T"
27 
28 static struct {
29 	u8 request;
30 	u8 value;
31 	u16 index;
32 } dtv5100_init[] = {
33 	{ 0x000000c5, 0x00000000, 0x00000001 },
34 	{ 0x000000c5, 0x00000001, 0x00000001 },
35 	{ }		/* Terminating entry */
36 };
37 
38 #endif
39