15 #ifndef _GXIO_DMA_QUEUE_H_
16 #define _GXIO_DMA_QUEUE_H_
25 #define DMA_QUEUE_CREDIT_SHIFT 32
57 void *post_region_addr,
77 unsigned int num,
bool wait,
101 if (old + modifier < 0) {
104 (dma_queue, modifier);
111 slot = (old & 0xffffff);
124 complete =
ACCESS_ONCE(dma_queue->hw_complete_count);
125 slot |= (complete & 0xffffffffff000000);
135 if (
unlikely(((old + num) & 0xff) < num)) {
139 #ifdef __BIG_ENDIAN__
151 unsigned int num,
int wait);
159 int64_t completion_slot,
int update);