DMA :pl330.c add new argument 'id' to pl330_request_channel()
authorhhb <hhb@rock-chips.com>
Tue, 3 Jul 2012 01:54:00 +0000 (09:54 +0800)
committerhhb <hhb@rock-chips.com>
Tue, 3 Jul 2012 01:54:00 +0000 (09:54 +0800)
arch/arm/common/pl330.c
arch/arm/include/asm/hardware/pl330.h

index 4d3db3075e4a6d1e267dbb79d2a487ac49e4513e..ecfc14c1121535a0d64489f6021767e655227d96 100644 (file)
@@ -1639,7 +1639,7 @@ static __attribute__((aligned(4))) __sramdata char i2s_mcode_buff[2][MCODE_BUFF_
 /* Upon success, returns IdentityToken for the
  * allocated channel, NULL otherwise.
  */
-void *pl330_request_channel(const struct pl330_info *pi)
+void *pl330_request_channel(int id, const struct pl330_info *pi)
 {
        struct pl330_thread *thrd = NULL;
        struct pl330_dmac *pl330;
index 575fa8186ca0fcb47ce864ff564f13a69bed3660..545a521b333b2334db089eb2ec83dba3d0e2422d 100644 (file)
@@ -209,7 +209,7 @@ extern int pl330_add(struct pl330_info *);
 extern void pl330_del(struct pl330_info *pi);
 extern int pl330_update(const struct pl330_info *pi);
 extern void pl330_release_channel(void *ch_id);
-extern void *pl330_request_channel(const struct pl330_info *pi);
+extern void *pl330_request_channel(int id, const struct pl330_info *pi);
 extern int pl330_chan_status(void *ch_id, struct pl330_chanstatus *pstatus);
 extern int pl330_chan_ctrl(void *ch_id, enum pl330_chan_op op);
 extern int pl330_submit_req(void *ch_id, struct pl330_req *r);