📄 radeon.h
字号:
#define LVDS_PANEL_FORMAT (1 << 3)#define LVDS_EN (1 << 7)#define LVDS_BL_MOD_LEVEL_MASK 0x0000ff00#define LVDS_BL_MOD_LEVEL_SHIFT 8#define LVDS_BL_MOD_EN (1 << 16)#define LVDS_DIGON (1 << 18)#define LVDS_BLON (1 << 19)#define LVDS_SEL_CRTC2 (1 << 23)#define LVDS_STATE_MASK \ (LVDS_ON | LVDS_DISPLAY_DIS | LVDS_BL_MOD_LEVEL_MASK | \ LVDS_EN | LVDS_DIGON | LVDS_BLON)/* LVDS_PLL_CNTL bit constatns */#define HSYNC_DELAY_SHIFT 0x1c#define HSYNC_DELAY_MASK (0xf << 0x1c)/* TMDS_TRANSMITTER_CNTL bit constants */#define TMDS_PLL_EN (1 << 0)#define TMDS_PLLRST (1 << 1)#define TMDS_RAN_PAT_RST (1 << 7)#define ICHCSEL (1 << 28)/* FP_HORZ_STRETCH bit constants */#define HORZ_STRETCH_RATIO_MASK 0xffff#define HORZ_STRETCH_RATIO_MAX 4096#define HORZ_PANEL_SIZE (0x1ff << 16)#define HORZ_PANEL_SHIFT 16#define HORZ_STRETCH_PIXREP (0 << 25)#define HORZ_STRETCH_BLEND (1 << 26)#define HORZ_STRETCH_ENABLE (1 << 25)#define HORZ_AUTO_RATIO (1 << 27)#define HORZ_FP_LOOP_STRETCH (0x7 << 28)#define HORZ_AUTO_RATIO_INC (1 << 31)/* FP_VERT_STRETCH bit constants */#define VERT_STRETCH_RATIO_MASK 0xfff#define VERT_STRETCH_RATIO_MAX 4096#define VERT_PANEL_SIZE (0xfff << 12)#define VERT_PANEL_SHIFT 12#define VERT_STRETCH_LINREP (0 << 26)#define VERT_STRETCH_BLEND (1 << 26)#define VERT_STRETCH_ENABLE (1 << 25)#define VERT_AUTO_RATIO_EN (1 << 27)#define VERT_FP_LOOP_STRETCH (0x7 << 28)#define VERT_STRETCH_RESERVED 0xf1000000/* DAC_CNTL bit constants */ #define DAC_8BIT_EN 0x00000100#define DAC_4BPP_PIX_ORDER 0x00000200#define DAC_CRC_EN 0x00080000#define DAC_MASK_ALL (0xff << 24)#define DAC_EXPAND_MODE (1 << 14)#define DAC_VGA_ADR_EN (1 << 13)#define DAC_RANGE_CNTL (3 << 0)#define DAC_BLANKING (1 << 2)/* GEN_RESET_CNTL bit constants */#define SOFT_RESET_GUI 0x00000001#define SOFT_RESET_VCLK 0x00000100#define SOFT_RESET_PCLK 0x00000200#define SOFT_RESET_ECP 0x00000400#define SOFT_RESET_DISPENG_XCLK 0x00000800/* MEM_CNTL bit constants */#define MEM_CTLR_STATUS_IDLE 0x00000000#define MEM_CTLR_STATUS_BUSY 0x00100000#define MEM_SEQNCR_STATUS_IDLE 0x00000000#define MEM_SEQNCR_STATUS_BUSY 0x00200000#define MEM_ARBITER_STATUS_IDLE 0x00000000#define MEM_ARBITER_STATUS_BUSY 0x00400000#define MEM_REQ_UNLOCK 0x00000000#define MEM_REQ_LOCK 0x00800000/* RBBM_SOFT_RESET bit constants */#define SOFT_RESET_CP (1 << 0)#define SOFT_RESET_HI (1 << 1)#define SOFT_RESET_SE (1 << 2)#define SOFT_RESET_RE (1 << 3)#define SOFT_RESET_PP (1 << 4)#define SOFT_RESET_E2 (1 << 5)#define SOFT_RESET_RB (1 << 6)#define SOFT_RESET_HDP (1 << 7)/* SURFACE_CNTL bit consants */#define SURF_TRANSLATION_DIS (1 << 8)#define NONSURF_AP0_SWP_16BPP (1 << 20)#define NONSURF_AP0_SWP_32BPP (1 << 21)/* DEFAULT_SC_BOTTOM_RIGHT bit constants */#define DEFAULT_SC_RIGHT_MAX (0x1fff << 0)#define DEFAULT_SC_BOTTOM_MAX (0x1fff << 16)/* MM_INDEX bit constants */#define MM_APER 0x80000000/* CLR_CMP_CNTL bit constants */#define COMPARE_SRC_FALSE 0x00000000#define COMPARE_SRC_TRUE 0x00000001#define COMPARE_SRC_NOT_EQUAL 0x00000004#define COMPARE_SRC_EQUAL 0x00000005#define COMPARE_SRC_EQUAL_FLIP 0x00000007#define COMPARE_DST_FALSE 0x00000000#define COMPARE_DST_TRUE 0x00000100#define COMPARE_DST_NOT_EQUAL 0x00000400#define COMPARE_DST_EQUAL 0x00000500#define COMPARE_DESTINATION 0x00000000#define COMPARE_SOURCE 0x01000000#define COMPARE_SRC_AND_DST 0x02000000/* DP_CNTL bit constants */#define DST_X_RIGHT_TO_LEFT 0x00000000#define DST_X_LEFT_TO_RIGHT 0x00000001#define DST_Y_BOTTOM_TO_TOP 0x00000000#define DST_Y_TOP_TO_BOTTOM 0x00000002#define DST_X_MAJOR 0x00000000#define DST_Y_MAJOR 0x00000004#define DST_X_TILE 0x00000008#define DST_Y_TILE 0x00000010#define DST_LAST_PEL 0x00000020#define DST_TRAIL_X_RIGHT_TO_LEFT 0x00000000#define DST_TRAIL_X_LEFT_TO_RIGHT 0x00000040#define DST_TRAP_FILL_RIGHT_TO_LEFT 0x00000000#define DST_TRAP_FILL_LEFT_TO_RIGHT 0x00000080#define DST_BRES_SIGN 0x00000100#define DST_HOST_BIG_ENDIAN_EN 0x00000200#define DST_POLYLINE_NONLAST 0x00008000#define DST_RASTER_STALL 0x00010000#define DST_POLY_EDGE 0x00040000/* DP_CNTL_YDIR_XDIR_YMAJOR bit constants (short version of DP_CNTL) */#define DST_X_MAJOR_S 0x00000000#define DST_Y_MAJOR_S 0x00000001#define DST_Y_BOTTOM_TO_TOP_S 0x00000000#define DST_Y_TOP_TO_BOTTOM_S 0x00008000#define DST_X_RIGHT_TO_LEFT_S 0x00000000#define DST_X_LEFT_TO_RIGHT_S 0x80000000/* DP_DATATYPE bit constants */#define DST_8BPP 0x00000002#define DST_15BPP 0x00000003#define DST_16BPP 0x00000004#define DST_24BPP 0x00000005#define DST_32BPP 0x00000006#define DST_8BPP_RGB332 0x00000007#define DST_8BPP_Y8 0x00000008#define DST_8BPP_RGB8 0x00000009#define DST_16BPP_VYUY422 0x0000000b#define DST_16BPP_YVYU422 0x0000000c#define DST_32BPP_AYUV444 0x0000000e#define DST_16BPP_ARGB4444 0x0000000f#define BRUSH_SOLIDCOLOR 0x00000d00#define SRC_MONO 0x00000000#define SRC_MONO_LBKGD 0x00010000#define SRC_DSTCOLOR 0x00030000#define BYTE_ORDER_MSB_TO_LSB 0x00000000#define BYTE_ORDER_LSB_TO_MSB 0x40000000#define DP_CONVERSION_TEMP 0x80000000#define HOST_BIG_ENDIAN_EN (1 << 29)/* DP_GUI_MASTER_CNTL bit constants */#define GMC_SRC_PITCH_OFFSET_DEFAULT 0x00000000#define GMC_SRC_PITCH_OFFSET_LEAVE 0x00000001#define GMC_DST_PITCH_OFFSET_DEFAULT 0x00000000#define GMC_DST_PITCH_OFFSET_LEAVE 0x00000002#define GMC_SRC_CLIP_DEFAULT 0x00000000#define GMC_SRC_CLIP_LEAVE 0x00000004#define GMC_DST_CLIP_DEFAULT 0x00000000#define GMC_DST_CLIP_LEAVE 0x00000008#define GMC_BRUSH_8x8MONO 0x00000000#define GMC_BRUSH_8x8MONO_LBKGD 0x00000010#define GMC_BRUSH_8x1MONO 0x00000020#define GMC_BRUSH_8x1MONO_LBKGD 0x00000030#define GMC_BRUSH_1x8MONO 0x00000040#define GMC_BRUSH_1x8MONO_LBKGD 0x00000050#define GMC_BRUSH_32x1MONO 0x00000060#define GMC_BRUSH_32x1MONO_LBKGD 0x00000070#define GMC_BRUSH_32x32MONO 0x00000080#define GMC_BRUSH_32x32MONO_LBKGD 0x00000090#define GMC_BRUSH_8x8COLOR 0x000000a0#define GMC_BRUSH_8x1COLOR 0x000000b0#define GMC_BRUSH_1x8COLOR 0x000000c0#define GMC_BRUSH_SOLID_COLOR 0x000000d0#define GMC_DST_8BPP 0x00000200#define GMC_DST_15BPP 0x00000300#define GMC_DST_16BPP 0x00000400#define GMC_DST_24BPP 0x00000500#define GMC_DST_32BPP 0x00000600#define GMC_DST_8BPP_RGB332 0x00000700#define GMC_DST_8BPP_Y8 0x00000800#define GMC_DST_8BPP_RGB8 0x00000900#define GMC_DST_16BPP_VYUY422 0x00000b00#define GMC_DST_16BPP_YVYU422 0x00000c00#define GMC_DST_32BPP_AYUV444 0x00000e00#define GMC_DST_16BPP_ARGB4444 0x00000f00#define GMC_SRC_MONO 0x00000000#define GMC_SRC_MONO_LBKGD 0x00001000#define GMC_SRC_DSTCOLOR 0x00003000#define GMC_BYTE_ORDER_MSB_TO_LSB 0x00000000#define GMC_BYTE_ORDER_LSB_TO_MSB 0x00004000#define GMC_DP_CONVERSION_TEMP_9300 0x00008000#define GMC_DP_CONVERSION_TEMP_6500 0x00000000#define GMC_DP_SRC_RECT 0x02000000#define GMC_DP_SRC_HOST 0x03000000#define GMC_DP_SRC_HOST_BYTEALIGN 0x04000000#define GMC_3D_FCN_EN_CLR 0x00000000#define GMC_3D_FCN_EN_SET 0x08000000#define GMC_DST_CLR_CMP_FCN_LEAVE 0x00000000#define GMC_DST_CLR_CMP_FCN_CLEAR 0x10000000#define GMC_AUX_CLIP_LEAVE 0x00000000#define GMC_AUX_CLIP_CLEAR 0x20000000#define GMC_WRITE_MASK_LEAVE 0x00000000#define GMC_WRITE_MASK_SET 0x40000000#define GMC_CLR_CMP_CNTL_DIS (1 << 28)#define GMC_SRC_DATATYPE_COLOR (3 << 12)#define ROP3_S 0x00cc0000#define ROP3_SRCCOPY 0x00cc0000#define ROP3_P 0x00f00000#define ROP3_PATCOPY 0x00f00000#define DP_SRC_SOURCE_MASK (7 << 24)#define GMC_BRUSH_NONE (15 << 4)#define DP_SRC_SOURCE_MEMORY (2 << 24)#define GMC_BRUSH_SOLIDCOLOR 0x000000d0/* DP_MIX bit constants */#define DP_SRC_RECT 0x00000200#define DP_SRC_HOST 0x00000300#define DP_SRC_HOST_BYTEALIGN 0x00000400/* MPLL_CNTL bit constants */#define MPLL_RESET 0x00000001/* MDLL_CKO bit constants */#define MDLL_CKO__MCKOA_RESET 0x00000002/* VCLK_ECP_CNTL constants */#define PIXCLK_ALWAYS_ONb 0x00000040#define PIXCLK_DAC_ALWAYS_ONb 0x00000080/* masks */#define CONFIG_MEMSIZE_MASK 0x1f000000#define MEM_CFG_TYPE 0x40000000#define DST_OFFSET_MASK 0x003fffff#define DST_PITCH_MASK 0x3fc00000#define DEFAULT_TILE_MASK 0xc0000000#define PPLL_DIV_SEL_MASK 0x00000300#define PPLL_RESET 0x00000001#define PPLL_ATOMIC_UPDATE_EN 0x00010000#define PPLL_REF_DIV_MASK 0x000003ff#define PPLL_FB3_DIV_MASK 0x000007ff#define PPLL_POST3_DIV_MASK 0x00070000#define PPLL_ATOMIC_UPDATE_R 0x00008000#define PPLL_ATOMIC_UPDATE_W 0x00008000#define PPLL_VGA_ATOMIC_UPDATE_EN 0x00020000#define GUI_ACTIVE 0x80000000#endif /* _RADEON_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -