linux/drivers/gpu/drm/mgag200/mgag200_reg.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * MGA Millennium (MGA2064W) functions
 * MGA Mystique (MGA1064SG) functions
 *
 * Copyright 1996 The XFree86 Project, Inc.
 *
 * Authors
 *		Dirk Hohndel
 *			[email protected]
 *		David Dawes
 *			[email protected]
 * Contributors:
 *		Guy DESBIEF, Aix-en-provence, France
 *			[email protected]
 *		MGA1064SG Mystique register file
 */

#ifndef _MGA_REG_H_
#define _MGA_REG_H_

#include <linux/bits.h>

#define MGAREG_DWGCTL
#define MGAREG_MACCESS
/* the following is a mystique only register */
#define MGAREG_MCTLWTST
#define MGAREG_ZORG

#define MGAREG_PAT0
#define MGAREG_PAT1
#define MGAREG_PLNWT

#define MGAREG_BCOL
#define MGAREG_FCOL

#define MGAREG_SRC0
#define MGAREG_SRC1
#define MGAREG_SRC2
#define MGAREG_SRC3

#define MGAREG_XYSTRT
#define MGAREG_XYEND

#define MGAREG_SHIFT
/* the following is a mystique only register */
#define MGAREG_DMAPAD
#define MGAREG_SGN
#define MGAREG_LEN

#define MGAREG_AR0
#define MGAREG_AR1
#define MGAREG_AR2
#define MGAREG_AR3
#define MGAREG_AR4
#define MGAREG_AR5
#define MGAREG_AR6

#define MGAREG_CXBNDRY
#define MGAREG_FXBNDRY
#define MGAREG_YDSTLEN
#define MGAREG_PITCH

#define MGAREG_YDST
#define MGAREG_YDSTORG
#define MGAREG_YTOP
#define MGAREG_YBOT

#define MGAREG_CXLEFT
#define MGAREG_CXRIGHT
#define MGAREG_FXLEFT
#define MGAREG_FXRIGHT

#define MGAREG_XDST

#define MGAREG_DR0
#define MGAREG_DR1
#define MGAREG_DR2
#define MGAREG_DR3

#define MGAREG_DR4
#define MGAREG_DR5
#define MGAREG_DR6
#define MGAREG_DR7

#define MGAREG_DR8
#define MGAREG_DR9
#define MGAREG_DR10
#define MGAREG_DR11

#define MGAREG_DR12
#define MGAREG_DR13
#define MGAREG_DR14
#define MGAREG_DR15

#define MGAREG_SRCORG
#define MGAREG_DSTORG

/* add or this to one of the previous "power registers" to start
   the drawing engine */

#define MGAREG_EXEC

#define MGAREG_FIFOSTATUS
#define MGAREG_STATUS
#define MGAREG_CACHEFLUSH
#define MGAREG_ICLEAR
#define MGAREG_IEN

#define MGAREG_VCOUNT

#define MGAREG_Reset

#define MGAREG_OPMODE

/* Warp Registers */
#define MGAREG_WIADDR
#define MGAREG_WIADDR2
#define MGAREG_WGETMSB
#define MGAREG_WVRTXSZ
#define MGAREG_WACCEPTSEQ
#define MGAREG_WMISC

#define MGAREG_MEMCTL

/* OPMODE register additives */

#define MGAOPM_DMA_GENERAL
#define MGAOPM_DMA_BLIT
#define MGAOPM_DMA_VECTOR

/* MACCESS register additives */
#define MGAMAC_PW8
#define MGAMAC_PW16
#define MGAMAC_PW24
#define MGAMAC_PW32
#define MGAMAC_BYPASS332
#define MGAMAC_NODITHER
#define MGAMAC_DIT555

/* DWGCTL register additives */

/* Lines */

#define MGADWG_LINE_OPEN
#define MGADWG_AUTOLINE_OPEN
#define MGADWG_LINE_CLOSE
#define MGADWG_AUTOLINE_CLOSE

/* Trapezoids */
#define MGADWG_TRAP
#define MGADWG_TEXTURE_TRAP

/* BitBlts */

#define MGADWG_BITBLT
#define MGADWG_FBITBLT
#define MGADWG_ILOAD
#define MGADWG_ILOAD_SCALE
#define MGADWG_ILOAD_FILTER
#define MGADWG_ILOAD_HIQH
#define MGADWG_ILOAD_HIQHV
#define MGADWG_IDUMP

