diff options
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-driver.h')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-driver.h | 74 |
1 files changed, 1 insertions, 73 deletions
diff --git a/drivers/media/video/ivtv/ivtv-driver.h b/drivers/media/video/ivtv/ivtv-driver.h index 3ed4703956d3..f7849f852e9d 100644 --- a/drivers/media/video/ivtv/ivtv-driver.h +++ b/drivers/media/video/ivtv/ivtv-driver.h | |||
@@ -74,61 +74,10 @@ | |||
74 | #define IVTV_REG_OFFSET 0x02000000 | 74 | #define IVTV_REG_OFFSET 0x02000000 |
75 | #define IVTV_REG_SIZE 0x00010000 | 75 | #define IVTV_REG_SIZE 0x00010000 |
76 | 76 | ||
77 | /* Buffers on hardware offsets */ | ||
78 | #define IVTV_YUV_BUFFER_OFFSET 0x001a8600 /* First YUV Buffer */ | ||
79 | #define IVTV_YUV_BUFFER_OFFSET_1 0x00240400 /* Second YUV Buffer */ | ||
80 | #define IVTV_YUV_BUFFER_OFFSET_2 0x002d8200 /* Third YUV Buffer */ | ||
81 | #define IVTV_YUV_BUFFER_OFFSET_3 0x00370000 /* Fourth YUV Buffer */ | ||
82 | #define IVTV_YUV_BUFFER_UV_OFFSET 0x65400 /* Offset to UV Buffer */ | ||
83 | |||
84 | /* Offset to filter table in firmware */ | ||
85 | #define IVTV_YUV_HORIZONTAL_FILTER_OFFSET 0x025d8 | ||
86 | #define IVTV_YUV_VERTICAL_FILTER_OFFSET 0x03358 | ||
87 | |||
88 | extern const u32 yuv_offset[4]; | ||
89 | |||
90 | /* Maximum ivtv driver instances. Some people have a huge number of | 77 | /* Maximum ivtv driver instances. Some people have a huge number of |
91 | capture cards, so set this to a high value. */ | 78 | capture cards, so set this to a high value. */ |
92 | #define IVTV_MAX_CARDS 32 | 79 | #define IVTV_MAX_CARDS 32 |
93 | 80 | ||
94 | /* Supported cards */ | ||
95 | #define IVTV_CARD_PVR_250 0 /* WinTV PVR 250 */ | ||
96 | #define IVTV_CARD_PVR_350 1 /* encoder, decoder, tv-out */ | ||
97 | #define IVTV_CARD_PVR_150 2 /* WinTV PVR 150 and PVR 500 (really just two | ||
98 | PVR150s on one PCI board) */ | ||
99 | #define IVTV_CARD_M179 3 /* AVerMedia M179 (encoder only) */ | ||
100 | #define IVTV_CARD_MPG600 4 /* Kuroutoshikou ITVC16-STVLP/YUAN MPG600, encoder only */ | ||
101 | #define IVTV_CARD_MPG160 5 /* Kuroutoshikou ITVC15-STVLP/YUAN MPG160 | ||
102 | cx23415 based, but does not have tv-out */ | ||
103 | #define IVTV_CARD_PG600 6 /* YUAN PG600/DIAMONDMM PVR-550 based on the CX Falcon 2 */ | ||
104 | #define IVTV_CARD_AVC2410 7 /* Adaptec AVC-2410 */ | ||
105 | #define IVTV_CARD_AVC2010 8 /* Adaptec AVD-2010 (No Tuner) */ | ||
106 | #define IVTV_CARD_TG5000TV 9 /* NAGASE TRANSGEAR 5000TV, encoder only */ | ||
107 | #define IVTV_CARD_VA2000MAX_SNT6 10 /* VA2000MAX-STN6 */ | ||
108 | #define IVTV_CARD_CX23416GYC 11 /* Kuroutoshikou CX23416GYC-STVLP (Yuan MPG600GR OEM) */ | ||
109 | #define IVTV_CARD_GV_MVPRX 12 /* I/O Data GV-MVP/RX, RX2, RX2W */ | ||
110 | #define IVTV_CARD_GV_MVPRX2E 13 /* I/O Data GV-MVP/RX2E */ | ||
111 | #define IVTV_CARD_GOTVIEW_PCI_DVD 14 /* GotView PCI DVD */ | ||
112 | #define IVTV_CARD_GOTVIEW_PCI_DVD2 15 /* GotView PCI DVD2 */ | ||
113 | #define IVTV_CARD_YUAN_MPC622 16 /* Yuan MPC622 miniPCI */ | ||
114 | #define IVTV_CARD_DCTMTVP1 17 /* DIGITAL COWBOY DCT-MTVP1 */ | ||
115 | #define IVTV_CARD_PG600V2 18 /* Yuan PG600V2/GotView PCI DVD Lite */ | ||
116 | #define IVTV_CARD_CLUB3D 19 /* Club3D ZAP-TV1x01 */ | ||
117 | #define IVTV_CARD_AVERTV_MCE116 20 /* AVerTV MCE 116 Plus */ | ||
118 | #define IVTV_CARD_LAST 20 | ||
119 | |||
120 | /* Variants of existing cards but with the same PCI IDs. The driver | ||
121 | detects these based on other device information. | ||
122 | These cards must always come last. | ||
123 | New cards must be inserted above, and the indices of the cards below | ||
124 | must be adjusted accordingly. */ | ||
125 | |||
126 | /* PVR-350 V1 (uses saa7114) */ | ||
127 | #define IVTV_CARD_PVR_350_V1 (IVTV_CARD_LAST+1) | ||
128 | /* 2 variants of Kuroutoshikou CX23416GYC-STVLP (Yuan MPG600GR OEM) */ | ||
129 | #define IVTV_CARD_CX23416GYC_NOGR (IVTV_CARD_LAST+2) | ||
130 | #define IVTV_CARD_CX23416GYC_NOGRYCS (IVTV_CARD_LAST+3) | ||
131 | |||
132 | #define IVTV_ENC_STREAM_TYPE_MPG 0 | 81 | #define IVTV_ENC_STREAM_TYPE_MPG 0 |
133 | #define IVTV_ENC_STREAM_TYPE_YUV 1 | 82 | #define IVTV_ENC_STREAM_TYPE_YUV 1 |
134 | #define IVTV_ENC_STREAM_TYPE_VBI 2 | 83 | #define IVTV_ENC_STREAM_TYPE_VBI 2 |
@@ -150,27 +99,6 @@ extern const u32 yuv_offset[4]; | |||
150 | #define IVTV_ENC_MEM_START 0x00000000 | 99 | #define IVTV_ENC_MEM_START 0x00000000 |
151 | #define IVTV_DEC_MEM_START 0x01000000 | 100 | #define IVTV_DEC_MEM_START 0x01000000 |
152 | 101 | ||
153 | /* system vendor and device IDs */ | ||
154 | #define PCI_VENDOR_ID_ICOMP 0x4444 | ||
155 | #define PCI_DEVICE_ID_IVTV15 0x0803 | ||
156 | #define PCI_DEVICE_ID_IVTV16 0x0016 | ||
157 | |||
158 | /* subsystem vendor ID */ | ||
159 | #define IVTV_PCI_ID_HAUPPAUGE 0x0070 | ||
160 | #define IVTV_PCI_ID_HAUPPAUGE_ALT1 0x0270 | ||
161 | #define IVTV_PCI_ID_HAUPPAUGE_ALT2 0x4070 | ||
162 | #define IVTV_PCI_ID_ADAPTEC 0x9005 | ||
163 | #define IVTV_PCI_ID_AVERMEDIA 0x1461 | ||
164 | #define IVTV_PCI_ID_YUAN1 0x12ab | ||
165 | #define IVTV_PCI_ID_YUAN2 0xff01 | ||
166 | #define IVTV_PCI_ID_YUAN3 0xffab | ||
167 | #define IVTV_PCI_ID_YUAN4 0xfbab | ||
168 | #define IVTV_PCI_ID_DIAMONDMM 0xff92 | ||
169 | #define IVTV_PCI_ID_IODATA 0x10fc | ||
170 | #define IVTV_PCI_ID_MELCO 0x1154 | ||
171 | #define IVTV_PCI_ID_GOTVIEW1 0xffac | ||
172 | #define IVTV_PCI_ID_GOTVIEW2 0xffad | ||
173 | |||
174 | /* Decoder Buffer hardware size on Chip */ | 102 | /* Decoder Buffer hardware size on Chip */ |
175 | #define IVTV_DEC_MAX_BUF 0x00100000 /* max bytes in decoder buffer */ | 103 | #define IVTV_DEC_MAX_BUF 0x00100000 /* max bytes in decoder buffer */ |
176 | #define IVTV_DEC_MIN_BUF 0x00010000 /* min bytes in dec buffer */ | 104 | #define IVTV_DEC_MIN_BUF 0x00010000 /* min bytes in dec buffer */ |
@@ -890,4 +818,4 @@ int ivtv_init_on_first_open(struct ivtv *itv); | |||
890 | #define write_dec_sync(val, addr) \ | 818 | #define write_dec_sync(val, addr) \ |
891 | do { write_dec(val, addr); read_dec(addr); } while (0) | 819 | do { write_dec(val, addr); read_dec(addr); } while (0) |
892 | 820 | ||
893 | #endif /* IVTV_DRIVER_H */ | 821 | #endif |