Go to the documentation of this file.
47 #include <linux/pci.h>
48 #include <linux/i2c.h>
49 #include <linux/kdev_t.h>
71 #define SAA7164_MAXBOARDS 8
74 #define SAA7164_BOARD_NOAUTO UNSET
75 #define SAA7164_BOARD_UNKNOWN 0
76 #define SAA7164_BOARD_UNKNOWN_REV2 1
77 #define SAA7164_BOARD_UNKNOWN_REV3 2
78 #define SAA7164_BOARD_HAUPPAUGE_HVR2250 3
79 #define SAA7164_BOARD_HAUPPAUGE_HVR2200 4
80 #define SAA7164_BOARD_HAUPPAUGE_HVR2200_2 5
81 #define SAA7164_BOARD_HAUPPAUGE_HVR2200_3 6
82 #define SAA7164_BOARD_HAUPPAUGE_HVR2250_2 7
83 #define SAA7164_BOARD_HAUPPAUGE_HVR2250_3 8
84 #define SAA7164_BOARD_HAUPPAUGE_HVR2200_4 9
85 #define SAA7164_BOARD_HAUPPAUGE_HVR2200_5 10
87 #define SAA7164_MAX_UNITS 8
88 #define SAA7164_TS_NUMBER_OF_LINES 312
89 #define SAA7164_PS_NUMBER_OF_LINES 256
90 #define SAA7164_PT_ENTRIES 16
91 #define SAA7164_MAX_ENCODER_BUFFERS 64
92 #define SAA7164_MAX_VBI_BUFFERS 64
95 #define SAA7164_PORT_TS1 (0)
96 #define SAA7164_PORT_TS2 (SAA7164_PORT_TS1 + 1)
97 #define SAA7164_PORT_ENC1 (SAA7164_PORT_TS2 + 1)
98 #define SAA7164_PORT_ENC2 (SAA7164_PORT_ENC1 + 1)
99 #define SAA7164_PORT_VBI1 (SAA7164_PORT_ENC2 + 1)
100 #define SAA7164_PORT_VBI2 (SAA7164_PORT_VBI1 + 1)
101 #define SAA7164_MAX_PORTS (SAA7164_PORT_VBI2 + 1)
105 #define DBGLVL_I2C 16
106 #define DBGLVL_API 32
107 #define DBGLVL_CMD 64
108 #define DBGLVL_BUS 128
109 #define DBGLVL_IRQ 256
110 #define DBGLVL_BUF 512
111 #define DBGLVL_ENC 1024
112 #define DBGLVL_VBI 2048
113 #define DBGLVL_THR 4096
114 #define DBGLVL_CPU 8192
116 #define SAA7164_NORMS \
117 (V4L2_STD_NTSC_M | V4L2_STD_NTSC_M_JP | V4L2_STD_NTSC_443)
500 unsigned int cmd,
void *
arg);
509 void *
buf,
int peekonly);
601 #define dprintk(level, fmt, arg...)\
602 do { if (saa_debug & level)\
603 printk(KERN_DEBUG "%s: " fmt, dev->name, ## arg);\
606 #define log_warn(fmt, arg...)\
608 printk(KERN_WARNING "%s: " fmt, dev->name, ## arg);\
611 #define saa7164_readl(reg) readl(dev->lmmio + ((reg) >> 2))
612 #define saa7164_writel(reg, value) writel((value), dev->lmmio + ((reg) >> 2))
614 #define saa7164_readb(reg) readl(dev->bmmio + (reg))
615 #define saa7164_writeb(reg, value) writel((value), dev->bmmio + (reg))