/* atype access to WRAM */

#define MGADWG_RPL
#define MGADWG_RSTR
#define MGADWG_ZI
#define MGADWG_BLK
#define MGADWG_I

/* specifies whether bit blits are linear or xy */
#define MGADWG_LINEAR

/* z drawing mode. use MGADWG_NOZCMP for always */

#define MGADWG_NOZCMP
#define MGADWG_ZE
#define MGADWG_ZNE
#define MGADWG_ZLT
#define MGADWG_ZLTE
#define MGADWG_GT
#define MGADWG_GTE

/* use this to force colour expansion circuitry to do its stuff */

#define MGADWG_SOLID

/* ar register at zero */

#define MGADWG_ARZERO

#define MGADWG_SGNZERO

#define MGADWG_SHIFTZERO

/* See table on 4-43 for bop ALU operations */

/* See table on 4-44 for translucidity masks */

#define MGADWG_BMONOLEF
#define MGADWG_BMONOWF
#define MGADWG_BPLAN

/* note that if bfcol is specified and you're doing a bitblt, it causes
   a fbitblt to be performed, so check that you obey the fbitblt rules */

#define MGADWG_BFCOL
#define MGADWG_BUYUV
#define MGADWG_BU32BGR
#define MGADWG_BU32RGB
#define MGADWG_BU24BGR
#define MGADWG_BU24RGB

#define MGADWG_PATTERN
#define MGADWG_TRANSC
#define MGAREG_MISC_WRITE
#define MGAREG_MISC_READ
#define MGAREG_MEM_MISC_WRITE
#define MGAREG_MEM_MISC_READ

#define MGAREG_MISC_IOADSEL
#define MGAREG_MISC_RAMMAPEN
#define MGAREG_MISC_CLKSEL_MASK
#define MGAREG_MISC_CLKSEL_VGA25
#define MGAREG_MISC_CLKSEL_VGA28
#define MGAREG_MISC_CLKSEL_MGA
#define MGAREG_MISC_VIDEO_DIS
#define MGAREG_MISC_HIGH_PG_SEL
#define MGAREG_MISC_HSYNCPOL
#define MGAREG_MISC_VSYNCPOL

/* MMIO VGA registers */
#define MGAREG_SEQ_INDEX
#define MGAREG_SEQ_DATA

#define MGAREG_SEQ0_ASYNCRST
#define MGAREG_SEQ0_SYNCRST

#define MGAREG_SEQ1_SCROFF

#define MGAREG_CRTC_INDEX
#define MGAREG_CRTC_DATA

#define MGAREG_CRTC11_VINTCLR
#define MGAREG_CRTC11_VINTEN
#define MGAREG_CRTC11_CRTCPROTECT

#define MGAREG_CRTCEXT_INDEX
#define MGAREG_CRTCEXT_DATA

#define MGAREG_CRTCEXT0_OFFSET_MASK

#define MGAREG_CRTCEXT1_VRSTEN
#define MGAREG_CRTCEXT1_VSYNCOFF
#define MGAREG_CRTCEXT1_HSYNCOFF
#define MGAREG_CRTCEXT1_HRSTEN

#define MGAREG_CRTCEXT3_MGAMODE

/* Cursor X and Y position */
#define MGA_CURPOSXL
#define MGA_CURPOSXH
#define MGA_CURPOSYL
#define MGA_CURPOSYH

/* MGA bits for registers PCI_OPTION_REG */
#define MGA1064_OPT_SYS_CLK_PCI
#define MGA1064_OPT_SYS_CLK_PLL
#define MGA1064_OPT_SYS_CLK_EXT
#define MGA1064_OPT_SYS_CLK_MSK

#define MGA1064_OPT_SYS_CLK_DIS
#define MGA1064_OPT_G_CLK_DIV_1
#define MGA1064_OPT_M_CLK_DIV_1

#define MGA1064_OPT_SYS_PLL_PDN
#define MGA1064_OPT_VGA_ION

/* MGA registers in PCI config space */
#define PCI_MGA_INDEX
#define PCI_MGA_DATA
#define PCI_MGA_OPTION
#define PCI_MGA_OPTION2
#define PCI_MGA_OPTION3

#define PCI_MGA_OPTION_HARDPWMSK

#define RAMDAC_OFFSET

/* TVP3026 direct registers */

