1/* 2 * Support for Intel Camera Imaging ISP subsystem. 3 * Copyright (c) 2010-2015, Intel Corporation. 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms and conditions of the GNU General Public License, 7 * version 2, as published by the Free Software Foundation. 8 * 9 * This program is distributed in the hope it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 * more details. 13 */ 14 15#ifndef __ISP_LOCAL_H_INCLUDED__ 16#define __ISP_LOCAL_H_INCLUDED__ 17 18#include <stdbool.h> 19 20#include "isp_global.h" 21 22#include <isp2400_support.h> 23 24#define HIVE_ISP_VMEM_MASK ((1U<<ISP_VMEM_ELEMBITS)-1) 25 26typedef struct isp_state_s isp_state_t; 27typedef struct isp_stall_s isp_stall_t; 28 29struct isp_state_s { 30 int pc; 31 int status_register; 32 bool is_broken; 33 bool is_idle; 34 bool is_sleeping; 35 bool is_stalling; 36}; 37 38struct isp_stall_s { 39 bool fifo0; 40 bool fifo1; 41 bool fifo2; 42 bool fifo3; 43 bool fifo4; 44 bool fifo5; 45 bool fifo6; 46 bool stat_ctrl; 47 bool dmem; 48 bool vmem; 49 bool vamem1; 50 bool vamem2; 51 bool vamem3; 52 bool hmem; 53 bool pmem; 54 bool icache_master; 55}; 56 57#endif /* __ISP_LOCAL_H_INCLUDED__ */ 58