aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx18/cx18-driver.h
diff options
context:
space:
mode:
authorAndy Walls <awalls@radix.net>2008-12-14 16:52:12 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-30 06:39:07 -0500
commit0ef0289264e8f278312909f1639a7764cc9cf580 (patch)
tree8727d4d5d7519db50e8cd77e03b0d00892d35d76 /drivers/media/video/cx18/cx18-driver.h
parent83c3a3c8b6a0e7a54ca9fa18b02c90e2d9a889f9 (diff)
V4L/DVB (9891): cx18 Replace magic number 63 with CX18_MAX_FW_MDLS_PER_STREAM
Removed magic number that referred to firmware limit on the number of MDLs the firmware can maintain for any stream at any one time. Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx18/cx18-driver.h')
-rw-r--r--drivers/media/video/cx18/cx18-driver.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/video/cx18/cx18-driver.h b/drivers/media/video/cx18/cx18-driver.h
index 018d98f94f97..0d2edebc39b4 100644
--- a/drivers/media/video/cx18/cx18-driver.h
+++ b/drivers/media/video/cx18/cx18-driver.h
@@ -116,7 +116,7 @@
116#define CX18_DEFAULT_ENC_PCM_BUFFERS 1 116#define CX18_DEFAULT_ENC_PCM_BUFFERS 1
117 117
118/* Maximum firmware DMA buffers per stream */ 118/* Maximum firmware DMA buffers per stream */
119#define CX18_MAX_MDLS_PER_STREAM 63 119#define CX18_MAX_FW_MDLS_PER_STREAM 63
120 120
121/* DMA buffer, default size in kB allocated */ 121/* DMA buffer, default size in kB allocated */
122#define CX18_DEFAULT_ENC_TS_BUFSIZE 32 122#define CX18_DEFAULT_ENC_TS_BUFSIZE 32
@@ -255,7 +255,8 @@ struct cx18_scb; /* forward reference */
255 255
256 256
257#define CX18_MAX_MDL_ACKS 2 257#define CX18_MAX_MDL_ACKS 2
258#define CX18_MAX_EPU_WORK_ORDERS 70 /* CPU_DE_RELEASE_MDL bursts 63 commands */ 258#define CX18_MAX_EPU_WORK_ORDERS (CX18_MAX_FW_MDLS_PER_STREAM + 7)
259/* CPU_DE_RELEASE_MDL can burst CX18_MAX_FW_MDLS_PER_STREAM orders in a group */
259 260
260#define CX18_F_EWO_MB_STALE_UPON_RECEIPT 0x1 261#define CX18_F_EWO_MB_STALE_UPON_RECEIPT 0x1
261#define CX18_F_EWO_MB_STALE_WHILE_PROC 0x2 262#define CX18_F_EWO_MB_STALE_WHILE_PROC 0x2