linux/drivers/staging/media/atomisp/pci/input_selector_defs.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 _input_selector_defs_h
#define _input_selector_defs_h

#ifndef HIVE_ISP_ISEL_SEL_BITS
#define HIVE_ISP_ISEL_SEL_BITS
#endif

#ifndef HIVE_ISP_CH_ID_BITS
#define HIVE_ISP_CH_ID_BITS
#endif

#ifndef HIVE_ISP_FMT_TYPE_BITS
#define HIVE_ISP_FMT_TYPE_BITS
#endif

/* gp_register register id's -- Outputs */
#define HIVE_ISEL_GP_REGS_SYNCGEN_ENABLE_IDX
#define HIVE_ISEL_GP_REGS_SYNCGEN_FREE_RUNNING_IDX
#define HIVE_ISEL_GP_REGS_SYNCGEN_PAUSE_IDX
#define HIVE_ISEL_GP_REGS_SYNCGEN_NR_FRAMES_IDX
#define HIVE_ISEL_GP_REGS_SYNCGEN_NR_PIX_IDX
#define HIVE_ISEL_GP_REGS_SYNCGEN_NR_LINES_IDX
#define HIVE_ISEL_GP_REGS_SYNCGEN_HBLANK_CYCLES_IDX
#define HIVE_ISEL_GP_REGS_SYNCGEN_VBLANK_CYCLES_IDX

#define HIVE_ISEL_GP_REGS_SOF_IDX
#define HIVE_ISEL_GP_REGS_EOF_IDX
#define HIVE_ISEL_GP_REGS_SOL_IDX
#define HIVE_ISEL_GP_REGS_EOL_IDX

#define HIVE_ISEL_GP_REGS_PRBS_ENABLE
#define HIVE_ISEL_GP_REGS_PRBS_ENABLE_PORT_B
#define HIVE_ISEL_GP_REGS_PRBS_LFSR_RESET_VALUE

#define HIVE_ISEL_GP_REGS_TPG_ENABLE
#define HIVE_ISEL_GP_REGS_TPG_ENABLE_PORT_B
#define HIVE_ISEL_GP_REGS_TPG_HOR_CNT_MASK_IDX
#define HIVE_ISEL_GP_REGS_TPG_VER_CNT_MASK_IDX
#define HIVE_ISEL_GP_REGS_TPG_XY_CNT_MASK_IDX
#define HIVE_ISEL_GP_REGS_TPG_HOR_CNT_DELTA_IDX
#define HIVE_ISEL_GP_REGS_TPG_VER_CNT_DELTA_IDX
#define HIVE_ISEL_GP_REGS_TPG_MODE_IDX
#define HIVE_ISEL_GP_REGS_TPG_R1_IDX
#define HIVE_ISEL_GP_REGS_TPG_G1_IDX
#define HIVE_ISEL_GP_REGS_TPG_B1_IDX
#define HIVE_ISEL_GP_REGS_TPG_R2_IDX
#define HIVE_ISEL_GP_REGS_TPG_G2_IDX
#define HIVE_ISEL_GP_REGS_TPG_B2_IDX

#define HIVE_ISEL_GP_REGS_CH_ID_IDX
#define HIVE_ISEL_GP_REGS_FMT_TYPE_IDX
#define HIVE_ISEL_GP_REGS_DATA_SEL_IDX
#define HIVE_ISEL_GP_REGS_SBAND_SEL_IDX
#define HIVE_ISEL_GP_REGS_SYNC_SEL_IDX
#define HIVE_ISEL_GP_REGS_SRST_IDX

#define HIVE_ISEL_GP_REGS_SRST_SYNCGEN_BIT
#define HIVE_ISEL_GP_REGS_SRST_PRBS_BIT
#define HIVE_ISEL_GP_REGS_SRST_TPG_BIT
#define HIVE_ISEL_GP_REGS_SRST_FIFO_BIT

/* gp_register register id's -- Inputs   */
#define HIVE_ISEL_GP_REGS_SYNCGEN_HOR_CNT_IDX
#define HIVE_ISEL_GP_REGS_SYNCGEN_VER_CNT_IDX
#define HIVE_ISEL_GP_REGS_SYNCGEN_FRAMES_CNT_IDX

/* irq sources isel irq controller */
#define HIVE_ISEL_IRQ_SYNC_GEN_SOF_BIT_ID
#define HIVE_ISEL_IRQ_SYNC_GEN_EOF_BIT_ID
#define HIVE_ISEL_IRQ_SYNC_GEN_SOL_BIT_ID
#define HIVE_ISEL_IRQ_SYNC_GEN_EOL_BIT_ID
#define HIVE_ISEL_IRQ_NUM_IRQS

#endif /* _input_selector_defs_h */