⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mach64.h

📁 linux-2.4.29操作系统的源码
💻 H
📖 第 1 页 / 共 3 页
字号:
#define OVERLAY_KEY_CNTL		0x0418	/* Dword offset 1_06 */#define OVERLAY_SCALE_INC	0x0420	/* Dword offset 1_08 */#define OVERLAY_SCALE_CNTL	0x0424	/* Dword offset 1_09 */#define SCALER_HEIGHT_WIDTH	0x0428	/* Dword offset 1_0A */#define SCALER_TEST		0x042C	/* Dword offset 1_0B */#define SCALER_BUF0_OFFSET	0x0434	/* Dword offset 1_0D */#define SCALER_BUF1_OFFSET	0x0438	/* Dword offset 1_0E */#define SCALE_BUF_PITCH		0x043C	/* Dword offset 1_0F */#define CAPTURE_START_END	0x0440	/* Dword offset 1_10 */#define CAPTURE_X_WIDTH		0x0444	/* Dword offset 1_11 */#define VIDEO_FORMAT		0x0448	/* Dword offset 1_12 */#define VBI_START_END		0x044C	/* Dword offset 1_13 */#define CAPTURE_CONFIG		0x0450	/* Dword offset 1_14 */#define TRIG_CNTL		0x0454	/* Dword offset 1_15 */#define OVERLAY_EXCLUSIVE_HORZ	0x0458	/* Dword offset 1_16 */#define OVERLAY_EXCLUSIVE_VERT	0x045C	/* Dword offset 1_17 */#define VAL_WIDTH		0x0460	/* Dword offset 1_18 */#define CAPTURE_DEBUG		0x0464	/* Dword offset 1_19 */#define VIDEO_SYNC_TEST		0x0468	/* Dword offset 1_1A *//* GenLocking */#define SNAPSHOT_VH_COUNTS	0x0470	/* Dword offset 1_1C */#define SNAPSHOT_F_COUNT	0x0474	/* Dword offset 1_1D */#define N_VIF_COUNT		0x0478	/* Dword offset 1_1E */#define SNAPSHOT_VIF_COUNT	0x047C	/* Dword offset 1_1F */#define CAPTURE_BUF0_OFFSET	0x0480	/* Dword offset 1_20 */#define CAPTURE_BUF1_OFFSET	0x0484	/* Dword offset 1_21 */#define CAPTURE_BUF_PITCH	0x0488	/* Dword offset 1_22 *//* GenLocking */#define SNAPSHOT2_VH_COUNTS	0x04B0	/* Dword offset 1_2C */#define SNAPSHOT2_F_COUNT	0x04B4	/* Dword offset 1_2D */#define N_VIF2_COUNT		0x04B8	/* Dword offset 1_2E */#define SNAPSHOT2_VIF_COUNT	0x04BC	/* Dword offset 1_2F */#define MPP_CONFIG		0x04C0	/* Dword offset 1_30 */#define MPP_STROBE_SEQ		0x04C4	/* Dword offset 1_31 */#define MPP_ADDR		0x04C8	/* Dword offset 1_32 */#define MPP_DATA		0x04CC	/* Dword offset 1_33 */#define TVO_CNTL		0x0500	/* Dword offset 1_40 *//* Test and Debug */#define CRT_HORZ_VERT_LOAD	0x0544	/* Dword offset 1_51 *//* AGP */#define AGP_BASE		0x0548	/* Dword offset 1_52 */#define AGP_CNTL		0x054C	/* Dword offset 1_53 */#define SCALER_COLOUR_CNTL	0x0550	/* Dword offset 1_54 */#define SCALER_H_COEFF0		0x0554	/* Dword offset 1_55 */#define SCALER_H_COEFF1		0x0558	/* Dword offset 1_56 */#define SCALER_H_COEFF2		0x055C	/* Dword offset 1_57 */#define SCALER_H_COEFF3		0x0560	/* Dword offset 1_58 */#define SCALER_H_COEFF4		0x0564	/* Dword offset 1_59 *//* Command FIFO */#define GUI_CMDFIFO_DEBUG	0x0570	/* Dword offset 1_5C */#define GUI_CMDFIFO_DATA	0x0574	/* Dword offset 1_5D */#define GUI_CNTL		0x0578	/* Dword offset 1_5E *//* Bus Mastering */#define BM_FRAME_BUF_OFFSET	0x0580	/* Dword offset 1_60 */#define BM_SYSTEM_MEM_ADDR	0x0584	/* Dword offset 1_61 */#define BM_COMMAND		0x0588	/* Dword offset 1_62 */#define BM_STATUS		0x058C	/* Dword offset 1_63 */#define BM_GUI_TABLE		0x05B8	/* Dword offset 1_6E */#define BM_SYSTEM_TABLE		0x05BC	/* Dword offset 1_6F */#define SCALER_BUF0_OFFSET_U	0x05D4	/* Dword offset 1_75 */#define SCALER_BUF0_OFFSET_V	0x05D8	/* Dword offset 1_76 */#define SCALER_BUF1_OFFSET_U	0x05DC	/* Dword offset 1_77 */#define SCALER_BUF1_OFFSET_V	0x05E0	/* Dword offset 1_78 *//* Setup Engine */#define VERTEX_1_S		0x0640	/* Dword offset 1_90 */#define VERTEX_1_T		0x0644	/* Dword offset 1_91 */#define VERTEX_1_W		0x0648	/* Dword offset 1_92 */#define VERTEX_1_SPEC_ARGB	0x064C	/* Dword offset 1_93 */#define VERTEX_1_Z		0x0650	/* Dword offset 1_94 */#define VERTEX_1_ARGB		0x0654	/* Dword offset 1_95 */#define VERTEX_1_X_Y		0x0658	/* Dword offset 1_96 */#define ONE_OVER_AREA		0x065C	/* Dword offset 1_97 */#define VERTEX_2_S		0x0660	/* Dword offset 1_98 */#define VERTEX_2_T		0x0664	/* Dword offset 1_99 */#define VERTEX_2_W		0x0668	/* Dword offset 1_9A */#define VERTEX_2_SPEC_ARGB	0x066C	/* Dword offset 1_9B */#define VERTEX_2_Z		0x0670	/* Dword offset 1_9C */#define VERTEX_2_ARGB		0x0674	/* Dword offset 1_9D */#define VERTEX_2_X_Y		0x0678	/* Dword offset 1_9E */#define ONE_OVER_AREA		0x065C	/* Dword offset 1_9F */#define VERTEX_3_S		0x0680	/* Dword offset 1_A0 */#define VERTEX_3_T		0x0684	/* Dword offset 1_A1 */#define VERTEX_3_W		0x0688	/* Dword offset 1_A2 */#define VERTEX_3_SPEC_ARGB	0x068C	/* Dword offset 1_A3 */#define VERTEX_3_Z		0x0690	/* Dword offset 1_A4 */#define VERTEX_3_ARGB		0x0694	/* Dword offset 1_A5 */#define VERTEX_3_X_Y		0x0698	/* Dword offset 1_A6 */#define ONE_OVER_AREA		0x065C	/* Dword offset 1_A7 */#define VERTEX_1_S		0x0640	/* Dword offset 1_AB */#define VERTEX_1_T		0x0644	/* Dword offset 1_AC */#define VERTEX_1_W		0x0648	/* Dword offset 1_AD */#define VERTEX_2_S		0x0660	/* Dword offset 1_AE */#define VERTEX_2_T		0x0664	/* Dword offset 1_AF */#define VERTEX_2_W		0x0668	/* Dword offset 1_B0 */#define VERTEX_3_SECONDARY_S	0x06C0	/* Dword offset 1_B0 */#define VERTEX_3_S		0x0680	/* Dword offset 1_B1 */#define VERTEX_3_SECONDARY_T	0x06C4	/* Dword offset 1_B1 */#define VERTEX_3_T		0x0684	/* Dword offset 1_B2 */#define VERTEX_3_SECONDARY_W	0x06C8	/* Dword offset 1_B2 */#define VERTEX_3_W		0x0688	/* Dword offset 1_B3 */#define VERTEX_1_SPEC_ARGB	0x064C	/* Dword offset 1_B4 */#define VERTEX_2_SPEC_ARGB	0x066C	/* Dword offset 1_B5 */#define VERTEX_3_SPEC_ARGB	0x068C	/* Dword offset 1_B6 */#define VERTEX_1_Z		0x0650	/* Dword offset 1_B7 */#define VERTEX_2_Z		0x0670	/* Dword offset 1_B8 */#define VERTEX_3_Z		0x0690	/* Dword offset 1_B9 */#define VERTEX_1_ARGB		0x0654	/* Dword offset 1_BA */#define VERTEX_2_ARGB		0x0674	/* Dword offset 1_BB */#define VERTEX_3_ARGB		0x0694	/* Dword offset 1_BC */#define VERTEX_1_X_Y		0x0658	/* Dword offset 1_BD */#define VERTEX_2_X_Y		0x0678	/* Dword offset 1_BE */#define VERTEX_3_X_Y		0x0698	/* Dword offset 1_BF */#define ONE_OVER_AREA_UC	0x0700	/* Dword offset 1_C0 */#define SETUP_CNTL		0x0704	/* Dword offset 1_C1 */#define VERTEX_1_SECONDARY_S	0x0728	/* Dword offset 1_CA */#define VERTEX_1_SECONDARY_T	0x072C	/* Dword offset 1_CB */#define VERTEX_1_SECONDARY_W	0x0730	/* Dword offset 1_CC */#define VERTEX_2_SECONDARY_S	0x0734	/* Dword offset 1_CD */#define VERTEX_2_SECONDARY_T	0x0738	/* Dword offset 1_CE */#define VERTEX_2_SECONDARY_W	0x073C	/* Dword offset 1_CF */#define GTC_3D_RESET_DELAY	3	/* 3D engine reset delay in ms *//* CRTC control values (mostly CRTC_GEN_CNTL) */#define CRTC_H_SYNC_NEG		0x00200000#define CRTC_V_SYNC_NEG		0x00200000#define CRTC_DBL_SCAN_EN	0x00000001#define CRTC_INTERLACE_EN	0x00000002#define CRTC_HSYNC_DIS		0x00000004#define CRTC_VSYNC_DIS		0x00000008#define CRTC_CSYNC_EN		0x00000010#define CRTC_PIX_BY_2_EN	0x00000020	/* unused on RAGE */#define CRTC_DISPLAY_DIS	0x00000040#define CRTC_VGA_XOVERSCAN	0x00000040#define CRTC_PIX_WIDTH_MASK	0x00000700#define CRTC_PIX_WIDTH_4BPP	0x00000100#define CRTC_PIX_WIDTH_8BPP	0x00000200#define CRTC_PIX_WIDTH_15BPP	0x00000300#define CRTC_PIX_WIDTH_16BPP	0x00000400#define CRTC_PIX_WIDTH_24BPP	0x00000500#define CRTC_PIX_WIDTH_32BPP	0x00000600#define CRTC_BYTE_PIX_ORDER	0x00000800#define CRTC_PIX_ORDER_MSN_LSN	0x00000000#define CRTC_PIX_ORDER_LSN_MSN	0x00000800#define CRTC_FIFO_LWM		0x000f0000#define VGA_128KAP_PAGING	0x00100000#define VFC_SYNC_TRISTATE	0x00200000#define CRTC_LOCK_REGS		0x00400000#define CRTC_SYNC_TRISTATE	0x00800000#define CRTC_EXT_DISP_EN	0x01000000#define CRTC_ENABLE		0x02000000#define CRTC_DISP_REQ_ENB	0x04000000#define VGA_ATI_LINEAR		0x08000000#define CRTC_VSYNC_FALL_EDGE	0x10000000#define VGA_TEXT_132		0x20000000#define VGA_XCRT_CNT_EN		0x40000000#define VGA_CUR_B_TEST		0x80000000#define CRTC_CRNT_VLINE		0x07f00000#define CRTC_VBLANK		0x00000001/* DAC control values */#define DAC_EXT_SEL_RS2		0x01#define DAC_EXT_SEL_RS3		0x02#define DAC_8BIT_EN		0x00000100#define DAC_PIX_DLY_MASK	0x00000600#define DAC_PIX_DLY_0NS		0x00000000#define DAC_PIX_DLY_2NS		0x00000200#define DAC_PIX_DLY_4NS		0x00000400#define DAC_BLANK_ADJ_MASK	0x00001800#define DAC_BLANK_ADJ_0		0x00000000#define DAC_BLANK_ADJ_1		0x00000800#define DAC_BLANK_ADJ_2		0x00001000/* Mix control values */#define MIX_NOT_DST		0x0000#define MIX_0			0x0001#define MIX_1			0x0002#define MIX_DST			0x0003#define MIX_NOT_SRC		0x0004#define MIX_XOR			0x0005#define MIX_XNOR		0x0006#define MIX_SRC			0x0007#define MIX_NAND		0x0008#define MIX_NOT_SRC_OR_DST	0x0009#define MIX_SRC_OR_NOT_DST	0x000a#define MIX_OR			0x000b#define MIX_AND			0x000c#define MIX_SRC_AND_NOT_DST	0x000d#define MIX_NOT_SRC_AND_DST	0x000e#define MIX_NOR			0x000f/* Maximum engine dimensions */#define ENGINE_MIN_X		0#define ENGINE_MIN_Y		0#define ENGINE_MAX_X		4095#define ENGINE_MAX_Y		16383/* Mach64 engine bit constants - these are typically ORed together *//* BUS_CNTL register constants */#define BUS_FIFO_ERR_ACK	0x00200000#define BUS_HOST_ERR_ACK	0x00800000/* GEN_TEST_CNTL register constants */#define GEN_OVR_OUTPUT_EN	0x20#define HWCURSOR_ENABLE		0x80#define GUI_ENGINE_ENABLE	0x100#define BLOCK_WRITE_ENABLE	0x200/* DSP_CONFIG register constants */#define DSP_XCLKS_PER_QW	0x00003fff#define DSP_LOOP_LATENCY	0x000f0000#define DSP_PRECISION		0x00700000/* DSP_ON_OFF register constants */#define DSP_OFF			0x000007ff#define DSP_ON			0x07ff0000/* CLOCK_CNTL register constants */#define CLOCK_SEL		0x0f#define CLOCK_DIV		0x30#define CLOCK_DIV1		0x00#define CLOCK_DIV2		0x10#define CLOCK_DIV4		0x20#define CLOCK_STROBE		0x40#define PLL_WR_EN		0x02/* PLL register indices */#define MPLL_CNTL		0x00#define VPLL_CNTL		0x01#define PLL_REF_DIV		0x02#define PLL_GEN_CNTL		0x03#define MCLK_FB_DIV		0x04#define PLL_VCLK_CNTL		0x05#define VCLK_POST_DIV		0x06#define VCLK0_FB_DIV		0x07#define VCLK1_FB_DIV		0x08#define VCLK2_FB_DIV		0x09#define VCLK3_FB_DIV		0x0A#define PLL_EXT_CNTL		0x0B#define DLL_CNTL		0x0C#define DLL1_CNTL		0x0C#define VFC_CNTL		0x0D#define PLL_TEST_CNTL		0x0E#define PLL_TEST_COUNT		0x0F#define LVDS_CNTL0		0x10#define LVDS_CNTL1		0x11#define AGP1_CNTL		0x12#define AGP2_CNTL		0x13#define DLL2_CNTL		0x14#define SCLK_FB_DIV		0x15#define SPLL_CNTL1		0x16#define SPLL_CNTL2		0x17#define APLL_STRAPS		0x18#define EXT_VPLL_CNTL		0x19#define EXT_VPLL_REF_DIV	0x1A#define EXT_VPLL_FB_DIV		0x1B#define EXT_VPLL_MSB		0x1C#define HTOTAL_CNTL		0x1D#define BYTE_CLK_CNTL		0x1E#define TV_PLL_CNTL1		0x1F#define TV_PLL_CNTL2		0x20#define TV_PLL_CNTL		0x21#define EXT_TV_PLL		0x22#define V2PLL_CNTL		0x23#define PLL_V2CLK_CNTL		0x24#define EXT_V2PLL_REF_DIV	0x25#define EXT_V2PLL_FB_DIV	0x26#define EXT_V2PLL_MSB		0x27#define HTOTAL2_CNTL		0x28#define PLL_YCLK_CNTL		0x29#define PM_DYN_CLK_CNTL		0x2A/* Fields in PLL registers */#define PLL_PC_GAIN		0x07#define PLL_VC_GAIN		0x18#define PLL_DUTY_CYC		0xE0#define PLL_OVERRIDE		0x01#define PLL_MCLK_RST		0x02#define OSC_EN			0x04#define EXT_CLK_EN		0x08#define MCLK_SRC_SEL		0x70#define EXT_CLK_CNTL		0x80#define VCLK_SRC_SEL		0x03#define PLL_VCLK_RST		0x04#define VCLK_INVERT		0x08#define VCLK0_POST		0x03#define VCLK1_POST		0x0C#define VCLK2_POST		0x30#define VCLK3_POST		0xC0#define EXT_VPLL_EN		0x04#define EXT_VPLL_VGA_EN		0x08#define EXT_VPLL_INSYNC		0x10/* CONFIG_CNTL register constants */#define APERTURE_4M_ENABLE	1#define APERTURE_8M_ENABLE	2#define VGA_APERTURE_ENABLE	4/* CONFIG_STAT0 register constants (GX, CX) */#define CFG_BUS_TYPE		0x00000007#define CFG_MEM_TYPE		0x00000038#define CFG_INIT_DAC_TYPE	0x00000e00/* CONFIG_STAT0 register constants (CT, ET, VT) */#define CFG_MEM_TYPE_xT		0x00000007#define ISA			0#define EISA			1#define LOCAL_BUS		6#define PCI			7/* Memory types for GX, CX */#define DRAMx4			0#define VRAMx16			1#define VRAMx16ssr		2#define DRAMx16			3#define GraphicsDRAMx16		4#define EnhancedVRAMx16		5#define EnhancedVRAMx16ssr	6/* Memory types for CT, ET, VT, GT */#define DRAM			1#define EDO			2#define PSEUDO_EDO		3#define SDRAM			4#define SGRAM			5#define WRAM			6#define DAC_INTERNAL		0x00#define DAC_IBMRGB514		0x01#define DAC_ATI68875		0x02#define DAC_TVP3026_A		0x72#define DAC_BT476		0x03#define DAC_BT481		0x04#define DAC_ATT20C491		0x14#define DAC_SC15026		0x24#define DAC_MU9C1880		0x34#define DAC_IMSG174		0x44#define DAC_ATI68860_B		0x05#define DAC_ATI68860_C		0x15#define DAC_TVP3026_B		0x75#define DAC_STG1700		0x06#define DAC_ATT498		0x16#define DAC_STG1702		0x07#define DAC_SC15021		0x17#define DAC_ATT21C498		0x27#define DAC_STG1703		0x37#define DAC_CH8398		0x47#define DAC_ATT20C408		0x57#define CLK_ATI18818_0		0#define CLK_ATI18818_1		1#define CLK_STG1703		2#define CLK_CH8398		3#define CLK_INTERNAL		4#define CLK_ATT20C408		5#define CLK_IBMRGB514		6/* MEM_CNTL register constants */#define MEM_SIZE_ALIAS		0x00000007#define MEM_SIZE_512K		0x00000000#define MEM_SIZE_1M		0x00000001#define MEM_SIZE_2M		0x00000002#define MEM_SIZE_4M		0x00000003#define MEM_SIZE_6M		0x00000004#define MEM_SIZE_8M		0x00000005#define MEM_SIZE_ALIAS_GTB	0x0000000F#define MEM_SIZE_2M_GTB		0x00000003#define MEM_SIZE_4M_GTB		0x00000007#define MEM_SIZE_6M_GTB		0x00000009#define MEM_SIZE_8M_GTB		0x0000000B#define MEM_BNDRY		0x00030000#define MEM_BNDRY_0K		0x00000000#define MEM_BNDRY_256K		0x00010000#define MEM_BNDRY_512K		0x00020000#define MEM_BNDRY_1M		0x00030000#define MEM_BNDRY_EN		0x00040000/* ATI PCI constants */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -