1 /* Public domain. */ 2 3 #ifndef _LINUX_DMA_FENCE_ARRAY_H 4 #define _LINUX_DMA_FENCE_ARRAY_H 5 6 #include <linux/dma-fence.h> 7 8 #ifndef STUB 9 #include <sys/types.h> 10 #include <sys/systm.h> 11 #define STUB() do { printf("%s: stub\n", __func__); } while(0) 12 #endif 13 14 struct dma_fence_array { 15 struct dma_fence base; 16 unsigned int num_fences; 17 struct dma_fence **fences; 18 }; 19 20 static inline struct dma_fence_array * 21 to_dma_fence_array(struct dma_fence *fence) 22 { 23 return NULL; 24 } 25 26 static inline bool 27 dma_fence_is_array(struct dma_fence *fence) 28 { 29 return false; 30 } 31 32 static inline struct dma_fence_array * 33 dma_fence_array_create(int num_fences, struct dma_fence **fences, u64 context, 34 unsigned seqno, bool signal_on_any) 35 { 36 STUB(); 37 return NULL; 38 } 39 40 #endif 41