00001 00041 #ifndef DMAC_UTIL_H_INCLUDED 00042 #define DMAC_UTIL_H_INCLUDED 00043 00044 #include <buffer.h> 00045 #include <slist.h> 00046 #include <dmac/dma_controller.h> 00047 00048 static inline void dmac_verify_req(struct dmac_request *req) 00049 { 00050 #ifdef DEBUG 00051 struct buffer *buf; 00052 00053 assert(!slist_is_empty(&req->buf_list)); 00054 dmac_req_for_each_buffer(req, buf) { 00055 dbg_printf("dmaca: verifying buf %p: %p %p %08lx %zu\n", 00056 buf, buf->dma_desc, buf->addr.ptr, 00057 buf->addr.phys, buf->len); 00058 assert(!buf->dma_desc); 00059 } 00060 #endif 00061 } 00062 00063 #endif /* DMAC_UTIL_H_INCLUDED */
1.5.8