Like this
#define NV04_DMA_WAIT_FREE(free) while((dma->size -
(dma->put - dma->control->get)) < free)
thank you .
also it thear is no way can this be made inline ?
void lnvrm_dmaNv04WaitFree(struct _nvxf_dmaChannel dma , unsigned long)
{
unsigned long get , put = dma->put , size = dma->mask + 1 , free , f = 0 ;
loop1:
get = dma->control->Get ;
if(put < get)
free = size - (size - get + put) ;
else
free = size - (put - get) ;
if(count <= free) return ; /* Get out as quick as possible */
if(f) { ErrorF("lnvrm_dmaNv04WaitFree: FIFO FULL free = %8.8lX needed =
%8.8lX\n",free,count) ; f++ }
goto loop1 ;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/