diff options
author | Andy Walls <awalls@radix.net> | 2008-11-05 23:15:41 -0500 |
---|---|---|
committer | Andy Walls <awalls@radix.net> | 2008-11-05 23:15:41 -0500 |
commit | f632c32a0a44337780146df40146d6330b6aa9d8 (patch) | |
tree | 25a78d3cbb96507304ee77becd26cecbea0ec3df /linux/drivers/media/video/cx18/cx18-mailbox.h | |
parent | 5c9a58b88f61db125e53c96ba49bada98fe466f0 (diff) | |
download | mediapointer-dvb-s2-f632c32a0a44337780146df40146d6330b6aa9d8.tar.gz mediapointer-dvb-s2-f632c32a0a44337780146df40146d6330b6aa9d8.tar.bz2 |
cx18: Add outgoing mailbox mutexes and check for ack via waitq vs poll
From: Andy Walls <awalls@radix.net>
Add mutexes to ensure exclusive access for outgoing driver to CX23418 mailboxes.
Also wait on a waitq for mailbox acknowledgement from the CX23418 instead of
polling.
Priority: high
Signed-off-by: Andy Walls <awalls@radix.net>
Diffstat (limited to 'linux/drivers/media/video/cx18/cx18-mailbox.h')
-rw-r--r-- | linux/drivers/media/video/cx18/cx18-mailbox.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/linux/drivers/media/video/cx18/cx18-mailbox.h b/linux/drivers/media/video/cx18/cx18-mailbox.h index d99564153..54758f32d 100644 --- a/linux/drivers/media/video/cx18/cx18-mailbox.h +++ b/linux/drivers/media/video/cx18/cx18-mailbox.h @@ -30,6 +30,11 @@ #define MB_RESERVED_HANDLE_0 0 #define MB_RESERVED_HANDLE_1 0xFFFFFFFF +#define APU 0 +#define CPU 1 +#define EPU 2 +#define HPU 3 + struct cx18; /* The cx18_mailbox struct is the mailbox structure which is used for passing @@ -68,6 +73,6 @@ int cx18_vapi_result(struct cx18 *cx, u32 data[MAX_MB_ARGUMENTS], u32 cmd, int cx18_vapi(struct cx18 *cx, u32 cmd, int args, ...); int cx18_api_func(void *priv, u32 cmd, int in, int out, u32 data[CX2341X_MBOX_MAX_DATA]); -long cx18_mb_ack(struct cx18 *cx, const struct cx18_mailbox *mb); +long cx18_mb_ack(struct cx18 *cx, const struct cx18_mailbox *mb, int rpu); #endif |