summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cx23885/cx23885.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-09-12 15:20:14 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-09-12 15:20:14 -0300
commit501a54f0edea703168f8fb7d5e27e915087906e6 (patch)
treebbbe1072fcfd0aaa02d66c9b91a0cab076a37b69 /linux/drivers/media/video/cx23885/cx23885.h
parent995f38acadb5dae1fb1b2769714d5e45aeb9db5c (diff)
parentd97a5c24bb8f480281d7bedce89525dab393b142 (diff)
downloadmediapointer-dvb-s2-501a54f0edea703168f8fb7d5e27e915087906e6.tar.gz
mediapointer-dvb-s2-501a54f0edea703168f8fb7d5e27e915087906e6.tar.bz2
merge: http://linuxtv.org/hg/~mcisely/pvrusb2
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/cx23885/cx23885.h')
-rw-r--r--linux/drivers/media/video/cx23885/cx23885.h23
1 files changed, 18 insertions, 5 deletions
diff --git a/linux/drivers/media/video/cx23885/cx23885.h b/linux/drivers/media/video/cx23885/cx23885.h
index 66cc04cfa..a0b353096 100644
--- a/linux/drivers/media/video/cx23885/cx23885.h
+++ b/linux/drivers/media/video/cx23885/cx23885.h
@@ -57,6 +57,7 @@
#define CX23885_BOARD_HAUPPAUGE_HVR1800lp 1
#define CX23885_BOARD_HAUPPAUGE_HVR1800 2
#define CX23885_BOARD_HAUPPAUGE_HVR1250 3
+#define CX23885_BOARD_DVICO_FUSIONHDTV_5_EXP 4
enum cx23885_itype {
CX23885_VMUX_COMPOSITE1 = 1,
@@ -71,6 +72,11 @@ enum cx23885_itype {
CX23885_RADIO,
};
+enum cx23885_src_sel_type {
+ CX23885_SRC_SEL_EXT_656_VIDEO = 0,
+ CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO
+};
+
/* buffer for one video frame */
struct cx23885_buffer {
/* common v4l buffer stuff -- must be first */
@@ -89,12 +95,14 @@ struct cx23885_input {
u32 gpio0, gpio1, gpio2, gpio3;
};
+typedef enum {
+ CX23885_MPEG_UNDEFINED = 0,
+ CX23885_MPEG_DVB
+} port_t;
+
struct cx23885_board {
char *name;
- enum {
- CX23885_MPEG_UNDEFINED = 0,
- CX23885_MPEG_DVB
- } portc;
+ port_t portb, portc;
struct cx23885_input input[MAX_CX23885_INPUT];
};
@@ -163,6 +171,8 @@ struct cx23885_tsport {
u32 reg_vld_misc;
u32 reg_ts_clk_en;
u32 reg_ts_int_msk;
+ u32 reg_ts_int_stat;
+ u32 reg_src_sel;
/* Default register vals */
int pci_irqmask;
@@ -170,6 +180,7 @@ struct cx23885_tsport {
u32 ts_int_msk_val;
u32 gen_ctrl_val;
u32 ts_clk_en_val;
+ u32 src_sel_val;
};
struct cx23885_dev {
@@ -198,7 +209,7 @@ struct cx23885_dev {
unsigned int board;
char name[32];
- struct cx23885_tsport ts2;
+ struct cx23885_tsport ts1, ts2;
/* sram configuration */
struct sram_channel *sram_channels;
@@ -266,6 +277,8 @@ extern struct cx23885_subid cx23885_subids[];
extern const unsigned int cx23885_idcount;
extern void cx23885_card_list(struct cx23885_dev *dev);
+extern int cx23885_ir_init(struct cx23885_dev *dev);
+extern void cx23885_gpio_setup(struct cx23885_dev *dev);
extern void cx23885_card_setup(struct cx23885_dev *dev);
extern void cx23885_card_setup_pre_i2c(struct cx23885_dev *dev);