linux/drivers/gpu/drm/i915/display/intel_sprite_regs.h

/* SPDX-License-Identifier: MIT */
/* Copyright © 2024 Intel Corporation */

#ifndef __INTEL_SPRITE_REGS__
#define __INTEL_SPRITE_REGS__

#include "intel_display_reg_defs.h"

/* g4x/ilk/snb video sprite */
#define _DVSACNTR
#define _DVSBCNTR
#define DVSCNTR(pipe)
#define DVS_ENABLE
#define DVS_PIPE_GAMMA_ENABLE
#define DVS_YUV_RANGE_CORRECTION_DISABLE
#define DVS_FORMAT_MASK
#define DVS_FORMAT_YUV422
#define DVS_FORMAT_RGBX101010
#define DVS_FORMAT_RGBX888
#define DVS_FORMAT_RGBX161616
#define DVS_PIPE_CSC_ENABLE
#define DVS_SOURCE_KEY
#define DVS_RGB_ORDER_XBGR
#define DVS_YUV_FORMAT_BT709
#define DVS_YUV_ORDER_MASK
#define DVS_YUV_ORDER_YUYV
#define DVS_YUV_ORDER_UYVY
#define DVS_YUV_ORDER_YVYU
#define DVS_YUV_ORDER_VYUY
#define DVS_ROTATE_180
#define DVS_TRICKLE_FEED_DISABLE
#define DVS_TILED
#define DVS_DEST_KEY

#define _DVSALINOFF
#define _DVSBLINOFF
#define DVSLINOFF(pipe)

#define _DVSASTRIDE
#define _DVSBSTRIDE
#define DVSSTRIDE(pipe)

#define _DVSAPOS
#define _DVSBPOS
#define DVSPOS(pipe)
#define DVS_POS_Y_MASK
#define DVS_POS_Y(y)
#define DVS_POS_X_MASK
#define DVS_POS_X(x)

#define _DVSASIZE
#define _DVSBSIZE
#define DVSSIZE(pipe)
#define DVS_HEIGHT_MASK
#define DVS_HEIGHT(h)
#define DVS_WIDTH_MASK
#define DVS_WIDTH(w)

#define _DVSAKEYVAL
#define _DVSBKEYVAL
#define DVSKEYVAL(pipe)

#define _DVSAKEYMSK
#define _DVSBKEYMSK
#define DVSKEYMSK(pipe)

#define _DVSASURF
#define _DVSBSURF
#define DVSSURF(pipe)
#define DVS_ADDR_MASK

#define _DVSAKEYMAXVAL
#define _DVSBKEYMAXVAL
#define DVSKEYMAX(pipe)

#define _DVSATILEOFF
#define _DVSBTILEOFF
#define DVSTILEOFF(pipe)
#define DVS_OFFSET_Y_MASK
#define DVS_OFFSET_Y(y)
#define DVS_OFFSET_X_MASK
#define DVS_OFFSET_X(x)

#define _DVSASURFLIVE
#define _DVSBSURFLIVE
#define DVSSURFLIVE(pipe)

#define _DVSAGAMC_G4X
#define _DVSBGAMC_G4X
#define DVSGAMC_G4X(pipe, i)

#define _DVSASCALE
#define _DVSBSCALE
#define DVSSCALE(pipe)
#define DVS_SCALE_ENABLE
#define DVS_FILTER_MASK
#define DVS_FILTER_MEDIUM
#define DVS_FILTER_ENHANCING
#define DVS_FILTER_SOFTENING
#define DVS_VERTICAL_OFFSET_HALF
#define DVS_VERTICAL_OFFSET_ENABLE
#define DVS_SRC_WIDTH_MASK
#define DVS_SRC_WIDTH(w)
#define DVS_SRC_HEIGHT_MASK
#define DVS_SRC_HEIGHT(h)

#define _DVSAGAMC_ILK
#define _DVSBGAMC_ILK
#define DVSGAMC_ILK(pipe, i)

#define _DVSAGAMCMAX_ILK
#define _DVSBGAMCMAX_ILK
#define DVSGAMCMAX_ILK(pipe, i)

