1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Support for Intel Camera Imaging ISP subsystem. 4 * Copyright (c) 2015, Intel Corporation. 5 */ 6 7 #ifndef __PIXELGEN_PUBLIC_H_INCLUDED__ 8 #define __PIXELGEN_PUBLIC_H_INCLUDED__ 9 10 /***************************************************** 11 * 12 * Native command interface (NCI). 13 * 14 *****************************************************/ 15 /** 16 * @brief Get the pixelgen state. 17 * Get the state of the pixelgen regiester-set. 18 * 19 * @param[in] id The global unique ID of the pixelgen controller. 20 * @param[out] state Point to the register-state. 21 */ 22 STORAGE_CLASS_PIXELGEN_H void pixelgen_ctrl_get_state( 23 const pixelgen_ID_t ID, 24 pixelgen_ctrl_state_t *state); 25 /** 26 * @brief Dump the pixelgen state. 27 * Dump the state of the pixelgen regiester-set. 28 * 29 * @param[in] id The global unique ID of the pixelgen controller. 30 * @param[in] state Point to the register-state. 31 */ 32 STORAGE_CLASS_PIXELGEN_H void pixelgen_ctrl_dump_state( 33 const pixelgen_ID_t ID, 34 pixelgen_ctrl_state_t *state); 35 /* end of NCI */ 36 37 /***************************************************** 38 * 39 * Device level interface (DLI). 40 * 41 *****************************************************/ 42 /** 43 * @brief Load the register value. 44 * Load the value of the register of the pixelgen 45 * 46 * @param[in] ID The global unique ID for the pixelgen instance. 47 * @param[in] reg The offset address of the register. 48 * 49 * @return the value of the register. 50 */ 51 STORAGE_CLASS_PIXELGEN_H hrt_data pixelgen_ctrl_reg_load( 52 const pixelgen_ID_t ID, 53 const hrt_address reg); 54 /** 55 * @brief Store a value to the register. 56 * Store a value to the registe of the pixelgen 57 * 58 * @param[in] ID The global unique ID for the pixelgen. 59 * @param[in] reg The offset address of the register. 60 * @param[in] value The value to be stored. 61 * 62 */ 63 STORAGE_CLASS_PIXELGEN_H void pixelgen_ctrl_reg_store( 64 const pixelgen_ID_t ID, 65 const hrt_address reg, 66 const hrt_data value); 67 /* end of DLI */ 68 69 #endif /* __PIXELGEN_PUBLIC_H_INCLUDED__ */ 70