linux/drivers/video/fbdev/mb862xx/mb862xxfb_accel.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __MB826XXFB_ACCEL_H__
#define __MB826XXFB_ACCEL_H__

/* registers */
#define GDC_GEO_REG_INPUT_FIFO

/* Special Registers */
#define GDC_REG_CTRL
#define GDC_REG_FIFO_STATUS
#define GDC_REG_FIFO_COUNT
#define GDC_REG_SETUP_STATUS
#define GDC_REG_DDA_STATUS
#define GDC_REG_ENGINE_STATUS
#define GDC_REG_ERROR_STATUS
#define GDC_REG_MODE_MISC
#define GDC_REG_MODE_LINE
#define GDC_REG_MODE_POLYGON
#define GDC_REG_MODE_TEXTURE
#define GDC_REG_MODE_BITMAP
#define GDC_REG_MODE_EXTENSION

/* Configuration Registers */
#define GDC_REG_DRAW_BASE
#define GDC_REG_X_RESOLUTION
#define GDC_REG_Z_BASE
#define GDC_REG_TEXTURE_BASE
#define GDC_REG_POLYGON_FLAG_BASE
#define GDC_REG_CLIP_XMIN
#define GDC_REG_CLIP_XMAX
#define GDC_REG_CLIP_YMIN
#define GDC_REG_CLIP_YMAX
#define GDC_REG_TEXURE_SIZE
#define GDC_REG_TILE_SIZE
#define GDC_REG_TEX_BUF_OFFSET

/* for MB86293 or later */
#define GDC_REG_ALPHA_MAP_BASE

/* Constant Registers */
#define GDC_REG_FOREGROUND_COLOR
#define GDC_REG_BACKGROUND_COLOR
#define GDC_REG_ALPHA
#define GDC_REG_LINE_PATTERN
#define GDC_REG_TEX_BORDER_COLOR
#define GDC_REG_LINE_PATTERN_OFFSET

/* Coomand Code */
#define GDC_CMD_PIXEL
#define GDC_CMD_PIXEL_Z

#define GDC_CMD_X_VECTOR
#define GDC_CMD_Y_VECTOR
#define GDC_CMD_X_VECTOR_NOEND
#define GDC_CMD_Y_VECTOR_NOEND
#define GDC_CMD_X_VECTOR_BLPO
#define GDC_CMD_Y_VECTOR_BLPO
#define GDC_CMD_X_VECTOR_NOEND_BLPO
#define GDC_CMD_Y_VECTOR_NOEND_BLPO
#define GDC_CMD_AA_X_VECTOR
#define GDC_CMD_AA_Y_VECTOR
#define GDC_CMD_AA_X_VECTOR_NOEND
#define GDC_CMD_AA_Y_VECTOR_NOEND
#define GDC_CMD_AA_X_VECTOR_BLPO
#define GDC_CMD_AA_Y_VECTOR_BLPO
#define GDC_CMD_AA_X_VECTOR_NOEND_BLPO
#define GDC_CMD_AA_Y_VECTOR_NOEND_BLPO

#define GDC_CMD_0_VECTOR
#define GDC_CMD_1_VECTOR
#define GDC_CMD_0_VECTOR_NOEND
#define GDC_CMD_1_VECTOR_NOEND
#define GDC_CMD_0_VECTOR_BLPO
#define GDC_CMD_1_VECTOR_BLPO
#define GDC_CMD_0_VECTOR_NOEND_BLPO
#define GDC_CMD_1_VECTOR_NOEND_BLPO
#define GDC_CMD_AA_0_VECTOR
#define GDC_CMD_AA_1_VECTOR
#define GDC_CMD_AA_0_VECTOR_NOEND
#define GDC_CMD_AA_1_VECTOR_NOEND
#define GDC_CMD_AA_0_VECTOR_BLPO
#define GDC_CMD_AA_1_VECTOR_BLPO
#define GDC_CMD_AA_0_VECTOR_NOEND_BLPO
#define GDC_CMD_AA_1_VECTOR_NOEND_BLPO

#define GDC_CMD_BLT_FILL
#define GDC_CMD_BLT_DRAW
#define GDC_CMD_BITMAP
#define GDC_CMD_BLTCOPY_TOP_LEFT
#define GDC_CMD_BLTCOPY_TOP_RIGHT
#define GDC_CMD_BLTCOPY_BOTTOM_LEFT
#define GDC_CMD_BLTCOPY_BOTTOM_RIGHT
#define GDC_CMD_LOAD_TEXTURE
#define GDC_CMD_LOAD_TILE

#define GDC_CMD_TRAP_RIGHT
#define GDC_CMD_TRAP_LEFT
#define GDC_CMD_TRIANGLE_FAN
#define GDC_CMD_FLAG_TRIANGLE_FAN

#define GDC_CMD_FLUSH_FB
#define GDC_CMD_FLUSH_Z

