dma-debug: add initialization code
Impact: add code to initialize dma-debug core data structures Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
This commit is contained in:
parent
3b1e79ed73
commit
6bf078715c
2 changed files with 80 additions and 0 deletions
|
@ -20,6 +20,20 @@
|
|||
#ifndef __DMA_DEBUG_H
|
||||
#define __DMA_DEBUG_H
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
struct device;
|
||||
|
||||
#ifdef CONFIG_DMA_API_DEBUG
|
||||
|
||||
extern void dma_debug_init(u32 num_entries);
|
||||
|
||||
#else /* CONFIG_DMA_API_DEBUG */
|
||||
|
||||
static inline void dma_debug_init(u32 num_entries)
|
||||
{
|
||||
}
|
||||
|
||||
#endif /* CONFIG_DMA_API_DEBUG */
|
||||
|
||||
#endif /* __DMA_DEBUG_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue