diff options
author | Alan Nisota <alannisota@gmail.com> | 2007-08-18 16:52:35 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-09 21:05:22 -0400 |
commit | 458b634cd86968032171a4d6db5c89a772ff0348 (patch) | |
tree | 420b1a0933457e5910f2bcee542cc77e4aef5ee3 /drivers/media/dvb/dvb-usb/gp8psk.h | |
parent | fa40b2237ab6ed239967f76432438080232b88fe (diff) |
V4L/DVB (6037): Updated GenPix USB driver
There are now 4 different versions of the GENPIX USB adapter. The
newest 'Skywalker' models are fully self-contained, and need no
additional hardware to be used. A very reliable DVB-S card even without
using any of the alternate modulatations (which this kernel module does
not currently support)
The following patch adds support for all 4 versions of the genpix
adapter (www.genpix-electronics.com).
Signed-off-by: Alan Nisota alannisota@gmail.com
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/gp8psk.h')
-rw-r--r-- | drivers/media/dvb/dvb-usb/gp8psk.h | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/drivers/media/dvb/dvb-usb/gp8psk.h b/drivers/media/dvb/dvb-usb/gp8psk.h index 3eba7061011c..e83a57506cfa 100644 --- a/drivers/media/dvb/dvb-usb/gp8psk.h +++ b/drivers/media/dvb/dvb-usb/gp8psk.h | |||
@@ -1,7 +1,8 @@ | |||
1 | /* DVB USB compliant Linux driver for the | 1 | /* DVB USB compliant Linux driver for the |
2 | * - GENPIX 8pks/qpsk USB2.0 DVB-S module | 2 | * - GENPIX 8pks/qpsk/DCII USB2.0 DVB-S module |
3 | * | 3 | * |
4 | * Copyright (C) 2006 Alan Nisota (alannisota@gmail.com) | 4 | * Copyright (C) 2006 Alan Nisota (alannisota@gmail.com) |
5 | * Copyright (C) 2006,2007 Alan Nisota (alannisota@gmail.com) | ||
5 | * | 6 | * |
6 | * Thanks to GENPIX for the sample code used to implement this module. | 7 | * Thanks to GENPIX for the sample code used to implement this module. |
7 | * | 8 | * |
@@ -30,21 +31,37 @@ extern int dvb_usb_gp8psk_debug; | |||
30 | #define TH_COMMAND_IN 0xC0 | 31 | #define TH_COMMAND_IN 0xC0 |
31 | #define TH_COMMAND_OUT 0xC1 | 32 | #define TH_COMMAND_OUT 0xC1 |
32 | 33 | ||
33 | /* command bytes */ | 34 | /* gp8psk commands */ |
34 | #define GET_8PSK_CONFIG 0x80 | 35 | |
36 | #define GET_8PSK_CONFIG 0x80 /* in */ | ||
35 | #define SET_8PSK_CONFIG 0x81 | 37 | #define SET_8PSK_CONFIG 0x81 |
38 | #define I2C_WRITE 0x83 | ||
39 | #define I2C_READ 0x84 | ||
36 | #define ARM_TRANSFER 0x85 | 40 | #define ARM_TRANSFER 0x85 |
37 | #define TUNE_8PSK 0x86 | 41 | #define TUNE_8PSK 0x86 |
38 | #define GET_SIGNAL_STRENGTH 0x87 | 42 | #define GET_SIGNAL_STRENGTH 0x87 /* in */ |
39 | #define LOAD_BCM4500 0x88 | 43 | #define LOAD_BCM4500 0x88 |
40 | #define BOOT_8PSK 0x89 | 44 | #define BOOT_8PSK 0x89 /* in */ |
41 | #define START_INTERSIL 0x8A | 45 | #define START_INTERSIL 0x8A /* in */ |
42 | #define SET_LNB_VOLTAGE 0x8B | 46 | #define SET_LNB_VOLTAGE 0x8B |
43 | #define SET_22KHZ_TONE 0x8C | 47 | #define SET_22KHZ_TONE 0x8C |
44 | #define SEND_DISEQC_COMMAND 0x8D | 48 | #define SEND_DISEQC_COMMAND 0x8D |
45 | #define SET_DVB_MODE 0x8E | 49 | #define SET_DVB_MODE 0x8E |
46 | #define SET_DN_SWITCH 0x8F | 50 | #define SET_DN_SWITCH 0x8F |
47 | #define GET_SIGNAL_LOCK 0x90 | 51 | #define GET_SIGNAL_LOCK 0x90 /* in */ |
52 | #define GET_SERIAL_NUMBER 0x93 /* in */ | ||
53 | #define USE_EXTRA_VOLT 0x94 | ||
54 | #define CW3K_INIT 0x9d | ||
55 | |||
56 | /* PSK_configuration bits */ | ||
57 | #define bm8pskStarted 0x01 | ||
58 | #define bm8pskFW_Loaded 0x02 | ||
59 | #define bmIntersilOn 0x04 | ||
60 | #define bmDVBmode 0x08 | ||
61 | #define bm22kHz 0x10 | ||
62 | #define bmSEL18V 0x20 | ||
63 | #define bmDCtuned 0x40 | ||
64 | #define bmArmed 0x80 | ||
48 | 65 | ||
49 | /* Satellite modulation modes */ | 66 | /* Satellite modulation modes */ |
50 | #define ADV_MOD_DVB_QPSK 0 /* DVB-S QPSK */ | 67 | #define ADV_MOD_DVB_QPSK 0 /* DVB-S QPSK */ |
@@ -75,5 +92,6 @@ extern struct dvb_frontend * gp8psk_fe_attach(struct dvb_usb_device *d); | |||
75 | extern int gp8psk_usb_in_op(struct dvb_usb_device *d, u8 req, u16 value, u16 index, u8 *b, int blen); | 92 | extern int gp8psk_usb_in_op(struct dvb_usb_device *d, u8 req, u16 value, u16 index, u8 *b, int blen); |
76 | extern int gp8psk_usb_out_op(struct dvb_usb_device *d, u8 req, u16 value, | 93 | extern int gp8psk_usb_out_op(struct dvb_usb_device *d, u8 req, u16 value, |
77 | u16 index, u8 *b, int blen); | 94 | u16 index, u8 *b, int blen); |
95 | extern int gp8psk_bcm4500_reload(struct dvb_usb_device *d); | ||
78 | 96 | ||
79 | #endif | 97 | #endif |