diff options
author | Steven Toth <stoth@hauppauge.com> | 2007-09-04 20:36:32 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-09 21:08:22 -0400 |
commit | 31bae4a62036a1d85aa9ee5864115dad2727336d (patch) | |
tree | 112abf7e30ededa86b7243eb0588d146f457a464 /drivers/media/video/cx23885 | |
parent | 2e52f215be1b3a0337788c8d3345bdf5e3894e19 (diff) |
V4L/DVB (6171): cx23885: Cleaning up defines
Moving some defines into the correct header file.
Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/cx23885')
-rw-r--r-- | drivers/media/video/cx23885/cx23885-core.c | 19 | ||||
-rw-r--r-- | drivers/media/video/cx23885/cx23885-reg.h | 11 |
2 files changed, 10 insertions, 20 deletions
diff --git a/drivers/media/video/cx23885/cx23885-core.c b/drivers/media/video/cx23885/cx23885-core.c index 7a1c4672041d..fa5f6488b994 100644 --- a/drivers/media/video/cx23885/cx23885-core.c +++ b/drivers/media/video/cx23885/cx23885-core.c | |||
@@ -1251,25 +1251,6 @@ static void cx23885_timeout(unsigned long data) | |||
1251 | do_cancel_buffers(port, "timeout", 1); | 1251 | do_cancel_buffers(port, "timeout", 1); |
1252 | } | 1252 | } |
1253 | 1253 | ||
1254 | #define PCI_MSK_APB_DMA (1 << 12) | ||
1255 | #define PCI_MSK_AL_WR (1 << 11) | ||
1256 | #define PCI_MSK_AL_RD (1 << 10) | ||
1257 | #define PCI_MSK_RISC_WR (1 << 9) | ||
1258 | #define PCI_MSK_RISC_RD (1 << 8) | ||
1259 | |||
1260 | #define PCI_MSK_AUD_EXT (1 << 4) | ||
1261 | #define PCI_MSK_AUD_INT (1 << 3) | ||
1262 | #define PCI_MSK_VID_C (1 << 2) | ||
1263 | #define PCI_MSK_VID_B (1 << 1) | ||
1264 | #define PCI_MSK_VID_A 1 | ||
1265 | |||
1266 | #define VID_C_MSK_BAD_PKT (1 << 20) | ||
1267 | #define VID_C_MSK_OPC_ERR (1 << 16) | ||
1268 | #define VID_C_MSK_SYNC (1 << 12) | ||
1269 | #define VID_C_MSK_OF (1 << 8) | ||
1270 | #define VID_C_MSK_RISCI2 (1 << 4) | ||
1271 | #define VID_C_MSK_RISCI1 1 | ||
1272 | |||
1273 | static irqreturn_t cx23885_irq(int irq, void *dev_id) | 1254 | static irqreturn_t cx23885_irq(int irq, void *dev_id) |
1274 | { | 1255 | { |
1275 | struct cx23885_dev *dev = dev_id; | 1256 | struct cx23885_dev *dev = dev_id; |
diff --git a/drivers/media/video/cx23885/cx23885-reg.h b/drivers/media/video/cx23885/cx23885-reg.h index 6527bd3b4d77..63ab0fb26acb 100644 --- a/drivers/media/video/cx23885/cx23885-reg.h +++ b/drivers/media/video/cx23885/cx23885-reg.h | |||
@@ -211,7 +211,7 @@ Channel manager Data Structure entry = 20 DWORD | |||
211 | #define I2S_TX_CFG 0x0000001A | 211 | #define I2S_TX_CFG 0x0000001A |
212 | 212 | ||
213 | #define DEV_CNTRL2 0x00040000 | 213 | #define DEV_CNTRL2 0x00040000 |
214 | #define PCI_INT_MSK 0x00040010 | 214 | |
215 | #define PCI_MSK_APB_DMA (1 << 12) | 215 | #define PCI_MSK_APB_DMA (1 << 12) |
216 | #define PCI_MSK_AL_WR (1 << 11) | 216 | #define PCI_MSK_AL_WR (1 << 11) |
217 | #define PCI_MSK_AL_RD (1 << 10) | 217 | #define PCI_MSK_AL_RD (1 << 10) |
@@ -222,6 +222,8 @@ Channel manager Data Structure entry = 20 DWORD | |||
222 | #define PCI_MSK_VID_C (1 << 2) | 222 | #define PCI_MSK_VID_C (1 << 2) |
223 | #define PCI_MSK_VID_B (1 << 1) | 223 | #define PCI_MSK_VID_B (1 << 1) |
224 | #define PCI_MSK_VID_A 1 | 224 | #define PCI_MSK_VID_A 1 |
225 | #define PCI_INT_MSK 0x00040010 | ||
226 | |||
225 | #define PCI_INT_STAT 0x00040014 | 227 | #define PCI_INT_STAT 0x00040014 |
226 | #define PCI_INT_MSTAT 0x00040018 | 228 | #define PCI_INT_MSTAT 0x00040018 |
227 | 229 | ||
@@ -235,7 +237,14 @@ Channel manager Data Structure entry = 20 DWORD | |||
235 | #define VID_B_INT_MSTAT 0x00040038 | 237 | #define VID_B_INT_MSTAT 0x00040038 |
236 | #define VID_B_INT_SSTAT 0x0004003C | 238 | #define VID_B_INT_SSTAT 0x0004003C |
237 | 239 | ||
240 | #define VID_C_MSK_BAD_PKT (1 << 20) | ||
241 | #define VID_C_MSK_OPC_ERR (1 << 16) | ||
242 | #define VID_C_MSK_SYNC (1 << 12) | ||
243 | #define VID_C_MSK_OF (1 << 8) | ||
244 | #define VID_C_MSK_RISCI2 (1 << 4) | ||
245 | #define VID_C_MSK_RISCI1 1 | ||
238 | #define VID_C_INT_MSK 0x00040040 | 246 | #define VID_C_INT_MSK 0x00040040 |
247 | |||
239 | #define VID_C_MSK_BAD_PKT (1 << 20) | 248 | #define VID_C_MSK_BAD_PKT (1 << 20) |
240 | #define VID_C_MSK_OPC_ERR (1 << 16) | 249 | #define VID_C_MSK_OPC_ERR (1 << 16) |
241 | #define VID_C_MSK_SYNC (1 << 12) | 250 | #define VID_C_MSK_SYNC (1 << 12) |