aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx18/cx18-driver.h
diff options
context:
space:
mode:
authorAndy Walls <awalls@radix.net>2008-11-16 21:33:41 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-30 06:38:09 -0500
commit3f75c6161f28e6a17c547daf552c1127c805c5e7 (patch)
tree1e4db5013c05946832221bfdca743720091f6582 /drivers/media/video/cx18/cx18-driver.h
parent72a4f8081af1c53a1673c173ce0fdd85c4b7d403 (diff)
V4L/DVB (9724): cx18: Streamline cx18-io[ch] wrappers and enforce MMIO retry strategy
cx18: Streamline cx18-io[ch] wrappers and enforce MMIO retry strategy so that write retries always occur and read retries never occur (as they never help). Remove MMIO statistics logging to speed up MMIO accesses. Deprecate & ignore retry_mmio and mmio_ndelay module parameters, to essentially force retry_mmio=1 and mmio_ndelay=0. 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.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/media/video/cx18/cx18-driver.h b/drivers/media/video/cx18/cx18-driver.h
index 749bbb60a292..02a82c3b7a32 100644
--- a/drivers/media/video/cx18/cx18-driver.h
+++ b/drivers/media/video/cx18/cx18-driver.h
@@ -64,9 +64,6 @@
64# error "This driver requires kernel PCI support." 64# error "This driver requires kernel PCI support."
65#endif 65#endif
66 66
67/* Default delay to throttle mmio access to the CX23418 */
68#define CX18_DEFAULT_MMIO_NDELAY 0 /* 0 ns = 0 PCI clock(s) / 33 MHz */
69
70#define CX18_MEM_OFFSET 0x00000000 67#define CX18_MEM_OFFSET 0x00000000
71#define CX18_MEM_SIZE 0x04000000 68#define CX18_MEM_SIZE 0x04000000
72#define CX18_REG_OFFSET 0x02000000 69#define CX18_REG_OFFSET 0x02000000
@@ -176,7 +173,6 @@
176 173
177#define CX18_MAX_PGM_INDEX (400) 174#define CX18_MAX_PGM_INDEX (400)
178 175
179extern int cx18_retry_mmio; /* enable check & retry of mmio accesses */
180extern int cx18_debug; 176extern int cx18_debug;
181 177
182 178
@@ -185,7 +181,6 @@ struct cx18_options {
185 int cardtype; /* force card type on load */ 181 int cardtype; /* force card type on load */
186 int tuner; /* set tuner on load */ 182 int tuner; /* set tuner on load */
187 int radio; /* enable/disable radio */ 183 int radio; /* enable/disable radio */
188 unsigned long mmio_ndelay; /* delay in ns after every PCI mmio access */
189}; 184};
190 185
191/* per-buffer bit flags */ 186/* per-buffer bit flags */
@@ -371,13 +366,6 @@ struct cx18_i2c_algo_callback_data {
371}; 366};
372 367
373#define CX18_MAX_MMIO_WR_RETRIES 10 368#define CX18_MAX_MMIO_WR_RETRIES 10
374#define CX18_MAX_MMIO_RD_RETRIES 2
375
376struct cx18_mmio_stats {
377 atomic_t retried_write[CX18_MAX_MMIO_WR_RETRIES+1];
378 atomic_t retried_read[CX18_MAX_MMIO_RD_RETRIES+1];
379};
380
381#define CX18_MAX_MB_ACK_DELAY 100 369#define CX18_MAX_MB_ACK_DELAY 100
382 370
383struct cx18_mbox_stats { 371struct cx18_mbox_stats {
@@ -475,7 +463,6 @@ struct cx18 {
475 struct mutex gpio_lock; 463 struct mutex gpio_lock;
476 464
477 /* Statistics */ 465 /* Statistics */
478 struct cx18_mmio_stats mmio_stats;
479 struct cx18_mbox_stats mbox_stats; 466 struct cx18_mbox_stats mbox_stats;
480 467
481 /* v4l2 and User settings */ 468 /* v4l2 and User settings */