Path: blob/master/arch/powerpc/sysdev/bestcomm/gen_bd.h
10818 views
/*1* Header for Bestcomm General Buffer Descriptor tasks driver2*3*4* Copyright (C) 2007 Sylvain Munaut <[email protected]>5* Copyright (C) 2006 AppSpec Computer Technologies Corp.6* Jeff Gibbons <[email protected]>7*8* This program is free software; you can redistribute it and/or modify it9* under the terms of the GNU General Public License version 2 as published10* by the Free Software Foundation.11*12*13*/1415#ifndef __BESTCOMM_GEN_BD_H__16#define __BESTCOMM_GEN_BD_H__1718struct bcom_gen_bd {19u32 status;20u32 buf_pa;21};222324extern struct bcom_task *25bcom_gen_bd_rx_init(int queue_len, phys_addr_t fifo,26int initiator, int ipr, int maxbufsize);2728extern int29bcom_gen_bd_rx_reset(struct bcom_task *tsk);3031extern void32bcom_gen_bd_rx_release(struct bcom_task *tsk);333435extern struct bcom_task *36bcom_gen_bd_tx_init(int queue_len, phys_addr_t fifo,37int initiator, int ipr);3839extern int40bcom_gen_bd_tx_reset(struct bcom_task *tsk);4142extern void43bcom_gen_bd_tx_release(struct bcom_task *tsk);444546/* PSC support utility wrappers */47struct bcom_task * bcom_psc_gen_bd_rx_init(unsigned psc_num, int queue_len,48phys_addr_t fifo, int maxbufsize);49struct bcom_task * bcom_psc_gen_bd_tx_init(unsigned psc_num, int queue_len,50phys_addr_t fifo);51#endif /* __BESTCOMM_GEN_BD_H__ */52535455