16 #ifndef __BESTCOMM_H__
17 #define __BESTCOMM_H__
63 #define BCOM_FLAGS_NONE 0x00000000ul
64 #define BCOM_FLAGS_ENABLE_TASK (1ul << 0)
90 bcom_get_task_irq(
struct bcom_task *tsk) {
98 #define BCOM_BD_READY 0x40000000ul
139 return tsk->
outdex == _bcom_next_index(tsk);
152 return ((
void *)tsk->
bd) + (index * tsk->
bd_size);
163 if (bcom_queue_empty(tsk))
166 bd = bcom_get_bd(tsk, tsk->
outdex);
177 bcom_prepare_next_buffer(
struct bcom_task *tsk)
181 bd = bcom_get_bd(tsk, tsk->
index);
194 tsk->
index = _bcom_next_index(tsk);
209 tsk->
outdex = _bcom_next_outdex(tsk);