LCOV - code coverage report
Current view: top level - zephyr/dt-bindings/memory-attr - memory-attr-sw.h Hit Total Coverage
Test: new.info Lines: 0 10 0.0 %
Date: 2025-01-09 03:30:05

          Line data    Source code
       1           0 : /*
       2             :  * Copyright (c) 2023 Carlo Caione <ccaione@baylibre.com>
       3             :  *
       4             :  * SPDX-License-Identifier: Apache-2.0
       5             :  */
       6             : #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_MEM_ATTR_SW_H_
       7             : #define ZEPHYR_INCLUDE_DT_BINDINGS_MEM_ATTR_SW_H_
       8             : 
       9             : #include <zephyr/sys/util_macro.h>
      10             : #include <zephyr/dt-bindings/memory-attr/memory-attr.h>
      11             : 
      12             : /*
      13             :  * Software specific memory attributes.
      14             :  */
      15           0 : #define DT_MEM_SW_MASK                  DT_MEM_SW_ATTR_MASK
      16           0 : #define DT_MEM_SW_GET(x)                ((x) & DT_MEM_SW_ATTR_MASK)
      17           0 : #define DT_MEM_SW(x)                    ((x) << DT_MEM_SW_ATTR_SHIFT)
      18             : 
      19           0 : #define  ATTR_SW_ALLOC_CACHE            BIT(0)
      20           0 : #define  ATTR_SW_ALLOC_NON_CACHE        BIT(1)
      21           0 : #define  ATTR_SW_ALLOC_DMA              BIT(2)
      22             : 
      23           0 : #define DT_MEM_SW_ALLOC_CACHE           DT_MEM_SW(ATTR_SW_ALLOC_CACHE)
      24           0 : #define DT_MEM_SW_ALLOC_NON_CACHE       DT_MEM_SW(ATTR_SW_ALLOC_NON_CACHE)
      25           0 : #define DT_MEM_SW_ALLOC_DMA             DT_MEM_SW(ATTR_SW_ALLOC_DMA)
      26             : 
      27             : #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_MEM_ATTR_SW_H_ */

Generated by: LCOV version 1.14