mach64.h

来自「linux 内核源代码」· C头文件 代码 · 共 1,379 行 · 第 1/4 页

H
1,379
字号
#define CLR_CMP_MASK		0x0304	/* Dword offset 0_C1 */#define CLR_CMP_CNTL		0x0308	/* Dword offset 0_C2 *//* Command FIFO */#define FIFO_STAT		0x0310	/* Dword offset 0_C4 */#define CONTEXT_MASK		0x0320	/* Dword offset 0_C8 */#define CONTEXT_LOAD_CNTL	0x032C	/* Dword offset 0_CB *//* Engine Control */#define GUI_TRAJ_CNTL		0x0330	/* Dword offset 0_CC *//* Engine Status/FIFO */#define GUI_STAT		0x0338	/* Dword offset 0_CE */#define TEX_PALETTE_INDEX	0x0340	/* Dword offset 0_D0 */#define STW_EXP			0x0344	/* Dword offset 0_D1 */#define LOG_MAX_INC		0x0348	/* Dword offset 0_D2 */#define S_X_INC			0x034C	/* Dword offset 0_D3 */#define S_Y_INC__ALIAS__	0x0350	/* Dword offset 0_D4 */#define SCALE_PITCH__ALIAS__	0x0350	/* Dword offset 0_D4 */#define S_START			0x0354	/* Dword offset 0_D5 */#define W_X_INC			0x0358	/* Dword offset 0_D6 */#define W_Y_INC			0x035C	/* Dword offset 0_D7 */#define W_START			0x0360	/* Dword offset 0_D8 */#define T_X_INC			0x0364	/* Dword offset 0_D9 */#define T_Y_INC			0x0368	/* Dword offset 0_DA */#define SECONDARY_SCALE_PITCH	0x0368	/* Dword offset 0_DA */#define T_START			0x036C	/* Dword offset 0_DB */#define TEX_SIZE_PITCH		0x0370	/* Dword offset 0_DC */#define TEX_CNTL		0x0374	/* Dword offset 0_DD */#define SECONDARY_TEX_OFFSET	0x0378	/* Dword offset 0_DE */#define TEX_PALETTE		0x037C	/* Dword offset 0_DF */#define SCALE_PITCH_BOTH	0x0380	/* Dword offset 0_E0 */#define SECONDARY_SCALE_OFF_ACC	0x0384	/* Dword offset 0_E1 */#define SCALE_OFF_ACC		0x0388	/* Dword offset 0_E2 */#define SCALE_DST_Y_X		0x038C	/* Dword offset 0_E3 *//* Draw Engine Destination Trajectory */#define COMPOSITE_SHADOW_ID	0x0398	/* Dword offset 0_E6 */#define SECONDARY_SCALE_X_INC	0x039C	/* Dword offset 0_E7 */#define SPECULAR_RED_X_INC	0x039C	/* Dword offset 0_E7 */#define SPECULAR_RED_Y_INC	0x03A0	/* Dword offset 0_E8 */#define SPECULAR_RED_START	0x03A4	/* Dword offset 0_E9 */#define SECONDARY_SCALE_HACC	0x03A4	/* Dword offset 0_E9 */#define SPECULAR_GREEN_X_INC	0x03A8	/* Dword offset 0_EA */#define SPECULAR_GREEN_Y_INC	0x03AC	/* Dword offset 0_EB */#define SPECULAR_GREEN_START	0x03B0	/* Dword offset 0_EC */#define SPECULAR_BLUE_X_INC	0x03B4	/* Dword offset 0_ED */#define SPECULAR_BLUE_Y_INC	0x03B8	/* Dword offset 0_EE */#define SPECULAR_BLUE_START	0x03BC	/* Dword offset 0_EF */#define SCALE_X_INC__ALIAS__	0x03C0	/* Dword offset 0_F0 */#define RED_X_INC__ALIAS__	0x03C0	/* Dword offset 0_F0 */#define RED_Y_INC		0x03C4	/* Dword offset 0_F1 */#define RED_START		0x03C8	/* Dword offset 0_F2 */#define SCALE_HACC		0x03C8	/* Dword offset 0_F2 */#define SCALE_Y_INC__ALIAS__	0x03CC	/* Dword offset 0_F3 */#define GREEN_X_INC__ALIAS__	0x03CC	/* Dword offset 0_F3 */#define GREEN_Y_INC		0x03D0	/* Dword offset 0_F4 */#define SECONDARY_SCALE_Y_INC	0x03D0	/* Dword offset 0_F4 */#define SECONDARY_SCALE_VACC	0x03D4	/* Dword offset 0_F5 */#define GREEN_START		0x03D4	/* Dword offset 0_F5 */#define BLUE_X_INC		0x03D8	/* Dword offset 0_F6 */#define BLUE_Y_INC		0x03DC	/* Dword offset 0_F7 */#define BLUE_START		0x03E0	/* Dword offset 0_F8 */#define Z_X_INC			0x03E4	/* Dword offset 0_F9 */#define Z_Y_INC			0x03E8	/* Dword offset 0_FA */#define Z_START			0x03EC	/* Dword offset 0_FB */#define ALPHA_X_INC		0x03F0	/* Dword offset 0_FC */#define FOG_X_INC		0x03F0	/* Dword offset 0_FC */#define ALPHA_Y_INC		0x03F4	/* Dword offset 0_FD */#define FOG_Y_INC		0x03F4	/* Dword offset 0_FD */#define ALPHA_START		0x03F8	/* Dword offset 0_FE */#define FOG_START		0x03F8	/* Dword offset 0_FE */#define OVERLAY_Y_X_START		0x0400	/* Dword offset 1_00 */#define OVERLAY_Y_X_END			0x0404	/* Dword offset 1_01 */#define OVERLAY_VIDEO_KEY_CLR		0x0408	/* Dword offset 1_02 */#define OVERLAY_VIDEO_KEY_MSK		0x040C	/* Dword offset 1_03 */#define OVERLAY_GRAPHICS_KEY_CLR	0x0410	/* Dword offset 1_04 */#define OVERLAY_GRAPHICS_KEY_MSK	0x0414	/* Dword offset 1_05 */#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	0x00000080#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_VSYNC_INT_EN	0x00001000ul	/* XC/XL */#define CRTC_VSYNC_INT		0x00002000ul	/* XC/XL */#define CRTC_FIFO_OVERFILL	0x0000c000ul	/* VT/GT */#define CRTC2_VSYNC_INT_EN	0x00004000ul	/* XC/XL */#define CRTC2_VSYNC_INT		0x00008000ul	/* XC/XL */#define CRTC_FIFO_LWM		0x000f0000#define CRTC_HVSYNC_IO_DRIVE	0x00010000	/* XC/XL */#define CRTC2_PIX_WIDTH		0x000e0000	/* LTPro */#define CRTC_VGA_128KAP_PAGING	0x00100000#define CRTC_VFC_SYNC_TRISTATE	0x00200000	/* VTB/GTB/LT */#define CRTC2_EN		0x00200000	/* LTPro */#define CRTC_LOCK_REGS		0x00400000#define CRTC_SYNC_TRISTATE	0x00800000#define CRTC_EXT_DISP_EN	0x01000000#define CRTC_EN			0x02000000#define CRTC_DISP_REQ_EN	0x04000000#define CRTC_VGA_LINEAR		0x08000000#define CRTC_VSYNC_FALL_EDGE	0x10000000#define CRTC_VGA_TEXT_132	0x20000000#define CRTC_CNT_EN		0x40000000#define CRTC_CUR_B_TEST		0x80000000#define CRTC_CRNT_VLINE		0x07f00000#define CRTC_PRESERVED_MASK	0x0001f000#define CRTC_VBLANK		0x00000001#define CRTC_VBLANK_INT_EN	0x00000002#define CRTC_VBLANK_INT		0x00000004#define CRTC_VBLANK_INT_AK	CRTC_VBLANK_INT#define CRTC_VLINE_INT_EN	0x00000008#define CRTC_VLINE_INT		0x00000010#define CRTC_VLINE_INT_AK	CRTC_VLINE_INT#define CRTC_VLINE_SYNC		0x00000020#define CRTC_FRAME		0x00000040#define SNAPSHOT_INT_EN		0x00000080#define SNAPSHOT_INT		0x00000100#define SNAPSHOT_INT_AK		SNAPSHOT_INT#define I2C_INT_EN		0x00000200#define I2C_INT			0x00000400#define I2C_INT_AK		I2C_INT#define CRTC2_VBLANK		0x00000800#define CRTC2_VBLANK_INT_EN	0x00001000#define CRTC2_VBLANK_INT	0x00002000#define CRTC2_VBLANK_INT_AK	CRTC2_VBLANK_INT#define CRTC2_VLINE_INT_EN	0x00004000#define CRTC2_VLINE_INT		0x00008000#define CRTC2_VLINE_INT_AK	CRTC2_VLINE_INT#define CAPBUF0_INT_EN		0x00010000#define CAPBUF0_INT		0x00020000#define CAPBUF0_INT_AK		CAPBUF0_INT#define CAPBUF1_INT_EN		0x00040000#define CAPBUF1_INT		0x00080000#define CAPBUF1_INT_AK		CAPBUF1_INT#define OVERLAY_EOF_INT_EN	0x00100000#define OVERLAY_EOF_INT		0x00200000#define OVERLAY_EOF_INT_AK	OVERLAY_EOF_INT#define ONESHOT_CAP_INT_EN	0x00400000#define ONESHOT_CAP_INT		0x00800000#define ONESHOT_CAP_INT_AK	ONESHOT_CAP_INT#define BUSMASTER_EOL_INT_EN	0x01000000#define BUSMASTER_EOL_INT	0x02000000#define BUSMASTER_EOL_INT_AK	BUSMASTER_EOL_INT#define GP_INT_EN		0x04000000#define GP_INT			0x08000000#define GP_INT_AK		GP_INT#define CRTC2_VLINE_SYNC	0x10000000#define SNAPSHOT2_INT_EN	0x20000000#define SNAPSHOT2_INT		0x40000000#define SNAPSHOT2_INT_AK	SNAPSHOT2_INT#define VBLANK_BIT2_INT		0x80000000#define VBLANK_BIT2_INT_AK	VBLANK_BIT2_INT#define CRTC_INT_EN_MASK	(CRTC_VBLANK_INT_EN |	\				 CRTC_VLINE_INT_EN |	\				 SNAPSHOT_INT_EN |	\				 I2C_INT_EN |		\				 CRTC2_VBLANK_INT_EN |	\				 CRTC2_VLINE_INT_EN |	\				 CAPBUF0_INT_EN |	\				 CAPBUF1_INT_EN |	\

⌨️ 快捷键说明

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