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 * This program is free software; you can redistribute it and/or modify it 7 * under the terms and conditions of the GNU General Public License, 8 * version 2, as published by the Free Software Foundation. 9 * 10 * This program is distributed in the hope it will be useful, but WITHOUT 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 13 * more details. 14 */ 15 16#ifndef __TIMED_CTRL_PRIVATE_H_INCLUDED__ 17#define __TIMED_CTRL_PRIVATE_H_INCLUDED__ 18 19#include "timed_ctrl_public.h" 20 21#include "device_access.h" 22 23#include "assert_support.h" 24 25STORAGE_CLASS_TIMED_CTRL_C void timed_ctrl_reg_store( 26 const timed_ctrl_ID_t ID, 27 const unsigned int reg, 28 const hrt_data value) 29{ 30 OP___assert(ID < N_TIMED_CTRL_ID); 31 OP___assert(TIMED_CTRL_BASE[ID] != (hrt_address) - 1); 32 ia_css_device_store_uint32(TIMED_CTRL_BASE[ID] + reg * sizeof(hrt_data), value); 33} 34 35#endif /* __GP_DEVICE_PRIVATE_H_INCLUDED__ */ 36