#define TVP3026_INDEX
#define TVP3026_WADR_PAL
#define TVP3026_COL_PAL
#define TVP3026_PIX_RD_MSK
#define TVP3026_RADR_PAL
#define TVP3026_CUR_COL_ADDR
#define TVP3026_CUR_COL_DATA
#define TVP3026_DATA
#define TVP3026_CUR_RAM
#define TVP3026_CUR_XLOW
#define TVP3026_CUR_XHI
#define TVP3026_CUR_YLOW
#define TVP3026_CUR_YHI

/* TVP3026 indirect registers */

#define TVP3026_SILICON_REV
#define TVP3026_CURSOR_CTL
#define TVP3026_LATCH_CTL
#define TVP3026_TRUE_COLOR_CTL
#define TVP3026_MUX_CTL
#define TVP3026_CLK_SEL
#define TVP3026_PAL_PAGE
#define TVP3026_GEN_CTL
#define TVP3026_MISC_CTL
#define TVP3026_GEN_IO_CTL
#define TVP3026_GEN_IO_DATA
#define TVP3026_PLL_ADDR
#define TVP3026_PIX_CLK_DATA
#define TVP3026_MEM_CLK_DATA
#define TVP3026_LOAD_CLK_DATA
#define TVP3026_KEY_RED_LOW
#define TVP3026_KEY_RED_HI
#define TVP3026_KEY_GREEN_LOW
#define TVP3026_KEY_GREEN_HI
#define TVP3026_KEY_BLUE_LOW
#define TVP3026_KEY_BLUE_HI
#define TVP3026_KEY_CTL
#define TVP3026_MCLK_CTL
#define TVP3026_SENSE_TEST
#define TVP3026_TEST_DATA
#define TVP3026_CRC_LSB
#define TVP3026_CRC_MSB
#define TVP3026_CRC_CTL
#define TVP3026_ID
#define TVP3026_RESET


/* MGA1064 DAC Register file */
/* MGA1064 direct registers */

#define MGA1064_INDEX
#define MGA1064_WADR_PAL
#define MGA1064_SPAREREG
#define MGA1064_COL_PAL
#define MGA1064_PIX_RD_MSK
#define MGA1064_RADR_PAL
#define MGA1064_DATA

#define MGA1064_CUR_XLOW
#define MGA1064_CUR_XHI
#define MGA1064_CUR_YLOW
#define MGA1064_CUR_YHI

/* MGA1064 indirect registers */
#define MGA1064_DVI_PIPE_CTL
#define MGA1064_CURSOR_BASE_ADR_LOW
#define MGA1064_CURSOR_BASE_ADR_HI
#define MGA1064_CURSOR_CTL
#define MGA1064_CURSOR_COL0_RED
#define MGA1064_CURSOR_COL0_GREEN
#define MGA1064_CURSOR_COL0_BLUE

#define MGA1064_CURSOR_COL1_RED
#define MGA1064_CURSOR_COL1_GREEN
#define MGA1064_CURSOR_COL1_BLUE

#define MGA1064_CURSOR_COL2_RED
#define MGA1064_CURSOR_COL2_GREEN
#define MGA1064_CURSOR_COL2_BLUE

#define MGA1064_VREF_CTL

#define MGA1064_MUL_CTL
#define MGA1064_MUL_CTL_8bits
#define MGA1064_MUL_CTL_15bits
#define MGA1064_MUL_CTL_16bits
#define MGA1064_MUL_CTL_24bits
#define MGA1064_MUL_CTL_32bits
#define MGA1064_MUL_CTL_2G8V16bits
#define MGA1064_MUL_CTL_G16V16bits
#define MGA1064_MUL_CTL_32_24bits

#define MGA1064_PIX_CLK_CTL
#define MGA1064_PIX_CLK_CTL_CLK_DIS
#define MGA1064_PIX_CLK_CTL_CLK_POW_DOWN
#define MGA1064_PIX_CLK_CTL_SEL_PCI
#define MGA1064_PIX_CLK_CTL_SEL_PLL
#define MGA1064_PIX_CLK_CTL_SEL_EXT
#define MGA1064_PIX_CLK_CTL_SEL_MSK

#define MGA1064_GEN_CTL
#define MGA1064_GEN_CTL_SYNC_ON_GREEN_DIS
#define MGA1064_MISC_CTL
#define MGA1064_MISC_CTL_DAC_EN
#define MGA1064_MISC_CTL_VGA
#define MGA1064_MISC_CTL_DIS_CON
#define MGA1064_MISC_CTL_MAFC
#define MGA1064_MISC_CTL_VGA8
#define MGA1064_MISC_CTL_DAC_RAM_CS

#define MGA1064_GEN_IO_CTL2
#define MGA1064_GEN_IO_CTL
#define MGA1064_GEN_IO_DATA
#define MGA1064_SYS_PLL_M
#define MGA1064_SYS_PLL_N
#define MGA1064_SYS_PLL_P
#define MGA1064_SYS_PLL_STAT

#define MGA1064_REMHEADCTL
#define MGA1064_REMHEADCTL_CLKDIS
#define MGA1064_REMHEADCTL_CLKSL_OFF
#define MGA1064_REMHEADCTL_CLKSL_PLL
#define MGA1064_REMHEADCTL_CLKSL_PCI
#define MGA1064_REMHEADCTL_CLKSL_MSK

#define MGA1064_REMHEADCTL2

#define MGA1064_ZOOM_CTL
#define MGA1064_SENSE_TST

#define MGA1064_CRC_LSB
#define MGA1064_CRC_MSB
#define MGA1064_CRC_CTL
#define MGA1064_COL_KEY_MSK_LSB
#define MGA1064_COL_KEY_MSK_MSB
#define MGA1064_COL_KEY_LSB
#define MGA1064_COL_KEY_MSB
#define MGA1064_PIX_PLLA_M
#define MGA1064_PIX_PLLA_N
#define MGA1064_PIX_PLLA_P
#define MGA1064_PIX_PLLB_M
#define MGA1064_PIX_PLLB_N
#define MGA1064_PIX_PLLB_P
#define MGA1064_PIX_PLLC_M
#define MGA1064_PIX_PLLC_N
#define MGA1064_PIX_PLLC_P

#define MGA1064_PIX_PLL_STAT

/*Added for G450 dual head*/

#define MGA1064_VID_PLL_STAT
#define MGA1064_VID_PLL_P
#define MGA1064_VID_PLL_M
#define MGA1064_VID_PLL_N

/* Modified PLL for G200 Winbond (G200WB) */
#define MGA1064_WB_PIX_PLLC_M
#define MGA1064_WB_PIX_PLLC_N
#define MGA1064_WB_PIX_PLLC_P

/* Modified PLL for G200 Maxim (G200EV) */
#define MGA1064_EV_PIX_PLLC_M
#define MGA1064_EV_PIX_PLLC_N
#define MGA1064_EV_PIX_PLLC_P

/* Modified PLL for G200 EH */
#define MGA1064_EH_PIX_PLLC_M
#define MGA1064_EH_PIX_PLLC_N
#define MGA1064_EH_PIX_PLLC_P

/* Modified PLL for G200 Maxim (G200ER) */
#define MGA1064_ER_PIX_PLLC_M
#define MGA1064_ER_PIX_PLLC_N
#define MGA1064_ER_PIX_PLLC_P

#define MGA1064_DISP_CTL
#define MGA1064_DISP_CTL_DAC1OUTSEL_MASK
#define MGA1064_DISP_CTL_DAC1OUTSEL_DIS
#define MGA1064_DISP_CTL_DAC1OUTSEL_EN
#define MGA1064_DISP_CTL_DAC2OUTSEL_MASK
#define MGA1064_DISP_CTL_DAC2OUTSEL_DIS
#define MGA1064_DISP_CTL_DAC2OUTSEL_CRTC1
#define MGA1064_DISP_CTL_DAC2OUTSEL_CRTC2
#define MGA1064_DISP_CTL_DAC2OUTSEL_TVE
#define MGA1064_DISP_CTL_PANOUTSEL_MASK
#define MGA1064_DISP_CTL_PANOUTSEL_DIS
#define MGA1064_DISP_CTL_PANOUTSEL_CRTC1
#define MGA1064_DISP_CTL_PANOUTSEL_CRTC2RGB
#define MGA1064_DISP_CTL_PANOUTSEL_CRTC2656

#define MGA1064_SYNC_CTL

#define MGA1064_PWR_CTL
#define MGA1064_PWR_CTL_DAC2_EN
#define MGA1064_PWR_CTL_VID_PLL_EN
#define MGA1064_PWR_CTL_PANEL_EN
#define MGA1064_PWR_CTL_RFIFO_EN
#define MGA1064_PWR_CTL_CFIFO_EN

#define MGA1064_PAN_CTL

/* Using crtc2 */
#define MGAREG2_C2CTL
#define MGAREG2_C2HPARAM
#define MGAREG2_C2HSYNC
#define MGAREG2_C2VPARAM
#define MGAREG2_C2VSYNC
#define MGAREG2_C2STARTADD0

#define MGAREG2_C2OFFSET
#define MGAREG2_C2DATACTL

#define MGAREG_C2CTL
#define MGAREG_C2CTL_C2_EN

#define MGAREG_C2_HIPRILVL_M
#define MGAREG_C2_MAXHIPRI_M

#define MGAREG_C2CTL_PIXCLKSEL_MASK
#define MGAREG_C2CTL_PIXCLKSELH_MASK
#define MGAREG_C2CTL_PIXCLKSEL_PCICLK
#define MGAREG_C2CTL_PIXCLKSEL_VDOCLK
#define MGAREG_C2CTL_PIXCLKSEL_PIXELPLL
#define MGAREG_C2CTL_PIXCLKSEL_VIDEOPLL
#define MGAREG_C2CTL_PIXCLKSEL_VDCLK

#define MGAREG_C2CTL_PIXCLKSEL_CRISTAL
#define MGAREG_C2CTL_PIXCLKSEL_SYSTEMPLL

#define MGAREG_C2CTL_PIXCLKDIS_MASK
#define MGAREG_C2CTL_PIXCLKDIS_DISABLE

#define MGAREG_C2CTL_CRTCDACSEL_MASK
#define MGAREG_C2CTL_CRTCDACSEL_CRTC1
#define MGAREG_C2CTL_CRTCDACSEL_CRTC2

#define MGAREG_C2HPARAM
#define MGAREG_C2HSYNC
#define MGAREG_C2VPARAM
#define MGAREG_C2VSYNC
#define MGAREG_C2STARTADD0

#define MGAREG_C2OFFSET
#define MGAREG_C2DATACTL

/* video register */

#define MGAREG_BESA1C3ORG
#define MGAREG_BESA1CORG
#define MGAREG_BESA1ORG
#define MGAREG_BESCTL
#define MGAREG_BESGLOBCTL
#define MGAREG_BESHCOORD
#define MGAREG_BESHISCAL
#define MGAREG_BESHSRCEND
#define MGAREG_BESHSRCLST
#define MGAREG_BESHSRCST
#define MGAREG_BESLUMACTL
#define MGAREG_BESPITCH
#define MGAREG_BESV1SRCLST
#define MGAREG_BESV1WGHT
#define MGAREG_BESVCOORD
#define MGAREG_BESVISCAL

/* texture engine registers */

