LCOV - code coverage report
Current view: top level - zephyr/dt-bindings/dma - infineon-xmc4xxx-dma.h Hit Total Coverage
Test: new.info Lines: 0 8 0.0 %
Date: 2024-12-22 00:14:23

          Line data    Source code
       1           0 : /*
       2             :  * Copyright (c) 2022 Andriy Gelman <andriy.gelman@gmail.com>
       3             :  *
       4             :  * SPDX-License-Identifier: Apache-2.0
       5             :  */
       6             : 
       7             : #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_DMA_INFINEON_XMC4XXX_DMA_H_
       8             : #define ZEPHYR_INCLUDE_DT_BINDINGS_DMA_INFINEON_XMC4XXX_DMA_H_
       9             : 
      10           0 : #define XMC4XXX_DMA_REQUEST_SOURCE_POS  0
      11           0 : #define XMC4XXX_DMA_REQUEST_SOURCE_MASK 0xf
      12             : 
      13           0 : #define XMC4XXX_DMA_LINE_POS  4
      14           0 : #define XMC4XXX_DMA_LINE_MASK 0xf
      15             : 
      16           0 : #define XMC4XXX_DMA_GET_REQUEST_SOURCE(mx)                                                         \
      17             :         ((mx >> XMC4XXX_DMA_REQUEST_SOURCE_POS) & XMC4XXX_DMA_REQUEST_SOURCE_MASK)
      18             : 
      19           0 : #define XMC4XXX_DMA_GET_LINE(mx) ((mx >> XMC4XXX_DMA_LINE_POS) & XMC4XXX_DMA_LINE_MASK)
      20             : 
      21           0 : #define XMC4XXX_SET_CONFIG(line, rs)                                                               \
      22             :         ((line) << XMC4XXX_DMA_LINE_POS | (rs) << XMC4XXX_DMA_REQUEST_SOURCE_POS)
      23             : 
      24             : #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_DMA_INFINEON_XMC4XXX_DMA_H_ */

Generated by: LCOV version 1.14