summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Toth <stoth@hauppauge.com>2007-09-04 20:36:32 -0400
committerSteven Toth <stoth@hauppauge.com>2007-09-04 20:36:32 -0400
commitde3ca88fa9924979d5db2e3a9684fc48a5fc9313 (patch)
treeca3a64bfdccd984d040a8abc66e8c502fb9bc352
parent835f5bed6967a7345c2581ceeaf84f93f4093caf (diff)
downloadmediapointer-dvb-s2-de3ca88fa9924979d5db2e3a9684fc48a5fc9313.tar.gz
mediapointer-dvb-s2-de3ca88fa9924979d5db2e3a9684fc48a5fc9313.tar.bz2
cx23885: Cleaning up defines
From: Steven Toth <stoth@hauppauge.com> Moving some defines into the correct header file. Signed-off-by: Steven Toth <stoth@hauppauge.com> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
-rw-r--r--linux/drivers/media/video/cx23885/cx23885-core.c19
-rw-r--r--linux/drivers/media/video/cx23885/cx23885-reg.h11
2 files changed, 10 insertions, 20 deletions
diff --git a/linux/drivers/media/video/cx23885/cx23885-core.c b/linux/drivers/media/video/cx23885/cx23885-core.c
index b1a010a6d..b19192810 100644
--- a/linux/drivers/media/video/cx23885/cx23885-core.c
+++ b/linux/drivers/media/video/cx23885/cx23885-core.c
@@ -1252,25 +1252,6 @@ static void cx23885_timeout(unsigned long data)
do_cancel_buffers(port, "timeout", 1);
}
-#define PCI_MSK_APB_DMA (1 << 12)
-#define PCI_MSK_AL_WR (1 << 11)
-#define PCI_MSK_AL_RD (1 << 10)
-#define PCI_MSK_RISC_WR (1 << 9)
-#define PCI_MSK_RISC_RD (1 << 8)
-
-#define PCI_MSK_AUD_EXT (1 << 4)
-#define PCI_MSK_AUD_INT (1 << 3)
-#define PCI_MSK_VID_C (1 << 2)
-#define PCI_MSK_VID_B (1 << 1)
-#define PCI_MSK_VID_A 1
-
-#define VID_C_MSK_BAD_PKT (1 << 20)
-#define VID_C_MSK_OPC_ERR (1 << 16)
-#define VID_C_MSK_SYNC (1 << 12)
-#define VID_C_MSK_OF (1 << 8)
-#define VID_C_MSK_RISCI2 (1 << 4)
-#define VID_C_MSK_RISCI1 1
-
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
static irqreturn_t cx23885_irq(int irq, void *dev_id, struct pt_regs *regs)
#else
diff --git a/linux/drivers/media/video/cx23885/cx23885-reg.h b/linux/drivers/media/video/cx23885/cx23885-reg.h
index 6527bd3b4..63ab0fb26 100644
--- a/linux/drivers/media/video/cx23885/cx23885-reg.h
+++ b/linux/drivers/media/video/cx23885/cx23885-reg.h
@@ -211,7 +211,7 @@ Channel manager Data Structure entry = 20 DWORD
#define I2S_TX_CFG 0x0000001A
#define DEV_CNTRL2 0x00040000
-#define PCI_INT_MSK 0x00040010
+
#define PCI_MSK_APB_DMA (1 << 12)
#define PCI_MSK_AL_WR (1 << 11)
#define PCI_MSK_AL_RD (1 << 10)
@@ -222,6 +222,8 @@ Channel manager Data Structure entry = 20 DWORD
#define PCI_MSK_VID_C (1 << 2)
#define PCI_MSK_VID_B (1 << 1)
#define PCI_MSK_VID_A 1
+#define PCI_INT_MSK 0x00040010
+
#define PCI_INT_STAT 0x00040014
#define PCI_INT_MSTAT 0x00040018
@@ -235,7 +237,14 @@ Channel manager Data Structure entry = 20 DWORD
#define VID_B_INT_MSTAT 0x00040038
#define VID_B_INT_SSTAT 0x0004003C
+#define VID_C_MSK_BAD_PKT (1 << 20)
+#define VID_C_MSK_OPC_ERR (1 << 16)
+#define VID_C_MSK_SYNC (1 << 12)
+#define VID_C_MSK_OF (1 << 8)
+#define VID_C_MSK_RISCI2 (1 << 4)
+#define VID_C_MSK_RISCI1 1
#define VID_C_INT_MSK 0x00040040
+
#define VID_C_MSK_BAD_PKT (1 << 20)
#define VID_C_MSK_OPC_ERR (1 << 16)
#define VID_C_MSK_SYNC (1 << 12)