aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/ivtv/ivtv-cards.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2007-12-07 19:01:15 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:03:24 -0500
commitd9009201207c4bdce9b95a0bd903b3f087e8eda1 (patch)
tree86801fb674777c7a4693622363ac18a7a7896ec1 /drivers/media/video/ivtv/ivtv-cards.h
parent9d1a16a4fc39bd908d85e0b7ce167048200d2d2b (diff)
V4L/DVB (6765): ivtv: convert to bus-based i2c API
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-cards.h')
-rw-r--r--drivers/media/video/ivtv/ivtv-cards.h24
1 files changed, 15 insertions, 9 deletions
diff --git a/drivers/media/video/ivtv/ivtv-cards.h b/drivers/media/video/ivtv/ivtv-cards.h
index b982fb06c584..191aafdd9968 100644
--- a/drivers/media/video/ivtv/ivtv-cards.h
+++ b/drivers/media/video/ivtv/ivtv-cards.h
@@ -84,7 +84,7 @@
84#define IVTV_PCI_ID_GOTVIEW1 0xffac 84#define IVTV_PCI_ID_GOTVIEW1 0xffac
85#define IVTV_PCI_ID_GOTVIEW2 0xffad 85#define IVTV_PCI_ID_GOTVIEW2 0xffad
86 86
87/* hardware flags */ 87/* hardware flags, no gaps allowed, IVTV_HW_GPIO must always be last */
88#define IVTV_HW_CX25840 (1 << 0) 88#define IVTV_HW_CX25840 (1 << 0)
89#define IVTV_HW_SAA7115 (1 << 1) 89#define IVTV_HW_SAA7115 (1 << 1)
90#define IVTV_HW_SAA7127 (1 << 2) 90#define IVTV_HW_SAA7127 (1 << 2)
@@ -94,14 +94,13 @@
94#define IVTV_HW_CS53L32A (1 << 6) 94#define IVTV_HW_CS53L32A (1 << 6)
95#define IVTV_HW_TVEEPROM (1 << 7) 95#define IVTV_HW_TVEEPROM (1 << 7)
96#define IVTV_HW_SAA7114 (1 << 8) 96#define IVTV_HW_SAA7114 (1 << 8)
97#define IVTV_HW_TVAUDIO (1 << 9) 97#define IVTV_HW_UPD64031A (1 << 9)
98#define IVTV_HW_UPD64031A (1 << 10) 98#define IVTV_HW_UPD6408X (1 << 10)
99#define IVTV_HW_UPD6408X (1 << 11) 99#define IVTV_HW_SAA717X (1 << 11)
100#define IVTV_HW_SAA717X (1 << 12) 100#define IVTV_HW_WM8739 (1 << 12)
101#define IVTV_HW_WM8739 (1 << 13) 101#define IVTV_HW_VP27SMPX (1 << 13)
102#define IVTV_HW_VP27SMPX (1 << 14) 102#define IVTV_HW_M52790 (1 << 14)
103#define IVTV_HW_M52790 (1 << 15) 103#define IVTV_HW_GPIO (1 << 15)
104#define IVTV_HW_GPIO (1 << 16)
105 104
106#define IVTV_HW_SAA711X (IVTV_HW_SAA7115 | IVTV_HW_SAA7114) 105#define IVTV_HW_SAA711X (IVTV_HW_SAA7115 | IVTV_HW_SAA7114)
107 106
@@ -235,6 +234,12 @@ struct ivtv_card_tuner {
235 int tuner; /* tuner ID (from tuner.h) */ 234 int tuner; /* tuner ID (from tuner.h) */
236}; 235};
237 236
237struct ivtv_card_tuner_i2c {
238 unsigned short radio[2];/* radio tuner i2c address to probe */
239 unsigned short demod[2];/* demodulator i2c address to probe */
240 unsigned short tv[4]; /* tv tuner i2c addresses to probe */
241};
242
238/* for card information/parameters */ 243/* for card information/parameters */
239struct ivtv_card { 244struct ivtv_card {
240 int type; 245 int type;
@@ -262,6 +267,7 @@ struct ivtv_card {
262 struct ivtv_gpio_audio_detect gpio_audio_detect; 267 struct ivtv_gpio_audio_detect gpio_audio_detect;
263 268
264 struct ivtv_card_tuner tuners[IVTV_CARD_MAX_TUNERS]; 269 struct ivtv_card_tuner tuners[IVTV_CARD_MAX_TUNERS];
270 struct ivtv_card_tuner_i2c *i2c;
265 271
266 /* list of device and subsystem vendor/devices that 272 /* list of device and subsystem vendor/devices that
267 correspond to this card type. */ 273 correspond to this card type. */