/* ivb/hsw/bdw sprite */
#define _SPRA_CTL
#define _SPRB_CTL
#define SPRCTL(pipe)
#define SPRITE_ENABLE
#define SPRITE_PIPE_GAMMA_ENABLE
#define SPRITE_YUV_RANGE_CORRECTION_DISABLE
#define SPRITE_FORMAT_MASK
#define SPRITE_FORMAT_YUV422
#define SPRITE_FORMAT_RGBX101010
#define SPRITE_FORMAT_RGBX888
#define SPRITE_FORMAT_RGBX161616
#define SPRITE_FORMAT_YUV444
#define SPRITE_FORMAT_XR_BGR101010
#define SPRITE_PIPE_CSC_ENABLE
#define SPRITE_SOURCE_KEY
#define SPRITE_RGB_ORDER_RGBX
#define SPRITE_YUV_TO_RGB_CSC_DISABLE
#define SPRITE_YUV_TO_RGB_CSC_FORMAT_BT709
#define SPRITE_YUV_ORDER_MASK
#define SPRITE_YUV_ORDER_YUYV
#define SPRITE_YUV_ORDER_UYVY
#define SPRITE_YUV_ORDER_YVYU
#define SPRITE_YUV_ORDER_VYUY
#define SPRITE_ROTATE_180
#define SPRITE_TRICKLE_FEED_DISABLE
#define SPRITE_PLANE_GAMMA_DISABLE
#define SPRITE_TILED
#define SPRITE_DEST_KEY

#define _SPRA_LINOFF
#define _SPRB_LINOFF
#define SPRLINOFF(pipe)

#define _SPRA_STRIDE
#define _SPRB_STRIDE
#define SPRSTRIDE(pipe)

#define _SPRA_POS
#define _SPRB_POS
#define SPRPOS(pipe)
#define SPRITE_POS_Y_MASK
#define SPRITE_POS_Y(y)
#define SPRITE_POS_X_MASK
#define SPRITE_POS_X(x)

#define _SPRA_SIZE
#define _SPRB_SIZE
#define SPRSIZE(pipe)
#define SPRITE_HEIGHT_MASK
#define SPRITE_HEIGHT(h)
#define SPRITE_WIDTH_MASK
#define SPRITE_WIDTH(w)

#define _SPRA_KEYVAL
#define _SPRB_KEYVAL
#define SPRKEYVAL(pipe)

#define _SPRA_KEYMSK
#define _SPRB_KEYMSK
#define SPRKEYMSK(pipe)

#define _SPRA_SURF
#define _SPRB_SURF
#define SPRSURF(pipe)
#define SPRITE_ADDR_MASK

#define _SPRA_KEYMAX
#define _SPRB_KEYMAX
#define SPRKEYMAX(pipe)

#define _SPRA_TILEOFF
#define _SPRB_TILEOFF
#define SPRTILEOFF(pipe)
#define SPRITE_OFFSET_Y_MASK
#define SPRITE_OFFSET_Y(y)
#define SPRITE_OFFSET_X_MASK
#define SPRITE_OFFSET_X(x)

#define _SPRA_OFFSET
#define _SPRB_OFFSET
#define SPROFFSET(pipe)

#define _SPRA_SURFLIVE
#define _SPRB_SURFLIVE
#define SPRSURFLIVE(pipe)

#define _SPRA_SCALE
#define _SPRB_SCALE
#define SPRSCALE(pipe)
#define SPRITE_SCALE_ENABLE
#define SPRITE_FILTER_MASK
#define SPRITE_FILTER_MEDIUM
#define SPRITE_FILTER_ENHANCING
#define SPRITE_FILTER_SOFTENING
#define SPRITE_VERTICAL_OFFSET_HALF
#define SPRITE_VERTICAL_OFFSET_ENABLE
#define SPRITE_SRC_WIDTH_MASK
#define SPRITE_SRC_WIDTH(w)
#define SPRITE_SRC_HEIGHT_MASK
#define SPRITE_SRC_HEIGHT(h)

#define _SPRA_GAMC
#define _SPRB_GAMC
#define SPRGAMC(pipe, i)

#define _SPRA_GAMC16
#define _SPRB_GAMC16
#define SPRGAMC16(pipe, i)

#define _SPRA_GAMC17
#define _SPRB_GAMC17
#define SPRGAMC17(pipe, i)

/* vlv/chv sprite */
#define _VLV_SPR(pipe, plane_id, reg_a, reg_b)
#define _MMIO_VLV_SPR(pipe, plane_id, reg_a, reg_b)

#define _SPACNTR
#define _SPBCNTR
#define SPCNTR(pipe, plane_id)
#define SP_ENABLE
#define SP_PIPE_GAMMA_ENABLE
#define SP_FORMAT_MASK
#define SP_FORMAT_YUV422
#define SP_FORMAT_8BPP
#define SP_FORMAT_BGR565
#define SP_FORMAT_BGRX8888
#define SP_FORMAT_BGRA8888
#define SP_FORMAT_RGBX1010102
#define SP_FORMAT_RGBA1010102
#define SP_FORMAT_BGRX1010102
#define SP_FORMAT_BGRA1010102
#define SP_FORMAT_RGBX8888
#define SP_FORMAT_RGBA8888
#define SP_ALPHA_PREMULTIPLY
#define SP_SOURCE_KEY
#define SP_YUV_FORMAT_BT709
#define SP_YUV_ORDER_MASK
#define SP_YUV_ORDER_YUYV
#define SP_YUV_ORDER_UYVY
#define SP_YUV_ORDER_YVYU
#define SP_YUV_ORDER_VYUY
#define SP_ROTATE_180
#define SP_TILED
#define SP_MIRROR

#define _SPALINOFF
#define _SPBLINOFF
#define SPLINOFF(pipe, plane_id)

#define _SPASTRIDE
#define _SPBSTRIDE
#define SPSTRIDE(pipe, plane_id)

#define _SPAPOS
#define _SPBPOS
#define SPPOS(pipe, plane_id)
#define SP_POS_Y_MASK
#define SP_POS_Y(y)
#define SP_POS_X_MASK
#define SP_POS_X(x)

#define _SPASIZE
#define _SPBSIZE
#define SPSIZE(pipe, plane_id)
#define SP_HEIGHT_MASK
#define SP_HEIGHT(h)
#define SP_WIDTH_MASK
#define SP_WIDTH(w)

#define _SPAKEYMINVAL
#define _SPBKEYMINVAL
#define SPKEYMINVAL(pipe, plane_id)

#define _SPAKEYMSK
#define _SPBKEYMSK
#define SPKEYMSK(pipe, plane_id)

#define _SPASURF
#define _SPBSURF
#define SPSURF(pipe, plane_id)
#define SP_ADDR_MASK

#define _SPAKEYMAXVAL
#define _SPBKEYMAXVAL
#define SPKEYMAXVAL(pipe, plane_id)

#define _SPATILEOFF
#define _SPBTILEOFF
#define SPTILEOFF(pipe, plane_id)
#define SP_OFFSET_Y_MASK
#define SP_OFFSET_Y(y)
#define SP_OFFSET_X_MASK
#define SP_OFFSET_X(x)

#define _SPACONSTALPHA
#define _SPBCONSTALPHA
#define SPCONSTALPHA(pipe, plane_id)
#define SP_CONST_ALPHA_ENABLE
#define SP_CONST_ALPHA_MASK
#define SP_CONST_ALPHA(alpha)

#define _SPASURFLIVE
#define _SPBSURFLIVE
#define SPSURFLIVE(pipe, plane_id)

#define _SPACLRC0
#define _SPBCLRC0
#define SPCLRC0(pipe, plane_id)
#define SP_CONTRAST_MASK
#define SP_CONTRAST(x)
#define SP_BRIGHTNESS_MASK
#define SP_BRIGHTNESS(x)

#define _SPACLRC1
#define _SPBCLRC1
#define SPCLRC1(pipe, plane_id)
#define SP_SH_SIN_MASK
#define SP_SH_SIN(x)
#define SP_SH_COS_MASK
#define SP_SH_COS(x)

#define _SPAGAMC
#define _SPBGAMC
#define SPGAMC(pipe, plane_id, i)

/*
 * CHV pipe B sprite CSC
 *
 * |cr|   |c0 c1 c2|   |cr + cr_ioff|   |cr_ooff|
 * |yg| = |c3 c4 c5| x |yg + yg_ioff| + |yg_ooff|
 * |cb|   |c6 c7 c8|   |cb + cr_ioff|   |cb_ooff|
 */
#define _MMIO_CHV_SPCSC(plane_id, reg)

#define SPCSCYGOFF(plane_id)
#define SPCSCCBOFF(plane_id)
#define SPCSCCROFF(plane_id)
#define SPCSC_OOFF_MASK
#define SPCSC_OOFF(x)
#define SPCSC_IOFF_MASK
#define SPCSC_IOFF(x)

#define SPCSCC01(plane_id)
#define SPCSCC23(plane_id)
#define SPCSCC45(plane_id)
#define SPCSCC67(plane_id)
#define SPCSCC8(plane_id)
#define SPCSC_C1_MASK
#define SPCSC_C1(x)
#define SPCSC_C0_MASK
#define SPCSC_C0(x)

#define SPCSCYGICLAMP(plane_id)
#define SPCSCCBICLAMP(plane_id)
#define SPCSCCRICLAMP(plane_id)
#define SPCSC_IMAX_MASK
#define SPCSC_IMAX(x)
#define SPCSC_IMIN_MASK
#define SPCSC_IMIN(x)

#define SPCSCYGOCLAMP(plane_id)
#define SPCSCCBOCLAMP(plane_id)
#define SPCSCCROCLAMP(plane_id)
#define SPCSC_OMAX_MASK
#define SPCSC_OMAX(x)
#define SPCSC_OMIN_MASK
#define SPCSC_OMIN(x)

#endif /* __INTEL_SPRITE_REGS__ */