diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2008-07-01 21:38:16 -0600 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2008-07-12 12:10:53 -0600 |
commit | 7ba6d6dc8d58c49cff0533819195b44fb35d6ece (patch) | |
tree | c5877a1ca8ecc3e03774571099e006afa67ab10d /arch/powerpc/sysdev/bestcomm/gen_bd.h | |
parent | 75195dabce797f49b7d96d272e4e9330873e4340 (diff) |
powerpc/mpc5200: Add PSC helpers for bestcomm engine
Simplify the interface for setting up bestcomm DMA to PSCs by adding
some helper functions. The helper function sets the correct values
for the initator and ipr values in PSC DMA tasks based on the PSC
number.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch/powerpc/sysdev/bestcomm/gen_bd.h')
-rw-r--r-- | arch/powerpc/sysdev/bestcomm/gen_bd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/sysdev/bestcomm/gen_bd.h b/arch/powerpc/sysdev/bestcomm/gen_bd.h index 5b6fa803c6a..de47260e69d 100644 --- a/arch/powerpc/sysdev/bestcomm/gen_bd.h +++ b/arch/powerpc/sysdev/bestcomm/gen_bd.h @@ -44,5 +44,10 @@ extern void bcom_gen_bd_tx_release(struct bcom_task *tsk); +/* PSC support utility wrappers */ +struct bcom_task * bcom_psc_gen_bd_rx_init(unsigned psc_num, int queue_len, + phys_addr_t fifo, int maxbufsize); +struct bcom_task * bcom_psc_gen_bd_tx_init(unsigned psc_num, int queue_len, + phys_addr_t fifo); #endif /* __BESTCOMM_GEN_BD_H__ */ |