mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 02:50:43 +00:00
[MIPS] Alchemy: dbdma: add API to delete custom DDMA device ids.
Add API to delete custom DDMA device ids create with au1xxx_ddma_device_add(). Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
b1fb05cdb9
commit
ccdb0034f8
2 changed files with 12 additions and 0 deletions
|
@ -216,6 +216,17 @@ u32 au1xxx_ddma_add_device(dbdev_tab_t *dev)
|
|||
}
|
||||
EXPORT_SYMBOL(au1xxx_ddma_add_device);
|
||||
|
||||
void au1xxx_ddma_del_device(u32 devid)
|
||||
{
|
||||
dbdev_tab_t *p = find_dbdev_id(devid);
|
||||
|
||||
if (p != NULL) {
|
||||
memset(p, 0, sizeof(dbdev_tab_t));
|
||||
p->dev_id = ~0;
|
||||
}
|
||||
}
|
||||
EXPORT_SYMBOL(au1xxx_ddma_del_device);
|
||||
|
||||
/* Allocate a channel and return a non-zero descriptor if successful. */
|
||||
u32 au1xxx_dbdma_chan_alloc(u32 srcid, u32 destid,
|
||||
void (*callback)(int, void *), void *callparam)
|
||||
|
|
|
@ -355,6 +355,7 @@ void au1xxx_dbdma_dump(u32 chanid);
|
|||
u32 au1xxx_dbdma_put_dscr(u32 chanid, au1x_ddma_desc_t *dscr);
|
||||
|
||||
u32 au1xxx_ddma_add_device(dbdev_tab_t *dev);
|
||||
extern void au1xxx_ddma_del_device(u32 devid);
|
||||
void *au1xxx_ddma_get_nextptr_virt(au1x_ddma_desc_t *dp);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue