linux/include/video/gbe.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * include/video/gbe.h -- SGI GBE (Graphics Back End)
 *
 * Copyright (C) 1999 Silicon Graphics, Inc. (Jeffrey Newquist)
 */

#ifndef __GBE_H__
#define __GBE_H__

struct sgi_gbe {};

#define MASK(msb, lsb)
#define GET(v, msb, lsb)
#define SET(v, f, msb, lsb)

#define GET_GBE_FIELD(reg, field, v)
#define SET_GBE_FIELD(reg, field, v, f)

/*
 * Bit mask information
 */
#define GBE_CTRLSTAT_CHIPID_MSB
#define GBE_CTRLSTAT_CHIPID_LSB
#define GBE_CTRLSTAT_SENSE_N_MSB
#define GBE_CTRLSTAT_SENSE_N_LSB
#define GBE_CTRLSTAT_PCLKSEL_MSB
#define GBE_CTRLSTAT_PCLKSEL_LSB

#define GBE_DOTCLK_M_MSB
#define GBE_DOTCLK_M_LSB
#define GBE_DOTCLK_N_MSB
#define GBE_DOTCLK_N_LSB
#define GBE_DOTCLK_P_MSB
#define GBE_DOTCLK_P_LSB
#define GBE_DOTCLK_RUN_MSB
#define GBE_DOTCLK_RUN_LSB

#define GBE_VT_XY_Y_MSB
#define GBE_VT_XY_Y_LSB
#define GBE_VT_XY_X_MSB
#define GBE_VT_XY_X_LSB
#define GBE_VT_XY_FREEZE_MSB
#define GBE_VT_XY_FREEZE_LSB

#define GBE_FP_VDRV_ON_MSB
#define GBE_FP_VDRV_ON_LSB
#define GBE_FP_VDRV_OFF_MSB
#define GBE_FP_VDRV_OFF_LSB

#define GBE_FP_HDRV_ON_MSB
#define GBE_FP_HDRV_ON_LSB
#define GBE_FP_HDRV_OFF_MSB
#define GBE_FP_HDRV_OFF_LSB

#define GBE_FP_DE_ON_MSB
#define GBE_FP_DE_ON_LSB
#define GBE_FP_DE_OFF_MSB
#define GBE_FP_DE_OFF_LSB

#define GBE_VT_VSYNC_VSYNC_ON_MSB
#define GBE_VT_VSYNC_VSYNC_ON_LSB
#define GBE_VT_VSYNC_VSYNC_OFF_MSB
#define GBE_VT_VSYNC_VSYNC_OFF_LSB

#define GBE_VT_HSYNC_HSYNC_ON_MSB
#define GBE_VT_HSYNC_HSYNC_ON_LSB
#define GBE_VT_HSYNC_HSYNC_OFF_MSB
#define GBE_VT_HSYNC_HSYNC_OFF_LSB

#define GBE_VT_VBLANK_VBLANK_ON_MSB
#define GBE_VT_VBLANK_VBLANK_ON_LSB
#define GBE_VT_VBLANK_VBLANK_OFF_MSB
#define GBE_VT_VBLANK_VBLANK_OFF_LSB

#define GBE_VT_HBLANK_HBLANK_ON_MSB
#define GBE_VT_HBLANK_HBLANK_ON_LSB
#define GBE_VT_HBLANK_HBLANK_OFF_MSB
#define GBE_VT_HBLANK_HBLANK_OFF_LSB

#define GBE_VT_FLAGS_F2RF_HIGH_MSB
#define GBE_VT_FLAGS_F2RF_HIGH_LSB
#define GBE_VT_FLAGS_SYNC_LOW_MSB
#define GBE_VT_FLAGS_SYNC_LOW_LSB
#define GBE_VT_FLAGS_SYNC_HIGH_MSB
#define GBE_VT_FLAGS_SYNC_HIGH_LSB
#define GBE_VT_FLAGS_HDRV_LOW_MSB
#define GBE_VT_FLAGS_HDRV_LOW_LSB
#define GBE_VT_FLAGS_HDRV_INVERT_MSB
#define GBE_VT_FLAGS_HDRV_INVERT_LSB
#define GBE_VT_FLAGS_VDRV_LOW_MSB
#define GBE_VT_FLAGS_VDRV_LOW_LSB
#define GBE_VT_FLAGS_VDRV_INVERT_MSB
#define GBE_VT_FLAGS_VDRV_INVERT_LSB

#define GBE_VT_VCMAP_VCMAP_ON_MSB
#define GBE_VT_VCMAP_VCMAP_ON_LSB
#define GBE_VT_VCMAP_VCMAP_OFF_MSB
#define GBE_VT_VCMAP_VCMAP_OFF_LSB

#define GBE_VT_HCMAP_HCMAP_ON_MSB
#define GBE_VT_HCMAP_HCMAP_ON_LSB
#define GBE_VT_HCMAP_HCMAP_OFF_MSB
#define GBE_VT_HCMAP_HCMAP_OFF_LSB

#define GBE_VT_XYMAX_MAXX_MSB
#define GBE_VT_XYMAX_MAXX_LSB
#define GBE_VT_XYMAX_MAXY_MSB
#define GBE_VT_XYMAX_MAXY_LSB

