linux/drivers/media/pci/cobalt/m00514_syncgen_flow_evcnt_memmap_package.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 *  Copyright 2014-2015 Cisco Systems, Inc. and/or its affiliates.
 *  All rights reserved.
 */

#ifndef M00514_SYNCGEN_FLOW_EVCNT_MEMMAP_PACKAGE_H
#define M00514_SYNCGEN_FLOW_EVCNT_MEMMAP_PACKAGE_H

/*******************************************************************
 * Register Block
 * M00514_SYNCGEN_FLOW_EVCNT_MEMMAP_PACKAGE_VHD_REGMAP
 *******************************************************************/
struct m00514_syncgen_flow_evcnt_regmap {};

#define M00514_SYNCGEN_FLOW_EVCNT_REG_CONTROL_OFST
#define M00514_SYNCGEN_FLOW_EVCNT_REG_SYNC_GENERATOR_H_SYNC_LENGTH_OFST
#define M00514_SYNCGEN_FLOW_EVCNT_REG_SYNC_GENERATOR_H_BACKPORCH_LENGTH_OFST
#define M00514_SYNCGEN_FLOW_EVCNT_REG_SYNC_GENERATOR_H_ACTIVE_LENGTH_OFST
#define M00514_SYNCGEN_FLOW_EVCNT_REG_SYNC_GENERATOR_H_FRONTPORCH_LENGTH_OFST
#define M00514_SYNCGEN_FLOW_EVCNT_REG_SYNC_GENERATOR_V_SYNC_LENGTH_OFST
#define M00514_SYNCGEN_FLOW_EVCNT_REG_SYNC_GENERATOR_V_BACKPORCH_LENGTH_OFST
#define M00514_SYNCGEN_FLOW_EVCNT_REG_SYNC_GENERATOR_V_ACTIVE_LENGTH_OFST
#define M00514_SYNCGEN_FLOW_EVCNT_REG_SYNC_GENERATOR_V_FRONTPORCH_LENGTH_OFST
#define M00514_SYNCGEN_FLOW_EVCNT_REG_ERROR_COLOR_OFST
#define M00514_SYNCGEN_FLOW_EVCNT_REG_RD_STATUS_OFST
#define M00514_SYNCGEN_FLOW_EVCNT_REG_RD_EVCNT_COUNT_OFST

/*******************************************************************
 * Bit Mask for register
 * M00514_SYNCGEN_FLOW_EVCNT_MEMMAP_PACKAGE_VHD_BITMAP
 *******************************************************************/
/* control [7:0] */
#define M00514_CONTROL_BITMAP_SYNC_GENERATOR_LOAD_PARAM_OFST
#define M00514_CONTROL_BITMAP_SYNC_GENERATOR_LOAD_PARAM_MSK
#define M00514_CONTROL_BITMAP_SYNC_GENERATOR_ENABLE_OFST
#define M00514_CONTROL_BITMAP_SYNC_GENERATOR_ENABLE_MSK
#define M00514_CONTROL_BITMAP_FLOW_CTRL_OUTPUT_ENABLE_OFST
#define M00514_CONTROL_BITMAP_FLOW_CTRL_OUTPUT_ENABLE_MSK
#define M00514_CONTROL_BITMAP_HSYNC_POLARITY_LOW_OFST
#define M00514_CONTROL_BITMAP_HSYNC_POLARITY_LOW_MSK
#define M00514_CONTROL_BITMAP_VSYNC_POLARITY_LOW_OFST
#define M00514_CONTROL_BITMAP_VSYNC_POLARITY_LOW_MSK
#define M00514_CONTROL_BITMAP_EVCNT_ENABLE_OFST
#define M00514_CONTROL_BITMAP_EVCNT_ENABLE_MSK
#define M00514_CONTROL_BITMAP_EVCNT_CLEAR_OFST
#define M00514_CONTROL_BITMAP_EVCNT_CLEAR_MSK
#define M00514_CONTROL_BITMAP_FORMAT_16_BPP_OFST
#define M00514_CONTROL_BITMAP_FORMAT_16_BPP_MSK
/* error_color [23:0] */
#define M00514_ERROR_COLOR_BITMAP_BLUE_OFST
#define M00514_ERROR_COLOR_BITMAP_BLUE_MSK
#define M00514_ERROR_COLOR_BITMAP_GREEN_OFST
#define M00514_ERROR_COLOR_BITMAP_GREEN_MSK
#define M00514_ERROR_COLOR_BITMAP_RED_OFST
#define M00514_ERROR_COLOR_BITMAP_RED_MSK
/* rd_status [1:0] */
#define M00514_RD_STATUS_BITMAP_FLOW_CTRL_NO_DATA_ERROR_OFST
#define M00514_RD_STATUS_BITMAP_FLOW_CTRL_NO_DATA_ERROR_MSK
#define M00514_RD_STATUS_BITMAP_READY_BUFFER_FULL_OFST
#define M00514_RD_STATUS_BITMAP_READY_BUFFER_FULL_MSK

#endif /*M00514_SYNCGEN_FLOW_EVCNT_MEMMAP_PACKAGE_H*/