summaryrefslogtreecommitdiffstats
path: root/drivers/staging/tidspbridge/include/dspbridge/drv.h
diff options
context:
space:
mode:
authorErnesto Ramos2010-07-28 23:04:56 +0200
committerGreg Kroah-Hartman2010-08-03 02:11:03 +0200
commit4ec09714a0a5861c3e786967024ddfff00b0add6 (patch)
tree1004c64c1886e958f4a284a72f0f7770e75cdaed /drivers/staging/tidspbridge/include/dspbridge/drv.h
parentstaging: ti dspbridge: use processor handle from context instead of user's (diff)
downloadkernel-qcow2-linux-4ec09714a0a5861c3e786967024ddfff00b0add6.tar.gz
kernel-qcow2-linux-4ec09714a0a5861c3e786967024ddfff00b0add6.tar.xz
kernel-qcow2-linux-4ec09714a0a5861c3e786967024ddfff00b0add6.zip
staging: ti dspbridge: use stream id instead of kernel address
Send stream ids to the user instead of handles, then when the id is coming from user dspbridge can retrive the handle using id and avoid using invalid handles. Signed-off-by: Ernesto Ramos <ernesto@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/tidspbridge/include/dspbridge/drv.h')
-rw-r--r--drivers/staging/tidspbridge/include/dspbridge/drv.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/tidspbridge/include/dspbridge/drv.h b/drivers/staging/tidspbridge/include/dspbridge/drv.h
index 0b36a11820b5..f3650153ef35 100644
--- a/drivers/staging/tidspbridge/include/dspbridge/drv.h
+++ b/drivers/staging/tidspbridge/include/dspbridge/drv.h
@@ -131,7 +131,7 @@ struct strm_res_object {
void *hstream;
u32 num_bufs;
u32 dir;
- struct strm_res_object *next;
+ int id;
};
/* Overall Bridge process resource usage state */
@@ -173,8 +173,7 @@ struct process_context {
struct dspheap_res_object *pdspheap_list;
/* Stream resources */
- struct strm_res_object *pstrm_list;
- struct mutex strm_mutex;
+ struct idr *stream_id;
};
/*