#define GBE_VT_HPIXEN_HPIXEN_ON_MSB
#define GBE_VT_HPIXEN_HPIXEN_ON_LSB
#define GBE_VT_HPIXEN_HPIXEN_OFF_MSB
#define GBE_VT_HPIXEN_HPIXEN_OFF_LSB

#define GBE_VT_VPIXEN_VPIXEN_ON_MSB
#define GBE_VT_VPIXEN_VPIXEN_ON_LSB
#define GBE_VT_VPIXEN_VPIXEN_OFF_MSB
#define GBE_VT_VPIXEN_VPIXEN_OFF_LSB

#define GBE_OVR_CONTROL_OVR_DMA_ENABLE_MSB
#define GBE_OVR_CONTROL_OVR_DMA_ENABLE_LSB

#define GBE_OVR_INHWCTRL_OVR_DMA_ENABLE_MSB
#define GBE_OVR_INHWCTRL_OVR_DMA_ENABLE_LSB

#define GBE_OVR_WIDTH_TILE_OVR_FIFO_RESET_MSB
#define GBE_OVR_WIDTH_TILE_OVR_FIFO_RESET_LSB

#define GBE_FRM_CONTROL_FRM_DMA_ENABLE_MSB
#define GBE_FRM_CONTROL_FRM_DMA_ENABLE_LSB
#define GBE_FRM_CONTROL_FRM_TILE_PTR_MSB
#define GBE_FRM_CONTROL_FRM_TILE_PTR_LSB
#define GBE_FRM_CONTROL_FRM_LINEAR_MSB
#define GBE_FRM_CONTROL_FRM_LINEAR_LSB

#define GBE_FRM_INHWCTRL_FRM_DMA_ENABLE_MSB
#define GBE_FRM_INHWCTRL_FRM_DMA_ENABLE_LSB

#define GBE_FRM_SIZE_TILE_FRM_WIDTH_TILE_MSB
#define GBE_FRM_SIZE_TILE_FRM_WIDTH_TILE_LSB
#define GBE_FRM_SIZE_TILE_FRM_RHS_MSB
#define GBE_FRM_SIZE_TILE_FRM_RHS_LSB
#define GBE_FRM_SIZE_TILE_FRM_DEPTH_MSB
#define GBE_FRM_SIZE_TILE_FRM_DEPTH_LSB
#define GBE_FRM_SIZE_TILE_FRM_FIFO_RESET_MSB
#define GBE_FRM_SIZE_TILE_FRM_FIFO_RESET_LSB

#define GBE_FRM_SIZE_PIXEL_FB_HEIGHT_PIX_MSB
#define GBE_FRM_SIZE_PIXEL_FB_HEIGHT_PIX_LSB

#define GBE_DID_CONTROL_DID_DMA_ENABLE_MSB
#define GBE_DID_CONTROL_DID_DMA_ENABLE_LSB
#define GBE_DID_INHWCTRL_DID_DMA_ENABLE_MSB
#define GBE_DID_INHWCTRL_DID_DMA_ENABLE_LSB

#define GBE_DID_START_XY_DID_STARTY_MSB
#define GBE_DID_START_XY_DID_STARTY_LSB
#define GBE_DID_START_XY_DID_STARTX_MSB
#define GBE_DID_START_XY_DID_STARTX_LSB

#define GBE_CRS_START_XY_CRS_STARTY_MSB
#define GBE_CRS_START_XY_CRS_STARTY_LSB
#define GBE_CRS_START_XY_CRS_STARTX_MSB
#define GBE_CRS_START_XY_CRS_STARTX_LSB

#define GBE_WID_AUX_MSB
#define GBE_WID_AUX_LSB
#define GBE_WID_GAMMA_MSB
#define GBE_WID_GAMMA_LSB
#define GBE_WID_CM_MSB
#define GBE_WID_CM_LSB
#define GBE_WID_TYP_MSB
#define GBE_WID_TYP_LSB
#define GBE_WID_BUF_MSB
#define GBE_WID_BUF_LSB

#define GBE_VC_START_XY_VC_STARTY_MSB
#define GBE_VC_START_XY_VC_STARTY_LSB
#define GBE_VC_START_XY_VC_STARTX_MSB
#define GBE_VC_START_XY_VC_STARTX_LSB

/* Constants */

#define GBE_FRM_DEPTH_8
#define GBE_FRM_DEPTH_16
#define GBE_FRM_DEPTH_32

#define GBE_CMODE_I8
#define GBE_CMODE_I12
#define GBE_CMODE_RG3B2
#define GBE_CMODE_RGB4
#define GBE_CMODE_ARGB5
#define GBE_CMODE_RGB8
#define GBE_CMODE_RGBA5
#define GBE_CMODE_RGB10

#define GBE_BMODE_BOTH

#define GBE_CRS_MAGIC
#define GBE_PIXEN_MAGIC_ON
#define GBE_PIXEN_MAGIC_OFF

#define GBE_TLB_SIZE

/* [1] - only GBE revision 2 and later */

/*
 * Video Timing Data Structure
 */

struct gbe_timing_info {};

/* Defines for gbe_vof_info_t flags */

#define GBE_VOF_UNKNOWNMON
#define GBE_VOF_STEREO
#define GBE_VOF_DO_GENSYNC
#define GBE_VOF_SYNC_ON_GREEN
#define GBE_VOF_FLATPANEL
#define GBE_VOF_MAGICKEY

#endif		/* ! __GBE_H__ */