0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027 #ifndef AVIVOD_H
0028 #define AVIVOD_H
0029
0030
0031 #define D1CRTC_CONTROL 0x6080
0032 #define CRTC_EN (1 << 0)
0033 #define D1CRTC_STATUS 0x609c
0034 #define D1CRTC_UPDATE_LOCK 0x60E8
0035 #define D1GRPH_PRIMARY_SURFACE_ADDRESS 0x6110
0036 #define D1GRPH_SECONDARY_SURFACE_ADDRESS 0x6118
0037
0038 #define D2CRTC_CONTROL 0x6880
0039 #define D2CRTC_STATUS 0x689c
0040 #define D2CRTC_UPDATE_LOCK 0x68E8
0041 #define D2GRPH_PRIMARY_SURFACE_ADDRESS 0x6910
0042 #define D2GRPH_SECONDARY_SURFACE_ADDRESS 0x6918
0043
0044 #define D1VGA_CONTROL 0x0330
0045 #define DVGA_CONTROL_MODE_ENABLE (1 << 0)
0046 #define DVGA_CONTROL_TIMING_SELECT (1 << 8)
0047 #define DVGA_CONTROL_SYNC_POLARITY_SELECT (1 << 9)
0048 #define DVGA_CONTROL_OVERSCAN_TIMING_SELECT (1 << 10)
0049 #define DVGA_CONTROL_OVERSCAN_COLOR_EN (1 << 16)
0050 #define DVGA_CONTROL_ROTATE (1 << 24)
0051 #define D2VGA_CONTROL 0x0338
0052
0053 #define VGA_HDP_CONTROL 0x328
0054 #define VGA_MEM_PAGE_SELECT_EN (1 << 0)
0055 #define VGA_MEMORY_DISABLE (1 << 4)
0056 #define VGA_RBBM_LOCK_DISABLE (1 << 8)
0057 #define VGA_SOFT_RESET (1 << 16)
0058 #define VGA_MEMORY_BASE_ADDRESS 0x0310
0059 #define VGA_RENDER_CONTROL 0x0300
0060 #define VGA_VSTATUS_CNTL_MASK 0x00030000
0061
0062 #endif