aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx18/cx18-driver.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/cx18/cx18-driver.h')
-rw-r--r--drivers/media/video/cx18/cx18-driver.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/media/video/cx18/cx18-driver.h b/drivers/media/video/cx18/cx18-driver.h
index 66cb748875c7..80f5f563d4fc 100644
--- a/drivers/media/video/cx18/cx18-driver.h
+++ b/drivers/media/video/cx18/cx18-driver.h
@@ -171,6 +171,7 @@
171 171
172#define CX18_MAX_PGM_INDEX (400) 172#define CX18_MAX_PGM_INDEX (400)
173 173
174extern int cx18_retry_mmio; /* enable check & retry of mmio accesses */
174extern int cx18_debug; 175extern int cx18_debug;
175 176
176 177
@@ -344,6 +345,13 @@ struct cx18_i2c_algo_callback_data {
344 int bus_index; /* 0 or 1 for the cx23418's 1st or 2nd I2C bus */ 345 int bus_index; /* 0 or 1 for the cx23418's 1st or 2nd I2C bus */
345}; 346};
346 347
348#define CX18_MAX_MMIO_RETRIES 10
349
350struct cx18_mmio_stats {
351 atomic_t retried_write[CX18_MAX_MMIO_RETRIES+1];
352 atomic_t retried_read[CX18_MAX_MMIO_RETRIES+1];
353};
354
347/* Struct to hold info about cx18 cards */ 355/* Struct to hold info about cx18 cards */
348struct cx18 { 356struct cx18 {
349 int num; /* board number, -1 during init! */ 357 int num; /* board number, -1 during init! */
@@ -433,6 +441,9 @@ struct cx18 {
433 u32 gpio_val; 441 u32 gpio_val;
434 struct mutex gpio_lock; 442 struct mutex gpio_lock;
435 443
444 /* Statistics */
445 struct cx18_mmio_stats mmio_stats;
446
436 /* v4l2 and User settings */ 447 /* v4l2 and User settings */
437 448
438 /* codec settings */ 449 /* codec settings */