linux/drivers/staging/media/atomisp/pci/hive_isp_css_common/sp_global.h

/* 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_GLOBAL_H_INCLUDED__
#define __SP_GLOBAL_H_INCLUDED__

#include <system_local.h>

#include <scalar_processor_2400_params.h>

#define SP_PMEM_WIDTH_LOG2
#define SP_PMEM_SIZE

#define SP_DMEM_SIZE

/* SP Registers */
#define SP_PC_REG
#define SP_SC_REG
#define SP_START_ADDR_REG
#define SP_ICACHE_ADDR_REG
#define SP_IRQ_READY_REG
#define SP_IRQ_CLEAR_REG
#define SP_ICACHE_INV_REG
#define SP_CTRL_SINK_REG

/* SP Register bits */
#define SP_RST_BIT
#define SP_START_BIT
#define SP_BREAK_BIT
#define SP_RUN_BIT
#define SP_BROKEN_BIT
#define SP_IDLE_BIT
#define SP_SLEEPING_BIT
#define SP_STALLING_BIT
#define SP_IRQ_CLEAR_BIT
#define SP_IRQ_READY_BIT
#define SP_IRQ_SLEEPING_BIT

#define SP_ICACHE_INV_BIT
#define SP_IPREFETCH_EN_BIT

#define SP_FIFO0_SINK_BIT
#define SP_FIFO1_SINK_BIT
#define SP_FIFO2_SINK_BIT
#define SP_FIFO3_SINK_BIT
#define SP_FIFO4_SINK_BIT
#define SP_FIFO5_SINK_BIT
#define SP_FIFO6_SINK_BIT
#define SP_FIFO7_SINK_BIT
#define SP_FIFO8_SINK_BIT
#define SP_FIFO9_SINK_BIT
#define SP_FIFOA_SINK_BIT
#define SP_DMEM_SINK_BIT
#define SP_CTRL_MT_SINK_BIT
#define SP_ICACHE_MT_SINK_BIT

#define SP_FIFO0_SINK_REG
#define SP_FIFO1_SINK_REG
#define SP_FIFO2_SINK_REG
#define SP_FIFO3_SINK_REG
#define SP_FIFO4_SINK_REG
#define SP_FIFO5_SINK_REG
#define SP_FIFO6_SINK_REG
#define SP_FIFO7_SINK_REG
#define SP_FIFO8_SINK_REG
#define SP_FIFO9_SINK_REG
#define SP_FIFOA_SINK_REG
#define SP_DMEM_SINK_REG
#define SP_CTRL_MT_SINK_REG
#define SP_ICACHE_MT_SINK_REG

#endif /* __SP_GLOBAL_H_INCLUDED__ */