linux/drivers/staging/media/atomisp/pci/hive_isp_css_common/gdc_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 __GDC_GLOBAL_H_INCLUDED__
#define __GDC_GLOBAL_H_INCLUDED__

#define IS_GDC_VERSION_2

#include <type_support.h>
#include "gdc_v2_defs.h"

/*
 * Storage addresses for packed data transfer
 */
#define GDC_PARAM_ICX_LEFT_ROUNDED_IDX
#define GDC_PARAM_OXDIM_FLOORED_IDX
#define GDC_PARAM_OXDIM_LAST_IDX
#define GDC_PARAM_WOIX_LAST_IDX
#define GDC_PARAM_IY_TOPLEFT_IDX
#define GDC_PARAM_CHUNK_CNT_IDX
/*#define GDC_PARAM_ELEMENTS_PER_XMEM_ADDR_IDX    6 */		/* Derived from bpp */
#define GDC_PARAM_BPP_IDX
#define GDC_PARAM_BLOCK_HEIGHT_IDX
/*#define GDC_PARAM_DMA_CHANNEL_STRIDE_A_IDX      8*/		/* The DMA stride == the GDC buffer stride */
#define GDC_PARAM_WOIX_IDX
#define GDC_PARAM_DMA_CHANNEL_STRIDE_B_IDX
#define GDC_PARAM_DMA_CHANNEL_WIDTH_A_IDX
#define GDC_PARAM_DMA_CHANNEL_WIDTH_B_IDX
#define GDC_PARAM_VECTORS_PER_LINE_IN_IDX
#define GDC_PARAM_VECTORS_PER_LINE_OUT_IDX
#define GDC_PARAM_VMEM_IN_DIMY_IDX
#define GDC_PARAM_COMMAND_IDX
#define N_GDC_PARAM

/* Because of the packed parameter transfer max(params) == max(fragments) */
#define N_GDC_FRAGMENTS

/* The GDC is capable of higher internal precision than the parameter data structures */
#define HRT_GDC_COORD_SCALE_BITS
#define HRT_GDC_COORD_SCALE

gdc_channel_ID_t;

gdc_bits_per_pixel_t;

gdc_scale_param_mem_t;

gdc_warp_param_mem_t;

#endif /* __GDC_GLOBAL_H_INCLUDED__ */