aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx18/cx18-mailbox.h
diff options
context:
space:
mode:
authorAndy Walls <awalls@radix.net>2008-11-15 23:38:19 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-30 06:38:07 -0500
commitee2d64f5ccc71b5c5191e92ea91a12b65f9ca060 (patch)
tree0f01253a1e517f9c1f705901d873ca25bb2c872f /drivers/media/video/cx18/cx18-mailbox.h
parentba38ee8ebe4a42ce2213802152b0b86a95dc109f (diff)
V4L/DVB (9720): cx18: Major rewrite of interrupt handling for incoming mailbox processing
A major rewrite of interrupt handling for incoming mailbox processing, to split the timing critical steps from the the deferrable steps as the sending XPU on the CX23418 will time out and overwrite our incoming mailboxes rather quickly. Setup a pool of work "order forms" for the irq handler to send jobs to the new work handler routine which uses the kernel default work queue to do the deferrable work. Started optimizing some of the cx18-io calls as they are now the low hanging fruit for recoving microseconds back from the timeline. Future optimizations will get rid of mmio read retries, mmio stats logging, and combine smaller functions in the irq path into the larger ones to save ~2 us each. 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-mailbox.h')
-rw-r--r--drivers/media/video/cx18/cx18-mailbox.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/drivers/media/video/cx18/cx18-mailbox.h b/drivers/media/video/cx18/cx18-mailbox.h
index 54758f32db1e..002c0526afa0 100644
--- a/drivers/media/video/cx18/cx18-mailbox.h
+++ b/drivers/media/video/cx18/cx18-mailbox.h
@@ -37,6 +37,17 @@
37 37
38struct cx18; 38struct cx18;
39 39
40/*
41 * This structure is used by CPU to provide completed buffers information
42 * Its structure is dictrated by the layout of the SCB, required by the
43 * firmware, but its defintion needs to be here, instead of in cx18-scb.h,
44 * for mailbox work order scheduling
45 */
46struct cx18_mdl_ack {
47 u32 id; /* ID of a completed MDL */
48 u32 data_used; /* Total data filled in the MDL for buffer 'id' */
49};
50
40/* The cx18_mailbox struct is the mailbox structure which is used for passing 51/* The cx18_mailbox struct is the mailbox structure which is used for passing
41 messages between processors */ 52 messages between processors */
42struct cx18_mailbox { 53struct cx18_mailbox {
@@ -73,6 +84,9 @@ int cx18_vapi_result(struct cx18 *cx, u32 data[MAX_MB_ARGUMENTS], u32 cmd,
73int cx18_vapi(struct cx18 *cx, u32 cmd, int args, ...); 84int cx18_vapi(struct cx18 *cx, u32 cmd, int args, ...);
74int cx18_api_func(void *priv, u32 cmd, int in, int out, 85int cx18_api_func(void *priv, u32 cmd, int in, int out,
75 u32 data[CX2341X_MBOX_MAX_DATA]); 86 u32 data[CX2341X_MBOX_MAX_DATA]);
76long cx18_mb_ack(struct cx18 *cx, const struct cx18_mailbox *mb, int rpu); 87
88void cx18_api_epu_cmd_irq(struct cx18 *cx, int rpu);
89
90void cx18_epu_work_handler(struct work_struct *work);
77 91
78#endif 92#endif