#define MGAREG_TMR0
#define MGAREG_TMR1
#define MGAREG_TMR2
#define MGAREG_TMR3
#define MGAREG_TMR4
#define MGAREG_TMR5
#define MGAREG_TMR6
#define MGAREG_TMR7
#define MGAREG_TMR8
#define MGAREG_TEXORG
#define MGAREG_TEXWIDTH
#define MGAREG_TEXHEIGHT
#define MGAREG_TEXCTL
#define MGA_TW4
#define MGA_TW8
#define MGA_TW15
#define MGA_TW16
#define MGA_TW12
#define MGA_TW32
#define MGA_TW8A
#define MGA_TW8AL
#define MGA_TW422
#define MGA_TW422UYVY
#define MGA_PITCHLIN
#define MGA_NOPERSPECTIVE
#define MGA_TAKEY
#define MGA_TAMASK
#define MGA_CLAMPUV
#define MGA_TEXMODULATE
#define MGAREG_TEXCTL2
#define MGA_G400_TC2_MAGIC
#define MGA_TC2_DECALBLEND
#define MGA_TC2_IDECAL
#define MGA_TC2_DECALDIS
#define MGA_TC2_CKSTRANSDIS
#define MGA_TC2_BORDEREN
#define MGA_TC2_SPECEN
#define MGA_TC2_DUALTEX
#define MGA_TC2_TABLEFOG
#define MGA_TC2_BUMPMAP
#define MGA_TC2_SELECT_TMU1
#define MGAREG_TEXTRANS
#define MGAREG_TEXTRANSHIGH
#define MGAREG_TEXFILTER
#define MGA_MIN_NRST
#define MGA_MIN_BILIN
#define MGA_MIN_ANISO
#define MGA_MAG_NRST
#define MGA_MAG_BILIN
#define MGA_FILTERALPHA
#define MGAREG_ALPHASTART
#define MGAREG_ALPHAXINC
#define MGAREG_ALPHAYINC
#define MGAREG_ALPHACTRL
#define MGA_SRC_ZERO
#define MGA_SRC_ONE
#define MGA_SRC_DST_COLOR
#define MGA_SRC_ONE_MINUS_DST_COLOR
#define MGA_SRC_ALPHA
#define MGA_SRC_ONE_MINUS_SRC_ALPHA
#define MGA_SRC_DST_ALPHA
#define MGA_SRC_ONE_MINUS_DST_ALPHA
#define MGA_SRC_SRC_ALPHA_SATURATE
#define MGA_SRC_BLEND_MASK
#define MGA_DST_ZERO
#define MGA_DST_ONE
#define MGA_DST_SRC_COLOR
#define MGA_DST_ONE_MINUS_SRC_COLOR
#define MGA_DST_SRC_ALPHA
#define MGA_DST_ONE_MINUS_SRC_ALPHA
#define MGA_DST_DST_ALPHA
#define MGA_DST_ONE_MINUS_DST_ALPHA
#define MGA_DST_BLEND_MASK
#define MGA_ALPHACHANNEL
#define MGA_VIDEOALPHA
#define MGA_DIFFUSEDALPHA
#define MGA_MODULATEDALPHA
#define MGAREG_TDUALSTAGE0
#define MGAREG_TDUALSTAGE1
#define MGA_TDS_COLOR_ARG2_DIFFUSE
#define MGA_TDS_COLOR_ARG2_SPECULAR
#define MGA_TDS_COLOR_ARG2_FCOL
#define MGA_TDS_COLOR_ARG2_PREVSTAGE
#define MGA_TDS_COLOR_ALPHA_DIFFUSE
#define MGA_TDS_COLOR_ALPHA_FCOL
#define MGA_TDS_COLOR_ALPHA_CURRTEX
#define MGA_TDS_COLOR_ALPHA_PREVTEX
#define MGA_TDS_COLOR_ALPHA_PREVSTAGE
#define MGA_TDS_COLOR_ARG1_REPLICATEALPHA
#define MGA_TDS_COLOR_ARG1_INV
#define MGA_TDS_COLOR_ARG2_REPLICATEALPHA
#define MGA_TDS_COLOR_ARG2_INV
#define MGA_TDS_COLOR_ALPHA1INV
#define MGA_TDS_COLOR_ALPHA2INV
#define MGA_TDS_COLOR_ARG1MUL_ALPHA1
#define MGA_TDS_COLOR_ARG2MUL_ALPHA2
#define MGA_TDS_COLOR_ARG1ADD_MULOUT
#define MGA_TDS_COLOR_ARG2ADD_MULOUT
#define MGA_TDS_COLOR_MODBRIGHT_2X
#define MGA_TDS_COLOR_MODBRIGHT_4X
#define MGA_TDS_COLOR_ADD_SUB
#define MGA_TDS_COLOR_ADD_ADD
#define MGA_TDS_COLOR_ADD2X
#define MGA_TDS_COLOR_ADDBIAS
#define MGA_TDS_COLOR_BLEND
#define MGA_TDS_COLOR_SEL_ARG1
#define MGA_TDS_COLOR_SEL_ARG2
#define MGA_TDS_COLOR_SEL_ADD
#define MGA_TDS_COLOR_SEL_MUL
#define MGA_TDS_ALPHA_ARG1_INV
#define MGA_TDS_ALPHA_ARG2_DIFFUSE
#define MGA_TDS_ALPHA_ARG2_FCOL
#define MGA_TDS_ALPHA_ARG2_PREVTEX
#define MGA_TDS_ALPHA_ARG2_PREVSTAGE
#define MGA_TDS_ALPHA_ARG2_INV
#define MGA_TDS_ALPHA_ADD
#define MGA_TDS_ALPHA_ADDBIAS
#define MGA_TDS_ALPHA_ADD2X
#define MGA_TDS_ALPHA_SEL_ARG1
#define MGA_TDS_ALPHA_SEL_ARG2
#define MGA_TDS_ALPHA_SEL_ADD
#define MGA_TDS_ALPHA_SEL_MUL

#define MGAREG_DWGSYNC

#define MGAREG_AGP_PLL
#define MGA_AGP2XPLL_ENABLE
#define MGA_AGP2XPLL_DISABLE

#endif