diff options
author | Antti Palosaari <crope@iki.fi> | 2011-04-10 16:53:52 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-05-20 08:27:03 -0400 |
commit | 41f81f686a85af144ad9769a15ef8575b69eee38 (patch) | |
tree | 168b04a46cfc3593989a9680d2e55c11ea690111 /drivers/media/dvb/dvb-usb/anysee.h | |
parent | 592d9e21f5d875e84d09940eff7bc48812245855 (diff) |
[media] anysee: reimplement demod and tuner attach
Use board ID as base value when selecting correct hardware configuration.
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/anysee.h')
-rw-r--r-- | drivers/media/dvb/dvb-usb/anysee.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/drivers/media/dvb/dvb-usb/anysee.h b/drivers/media/dvb/dvb-usb/anysee.h index 686e06044fcb..0f7b4d48a5c8 100644 --- a/drivers/media/dvb/dvb-usb/anysee.h +++ b/drivers/media/dvb/dvb-usb/anysee.h | |||
@@ -57,10 +57,27 @@ enum cmd { | |||
57 | }; | 57 | }; |
58 | 58 | ||
59 | struct anysee_state { | 59 | struct anysee_state { |
60 | u8 tuner; | 60 | u8 hw; /* PCB ID */ |
61 | u8 seq; | 61 | u8 seq; |
62 | }; | 62 | }; |
63 | 63 | ||
64 | #define ANYSEE_HW_02 2 /* E30 */ | ||
65 | #define ANYSEE_HW_507CD 6 /* E30 Plus */ | ||
66 | #define ANYSEE_HW_507DC 10 /* E30 C Plus */ | ||
67 | #define ANYSEE_HW_507SI 11 /* E30 S2 Plus */ | ||
68 | #define ANYSEE_HW_507FA 15 /* E30 Combo Plus / E30 C Plus */ | ||
69 | |||
70 | #define REG_IOA 0x80 /* Port A (bit addressable) */ | ||
71 | #define REG_IOB 0x90 /* Port B (bit addressable) */ | ||
72 | #define REG_IOC 0xa0 /* Port C (bit addressable) */ | ||
73 | #define REG_IOD 0xb0 /* Port D (bit addressable) */ | ||
74 | #define REG_IOE 0xb1 /* Port E (NOT bit addressable) */ | ||
75 | #define REG_OEA 0xb2 /* Port A Output Enable */ | ||
76 | #define REG_OEB 0xb3 /* Port B Output Enable */ | ||
77 | #define REG_OEC 0xb4 /* Port C Output Enable */ | ||
78 | #define REG_OED 0xb5 /* Port D Output Enable */ | ||
79 | #define REG_OEE 0xb6 /* Port E Output Enable */ | ||
80 | |||
64 | #endif | 81 | #endif |
65 | 82 | ||
66 | /*************************************************************************** | 83 | /*************************************************************************** |