1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Support for Intel Camera Imaging ISP subsystem. 4 * Copyright (c) 2010-2015, Intel Corporation. 5 */ 6 7 #ifndef __TIMED_CTRL_PRIVATE_H_INCLUDED__ 8 #define __TIMED_CTRL_PRIVATE_H_INCLUDED__ 9 10 #include "timed_ctrl_public.h" 11 12 #include "device_access.h" 13 14 #include "assert_support.h" 15 timed_ctrl_reg_store(const timed_ctrl_ID_t ID,const unsigned int reg,const hrt_data value)16STORAGE_CLASS_TIMED_CTRL_C void timed_ctrl_reg_store( 17 const timed_ctrl_ID_t ID, 18 const unsigned int reg, 19 const hrt_data value) 20 { 21 OP___assert(ID < N_TIMED_CTRL_ID); 22 OP___assert(TIMED_CTRL_BASE[ID] != (hrt_address) - 1); 23 ia_css_device_store_uint32(TIMED_CTRL_BASE[ID] + reg * sizeof(hrt_data), value); 24 } 25 26 #endif /* __GP_DEVICE_PRIVATE_H_INCLUDED__ */ 27