Coverage Report

Created: 2026-11-13 06:22

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/barebox/drivers/dma/debug.h
Line
Count
Source
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
/*
3
 * Copyright (C) 2008 Advanced Micro Devices, Inc.
4
 *
5
 * Author: Joerg Roedel <joerg.roedel@amd.com>
6
 */
7
8
#ifndef _KERNEL_DMA_DEBUG_H
9
#define _KERNEL_DMA_DEBUG_H
10
11
#include <linux/types.h>
12
13
struct device;
14
15
#ifdef CONFIG_DMA_API_DEBUG
16
extern void debug_dma_map(struct device *dev, void *addr,
17
        size_t size,
18
        int direction, dma_addr_t dma_addr);
19
20
extern void debug_dma_unmap(struct device *dev, dma_addr_t addr,
21
          size_t size, int direction);
22
23
extern void debug_dma_sync_single_for_cpu(struct device *dev,
24
            dma_addr_t dma_handle, size_t size,
25
            int direction);
26
27
extern void debug_dma_sync_single_for_device(struct device *dev,
28
               dma_addr_t dma_handle,
29
               size_t size, int direction);
30
31
#else /* CONFIG_DMA_API_DEBUG */
32
static inline void debug_dma_map(struct device *dev, void *addr,
33
         size_t size,
34
         int direction, dma_addr_t dma_addr)
35
0
{
36
0
}
37
38
static inline void debug_dma_unmap(struct device *dev, dma_addr_t addr,
39
           size_t size, int direction)
40
0
{
41
0
}
42
43
static inline void debug_dma_sync_single_for_cpu(struct device *dev,
44
             dma_addr_t dma_handle,
45
             size_t size, int direction)
46
0
{
47
0
}
48
49
static inline void debug_dma_sync_single_for_device(struct device *dev,
50
                dma_addr_t dma_handle,
51
                size_t size, int direction)
52
0
{
53
0
}
54
55
#endif /* CONFIG_DMA_API_DEBUG */
56
#endif /* _KERNEL_DMA_DEBUG_H */