1 /* 2 * Copyright (c) 2022, Arm Limited. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 * 6 */ 7 8 #ifndef __DMA_PRIV_CONFIG_H__ 9 #define __DMA_PRIV_CONFIG_H__ 10 11 #include "dma350_lib.h" 12 #include "dma350_checker_layer.h" 13 14 #include <stdint.h> 15 16 17 /** 18 * \brief Pass the parameters to a function, which will forward it to \ref 19 * config_dma350_for_unprivileged_actor in the checker layer. 20 * 21 * \param[in] config_type The DMA350 command's type 22 * \param[in] channel The DMA channel, the operation should use 23 * \param[in] config The config for the DMA350 command. Its type has to 24 * be in sync with the command. 25 * 26 * \return Result of the operation \ref dma350_lib_error_t 27 * 28 * \note This might contains platform-dependant codes. 29 */ 30 extern enum dma350_lib_error_t request_dma350_priv_config( 31 enum dma350_config_type_t config_type, uint8_t channel, void *config); 32 33 #endif /* __DMA_PRIV_CONFIG_H__ */ 34