19d4fa1a1SMauro Carvalho Chehab /* 29d4fa1a1SMauro Carvalho Chehab * Support for Intel Camera Imaging ISP subsystem. 39d4fa1a1SMauro Carvalho Chehab * Copyright (c) 2010-2015, Intel Corporation. 49d4fa1a1SMauro Carvalho Chehab * 59d4fa1a1SMauro Carvalho Chehab * This program is free software; you can redistribute it and/or modify it 69d4fa1a1SMauro Carvalho Chehab * under the terms and conditions of the GNU General Public License, 79d4fa1a1SMauro Carvalho Chehab * version 2, as published by the Free Software Foundation. 89d4fa1a1SMauro Carvalho Chehab * 99d4fa1a1SMauro Carvalho Chehab * This program is distributed in the hope it will be useful, but WITHOUT 109d4fa1a1SMauro Carvalho Chehab * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 119d4fa1a1SMauro Carvalho Chehab * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 129d4fa1a1SMauro Carvalho Chehab * more details. 139d4fa1a1SMauro Carvalho Chehab */ 149d4fa1a1SMauro Carvalho Chehab 159d4fa1a1SMauro Carvalho Chehab #ifndef __TIMED_CTRL_PRIVATE_H_INCLUDED__ 169d4fa1a1SMauro Carvalho Chehab #define __TIMED_CTRL_PRIVATE_H_INCLUDED__ 179d4fa1a1SMauro Carvalho Chehab 189d4fa1a1SMauro Carvalho Chehab #include "timed_ctrl_public.h" 199d4fa1a1SMauro Carvalho Chehab 209d4fa1a1SMauro Carvalho Chehab #include "device_access.h" 219d4fa1a1SMauro Carvalho Chehab 229d4fa1a1SMauro Carvalho Chehab #include "assert_support.h" 239d4fa1a1SMauro Carvalho Chehab 249d4fa1a1SMauro Carvalho Chehab STORAGE_CLASS_TIMED_CTRL_C void timed_ctrl_reg_store( 259d4fa1a1SMauro Carvalho Chehab const timed_ctrl_ID_t ID, 269d4fa1a1SMauro Carvalho Chehab const unsigned int reg, 279d4fa1a1SMauro Carvalho Chehab const hrt_data value) 289d4fa1a1SMauro Carvalho Chehab { 299d4fa1a1SMauro Carvalho Chehab OP___assert(ID < N_TIMED_CTRL_ID); 309d4fa1a1SMauro Carvalho Chehab OP___assert(TIMED_CTRL_BASE[ID] != (hrt_address) - 1); 319d4fa1a1SMauro Carvalho Chehab ia_css_device_store_uint32(TIMED_CTRL_BASE[ID] + reg * sizeof(hrt_data), value); 329d4fa1a1SMauro Carvalho Chehab } 339d4fa1a1SMauro Carvalho Chehab 349d4fa1a1SMauro Carvalho Chehab #endif /* __GP_DEVICE_PRIVATE_H_INCLUDED__ */ 35