#define GDC_CMD_POLYGON_BEGIN
#define GDC_CMD_POLYGON_END
#define GDC_CMD_CLEAR_POLY_FLAG
#define GDC_CMD_NORMAL

#define GDC_CMD_VECTOR_BLPO_FLAG
#define GDC_CMD_FAST_VECTOR_BLPO_FLAG

/* for MB86293 or later */
#define GDC_CMD_MDR1
#define GDC_CMD_MDR1S
#define GDC_CMD_MDR1B
#define GDC_CMD_MDR2
#define GDC_CMD_MDR2S
#define GDC_CMD_MDR2TL
#define GDC_CMD_GMDR1E
#define GDC_CMD_GMDR2E
#define GDC_CMD_OVERLAP_SHADOW_XY
#define GDC_CMD_OVERLAP_SHADOW_XY_COMPOSITION
#define GDC_CMD_OVERLAP_Z_PACKED_ONBS
#define GDC_CMD_OVERLAP_Z_ORIGIN
#define GDC_CMD_OVERLAP_Z_NON_TOPLEFT
#define GDC_CMD_OVERLAP_Z_BORDER
#define GDC_CMD_OVERLAP_Z_SHADOW
#define GDC_CMD_BLTCOPY_ALT_ALPHA
#define GDC_CMD_DC_LOGOUT
#define GDC_CMD_BODY_FORE_COLOR
#define GDC_CMD_BODY_BACK_COLOR
#define GDC_CMD_SHADOW_FORE_COLOR
#define GDC_CMD_SHADOW_BACK_COLOR
#define GDC_CMD_BORDER_FORE_COLOR
#define GDC_CMD_BORDER_BACK_COLOR

/* Type Code Table */
#define GDC_TYPE_G_NOP
#define GDC_TYPE_G_BEGIN
#define GDC_TYPE_G_BEGINCONT
#define GDC_TYPE_G_END
#define GDC_TYPE_G_VERTEX
#define GDC_TYPE_G_VERTEXLOG
#define GDC_TYPE_G_VERTEXNOPLOG
#define GDC_TYPE_G_INIT
#define GDC_TYPE_G_VIEWPORT
#define GDC_TYPE_G_DEPTHRANGE
#define GDC_TYPE_G_LOADMATRIX
#define GDC_TYPE_G_VIEWVOLUMEXYCLIP
#define GDC_TYPE_G_VIEWVOLUMEZCLIP
#define GDC_TYPE_G_VIEWVOLUMEWCLIP
#define GDC_TYPE_SETLVERTEX2I
#define GDC_TYPE_SETLVERTEX2IP
#define GDC_TYPE_SETMODEREGISTER
#define GDC_TYPE_SETGMODEREGISTER
#define GDC_TYPE_OVERLAPXYOFFT
#define GDC_TYPE_OVERLAPZOFFT
#define GDC_TYPE_DC_LOGOUTADDR
#define GDC_TYPE_SETCOLORREGISTER
#define GDC_TYPE_G_BEGINE
#define GDC_TYPE_G_BEGINCONTE
#define GDC_TYPE_G_ENDE
#define GDC_TYPE_DRAWPIXEL
#define GDC_TYPE_DRAWPIXELZ
#define GDC_TYPE_DRAWLINE
#define GDC_TYPE_DRAWLINE2I
#define GDC_TYPE_DRAWLINE2IP
#define GDC_TYPE_DRAWTRAP
#define GDC_TYPE_DRAWVERTEX2I
#define GDC_TYPE_DRAWVERTEX2IP
#define GDC_TYPE_DRAWRECTP
#define GDC_TYPE_DRAWBITMAPP
#define GDC_TYPE_BLTCOPYP
#define GDC_TYPE_BLTCOPYALTERNATEP
#define GDC_TYPE_LOADTEXTUREP
#define GDC_TYPE_BLTTEXTUREP
#define GDC_TYPE_BLTCOPYALTALPHABLENDP
#define GDC_TYPE_SETVERTEX2I
#define GDC_TYPE_SETVERTEX2IP
#define GDC_TYPE_DRAW
#define GDC_TYPE_SETREGISTER
#define GDC_TYPE_SYNC
#define GDC_TYPE_INTERRUPT
#define GDC_TYPE_NOP

/* Raster operation */
#define GDC_ROP_CLEAR
#define GDC_ROP_AND
#define GDC_ROP_AND_REVERSE
#define GDC_ROP_COPY
#define GDC_ROP_AND_INVERTED
#define GDC_ROP_NOP
#define GDC_ROP_XOR
#define GDC_ROP_OR
#define GDC_ROP_NOR
#define GDC_ROP_EQUIV
#define GDC_ROP_INVERT
#define GDC_ROP_OR_REVERSE
#define GDC_ROP_COPY_INVERTED
#define GDC_ROP_OR_INVERTED
#define GDC_ROP_NAND
#define GDC_ROP_SET

#endif