/* SPDX-License-Identifier: GPL-2.0 */ /* * Support for Intel Camera Imaging ISP subsystem. * Copyright (c) 2015, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the hope it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. */ #ifndef __SP_PUBLIC_H_INCLUDED__ #define __SP_PUBLIC_H_INCLUDED__ #include #include "system_local.h" /*! Enable or disable the program complete irq signal of SP[ID] \param ID[in] SP identifier \param cnd[in] predicate \return none, if(cnd) enable(SP[ID].irq) else disable(SP[ID].irq) */ void cnd_sp_irq_enable( const sp_ID_t ID, const bool cnd); /*! Write to the status and control register of SP[ID] \param ID[in] SP identifier \param reg[in] register index \param value[in] The data to be written \return none, SP[ID].sc[reg] = value */ STORAGE_CLASS_SP_H void sp_ctrl_store( const sp_ID_t ID, const hrt_address reg, const hrt_data value); /*! Read from the status and control register of SP[ID] \param ID[in] SP identifier \param reg[in] register index \param value[in] The data to be written \return SP[ID].sc[reg] */ STORAGE_CLASS_SP_H hrt_data sp_ctrl_load( const sp_ID_t ID, const hrt_address reg); /*! Get the status of a bitfield in the control register of SP[ID] \param ID[in] SP identifier \param reg[in] register index \param bit[in] The bit index to be checked \return (SP[ID].sc[reg] & (1<