aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx18/cx18-driver.h
diff options
context:
space:
mode:
authorAndy Walls <awalls@radix.net>2008-11-08 12:19:37 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-30 06:38:03 -0500
commit330c6ec8942765e81f237bd58020da1b161935ce (patch)
tree110bdf6daf5f280a9f3159136caa47e48e5fbaef /drivers/media/video/cx18/cx18-driver.h
parentac50441720332f22a9d85ac03151d6acb7bc55d6 (diff)
V4L/DVB (9596): cx18: Further changes to improve mailbox protocol integrity & performnce
All waits for cx18 mailbox API commands are now uninterruptable. Added code to collect mailbox ack statistics. Tweaked timeouts based on collected stats and video vertical frame and field rates. 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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/video/cx18/cx18-driver.h b/drivers/media/video/cx18/cx18-driver.h
index e2ec15549783..ce76806759ec 100644
--- a/drivers/media/video/cx18/cx18-driver.h
+++ b/drivers/media/video/cx18/cx18-driver.h
@@ -360,6 +360,12 @@ struct cx18_mmio_stats {
360 atomic_t retried_read[CX18_MAX_MMIO_RD_RETRIES+1]; 360 atomic_t retried_read[CX18_MAX_MMIO_RD_RETRIES+1];
361}; 361};
362 362
363#define CX18_MAX_MB_ACK_DELAY 100
364
365struct cx18_mbox_stats {
366 atomic_t mb_ack_delay[CX18_MAX_MB_ACK_DELAY+1];
367};
368
363/* Struct to hold info about cx18 cards */ 369/* Struct to hold info about cx18 cards */
364struct cx18 { 370struct cx18 {
365 int num; /* board number, -1 during init! */ 371 int num; /* board number, -1 during init! */
@@ -452,6 +458,7 @@ struct cx18 {
452 458
453 /* Statistics */ 459 /* Statistics */
454 struct cx18_mmio_stats mmio_stats; 460 struct cx18_mmio_stats mmio_stats;
461 struct cx18_mbox_stats mbox_stats;
455 462
456 /* v4l2 and User settings */ 463 /* v4l2 and User settings */
457 464