annotate drivers/radeon/radeon.h @ 3188:6c4a66168557

evading further misunderstatement
author gabucino
date Wed, 28 Nov 2001 17:41:23 +0000
parents 3c5ad8d5ac00
children 27be0e71c0ee
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
1 #ifndef _RADEON_H
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
2 #define _RADEON_H
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
3
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
5 /* radeon PCI ids */
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
6 #define PCI_DEVICE_ID_RADEON_QD 0x5144
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
7 #define PCI_DEVICE_ID_RADEON_QE 0x5145
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
8 #define PCI_DEVICE_ID_RADEON_QF 0x5146
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
9 #define PCI_DEVICE_ID_RADEON_QG 0x5147
1913
717f46012fce Radeon VE QZ support
nick
parents: 1912
diff changeset
10 #define PCI_DEVICE_ID_RADEON_QY 0x5159
717f46012fce Radeon VE QZ support
nick
parents: 1912
diff changeset
11 #define PCI_DEVICE_ID_RADEON_QZ 0x515A
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
12 #define PCI_DEVICE_ID_RADEON_LY 0x4C59
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
13 #define PCI_DEVICE_ID_RADEON_LZ 0x4C5A
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
14 #define PCI_DEVICE_ID_RADEON_LW 0x4C57
1967
4e3e03effdac Radeon2 support
nick
parents: 1945
diff changeset
15 #define PCI_DEVICE_ID_R200_QL 0x514C
4e3e03effdac Radeon2 support
nick
parents: 1945
diff changeset
16 #define PCI_DEVICE_ID_RV200_QW 0x5157
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
17
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
18 #define RADEON_REGSIZE 0x4000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
19
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
20
2033
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
21 #define MM_INDEX 0x0000
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
22 /* MM_INDEX bit constants */
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
23 # define MM_APER 0x80000000
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
24 #define MM_DATA 0x0004
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
25 #define BUS_CNTL 0x0030
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
26 /* BUS_CNTL bit constants */
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
27 # define BUS_DBL_RESYNC 0x00000001
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
28 # define BUS_MSTR_RESET 0x00000002
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
29 # define BUS_FLUSH_BUF 0x00000004
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
30 # define BUS_STOP_REQ_DIS 0x00000008
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
31 # define BUS_ROTATION_DIS 0x00000010
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
32 # define BUS_MASTER_DIS 0x00000040
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
33 # define BUS_ROM_WRT_EN 0x00000080
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
34 # define BUS_DIS_ROM 0x00001000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
35 # define BUS_PCI_READ_RETRY_EN 0x00002000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
36 # define BUS_AGP_AD_STEPPING_EN 0x00004000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
37 # define BUS_PCI_WRT_RETRY_EN 0x00008000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
38 # define BUS_MSTR_RD_MULT 0x00100000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
39 # define BUS_MSTR_RD_LINE 0x00200000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
40 # define BUS_SUSPEND 0x00400000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
41 # define LAT_16X 0x00800000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
42 # define BUS_RD_DISCARD_EN 0x01000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
43 # define BUS_RD_ABORT_EN 0x02000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
44 # define BUS_MSTR_WS 0x04000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
45 # define BUS_PARKING_DIS 0x08000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
46 # define BUS_MSTR_DISCONNECT_EN 0x10000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
47 # define BUS_WRT_BURST 0x20000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
48 # define BUS_READ_BURST 0x40000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
49 # define BUS_RDY_READ_DLY 0x80000000
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
50 #define HI_STAT 0x004C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
51 #define BUS_CNTL1 0x0034
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
52 # define BUS_WAIT_ON_LOCK_EN (1 << 4)
2033
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
53 #define I2C_CNTL_0 0x0090
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
54 # define I2C_DONE (1<<0)
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
55 # define I2C_NACK (1<<1)
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
56 # define I2C_HALT (1<<2)
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
57 # define I2C_SOFT_RST (1<<5)
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
58 # define I2C_DRIVE_EN (1<<6)
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
59 # define I2C_DRIVE_SEL (1<<7)
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
60 # define I2C_START (1<<8)
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
61 # define I2C_STOP (1<<9)
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
62 # define I2C_RECEIVE (1<<10)
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
63 # define I2C_ABORT (1<<11)
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
64 # define I2C_GO (1<<12)
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
65 # define I2C_SEL (1<<16)
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
66 # define I2C_EN (1<<17)
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
67 #define I2C_CNTL_1 0x0094
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
68 #define I2C_DATA 0x0098
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
69 #define CONFIG_CNTL 0x00E0
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
70 /* CONFIG_CNTL bit constants */
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
71 # define CFG_VGA_RAM_EN 0x00000100
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
72 #define CONFIG_MEMSIZE 0x00F8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
73 #define CONFIG_APER_0_BASE 0x0100
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
74 #define CONFIG_APER_1_BASE 0x0104
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
75 #define CONFIG_APER_SIZE 0x0108
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
76 #define CONFIG_REG_1_BASE 0x010C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
77 #define CONFIG_REG_APER_SIZE 0x0110
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
78 #define PAD_AGPINPUT_DELAY 0x0164
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
79 #define PAD_CTLR_STRENGTH 0x0168
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
80 #define PAD_CTLR_UPDATE 0x016C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
81 #define AGP_CNTL 0x0174
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
82 # define AGP_APER_SIZE_256MB (0x00 << 0)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
83 # define AGP_APER_SIZE_128MB (0x20 << 0)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
84 # define AGP_APER_SIZE_64MB (0x30 << 0)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
85 # define AGP_APER_SIZE_32MB (0x38 << 0)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
86 # define AGP_APER_SIZE_16MB (0x3c << 0)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
87 # define AGP_APER_SIZE_8MB (0x3e << 0)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
88 # define AGP_APER_SIZE_4MB (0x3f << 0)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
89 # define AGP_APER_SIZE_MASK (0x3f << 0)
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
90 #define AMCGPIO_A_REG 0x01a0
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
91 #define AMCGPIO_EN_REG 0x01a8
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
92 #define AMCGPIO_MASK 0x0194
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
93 #define AMCGPIO_Y_REG 0x01a4
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
94 #define BM_STATUS 0x0160
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
95 #define MPP_TB_CONFIG 0x01c0 /* ? */
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
96 #define MPP_GP_CONFIG 0x01c8 /* ? */
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
97 #define CAP0_TRIG_CNTL 0x0950
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
98 #define CAP1_TRIG_CNTL 0x09c0 /* ? */
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
99 #define VENDOR_ID 0x0F00
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
100 #define DEVICE_ID 0x0F02
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
101 #define COMMAND 0x0F04
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
102 #define STATUS 0x0F06
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
103 #define REVISION_ID 0x0F08
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
104 #define REGPROG_INF 0x0F09
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
105 #define SUB_CLASS 0x0F0A
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
106 #define BASE_CODE 0x0F0B
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
107 #define CACHE_LINE 0x0F0C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
108 #define LATENCY 0x0F0D
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
109 #define HEADER 0x0F0E
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
110 #define BIST 0x0F0F
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
111 #define REG_MEM_BASE 0x0F10
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
112 #define REG_IO_BASE 0x0F14
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
113 #define REG_REG_BASE 0x0F18
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
114 #define ADAPTER_ID 0x0F2C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
115 #define BIOS_ROM 0x0F30
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
116 #define CAPABILITIES_PTR 0x0F34
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
117 #define INTERRUPT_LINE 0x0F3C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
118 #define INTERRUPT_PIN 0x0F3D
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
119 #define MIN_GRANT 0x0F3E
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
120 #define MAX_LATENCY 0x0F3F
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
121 #define ADAPTER_ID_W 0x0F4C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
122 #define PMI_CAP_ID 0x0F50
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
123 #define PMI_NXT_CAP_PTR 0x0F51
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
124 #define PMI_PMC_REG 0x0F52
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
125 #define PM_STATUS 0x0F54
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
126 #define PMI_DATA 0x0F57
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
127 #define AGP_CAP_ID 0x0F58
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
128 #define AGP_STATUS 0x0F5C
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
129 # define AGP_1X_MODE 0x01
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
130 # define AGP_2X_MODE 0x02
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
131 # define AGP_4X_MODE 0x04
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
132 # define AGP_MODE_MASK 0x07
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
133 #define AGP_COMMAND 0x0F60
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
134 #define AIC_CTRL 0x01D0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
135 #define AIC_STAT 0x01D4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
136 #define AIC_PT_BASE 0x01D8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
137 #define AIC_LO_ADDR 0x01DC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
138 #define AIC_HI_ADDR 0x01E0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
139 #define AIC_TLB_ADDR 0x01E4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
140 #define AIC_TLB_DATA 0x01E8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
141 #define DAC_CNTL 0x0058
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
142 /* DAC_CNTL bit constants */
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
143 # define DAC_8BIT_EN 0x00000100
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
144 # define DAC_4BPP_PIX_ORDER 0x00000200
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
145 # define DAC_CRC_EN 0x00080000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
146 # define DAC_MASK_ALL (0xff << 24)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
147 # define DAC_VGA_ADR_EN (1 << 13)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
148 # define DAC_RANGE_CNTL (3 << 0)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
149 # define DAC_BLANKING (1 << 2)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
150 #define DAC_CNTL2 0x007c
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
151 /* DAC_CNTL2 bit constants */
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
152 # define DAC2_DAC_CLK_SEL (1 << 0)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
153 # define DAC2_DAC2_CLK_SEL (1 << 1)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
154 # define DAC2_PALETTE_ACC_CTL (1 << 5)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
155 #define TV_DAC_CNTL 0x088c
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
156 /* TV_DAC_CNTL bit constants */
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
157 # define TV_DAC_STD_MASK 0x0300
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
158 # define TV_DAC_RDACPD (1 << 24)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
159 # define TV_DAC_GDACPD (1 << 25)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
160 # define TV_DAC_BDACPD (1 << 26)
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
161 #define CRTC_GEN_CNTL 0x0050
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
162 /* CRTC_GEN_CNTL bit constants */
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
163 # define CRTC_DBL_SCAN_EN 0x00000001
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
164 # define CRTC_INTERLACE_EN (1 << 1)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
165 # define CRTC_CSYNC_EN (1 << 4)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
166 # define CRTC_CUR_EN 0x00010000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
167 # define CRTC_CUR_MODE_MASK (7 << 17)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
168 # define CRTC_ICON_EN (1 << 20)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
169 # define CRTC_EXT_DISP_EN (1 << 24)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
170 # define CRTC_EN (1 << 25)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
171 # define CRTC_DISP_REQ_EN_B (1 << 26)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
172 #define CRTC2_GEN_CNTL 0x03f8
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
173 /* CRTC2_GEN_CNTL bit constants */
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
174 # define CRTC2_DBL_SCAN_EN (1 << 0)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
175 # define CRTC2_INTERLACE_EN (1 << 1)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
176 # define CRTC2_SYNC_TRISTAT (1 << 4)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
177 # define CRTC2_HSYNC_TRISTAT (1 << 5)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
178 # define CRTC2_VSYNC_TRISTAT (1 << 6)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
179 # define CRTC2_CRT2_ON (1 << 7)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
180 # define CRTC2_ICON_EN (1 << 15)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
181 # define CRTC2_CUR_EN (1 << 16)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
182 # define CRTC2_CUR_MODE_MASK (7 << 20)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
183 # define CRTC2_DISP_DIS (1 << 23)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
184 # define CRTC2_EN (1 << 25)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
185 # define CRTC2_DISP_REQ_EN_B (1 << 26)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
186 # define CRTC2_HSYNC_DIS (1 << 28)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
187 # define CRTC2_VSYNC_DIS (1 << 29)
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
188 #define MEM_CNTL 0x0140
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
189 /* MEM_CNTL bit constants */
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
190 # define MEM_CTLR_STATUS_IDLE 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
191 # define MEM_CTLR_STATUS_BUSY 0x00100000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
192 # define MEM_SEQNCR_STATUS_IDLE 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
193 # define MEM_SEQNCR_STATUS_BUSY 0x00200000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
194 # define MEM_ARBITER_STATUS_IDLE 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
195 # define MEM_ARBITER_STATUS_BUSY 0x00400000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
196 # define MEM_REQ_UNLOCK 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
197 # define MEM_REQ_LOCK 0x00800000
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
198 #define EXT_MEM_CNTL 0x0144
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
199 #define MC_AGP_LOCATION 0x014C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
200 #define MEM_IO_CNTL_A0 0x0178
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
201 #define MEM_INIT_LATENCY_TIMER 0x0154
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
202 #define MEM_SDRAM_MODE_REG 0x0158
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
203 #define AGP_BASE 0x0170
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
204 #define MEM_IO_CNTL_A1 0x017C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
205 #define MEM_IO_CNTL_B0 0x0180
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
206 #define MEM_IO_CNTL_B1 0x0184
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
207 #define MC_DEBUG 0x0188
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
208 #define MC_STATUS 0x0150
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
209 #define MEM_IO_OE_CNTL 0x018C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
210 #define MC_FB_LOCATION 0x0148
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
211 #define HOST_PATH_CNTL 0x0130
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
212 #define MEM_VGA_WP_SEL 0x0038
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
213 #define MEM_VGA_RP_SEL 0x003C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
214 #define HDP_DEBUG 0x0138
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
215 #define SW_SEMAPHORE 0x013C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
216 #define SURFACE_CNTL 0x0B00
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
217 /* SURFACE_CNTL bit constants */
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
218 # define SURF_TRANSLATION_DIS (1 << 8)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
219 # define NONSURF_AP0_SWP_16BPP (1 << 20)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
220 # define NONSURF_AP0_SWP_32BPP (2 << 20)
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
221 #define SURFACE0_LOWER_BOUND 0x0B04
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
222 #define SURFACE1_LOWER_BOUND 0x0B14
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
223 #define SURFACE2_LOWER_BOUND 0x0B24
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
224 #define SURFACE3_LOWER_BOUND 0x0B34
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
225 #define SURFACE4_LOWER_BOUND 0x0B44
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
226 #define SURFACE5_LOWER_BOUND 0x0B54
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
227 #define SURFACE6_LOWER_BOUND 0x0B64
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
228 #define SURFACE7_LOWER_BOUND 0x0B74
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
229 #define SURFACE0_UPPER_BOUND 0x0B08
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
230 #define SURFACE1_UPPER_BOUND 0x0B18
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
231 #define SURFACE2_UPPER_BOUND 0x0B28
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
232 #define SURFACE3_UPPER_BOUND 0x0B38
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
233 #define SURFACE4_UPPER_BOUND 0x0B48
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
234 #define SURFACE5_UPPER_BOUND 0x0B58
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
235 #define SURFACE6_UPPER_BOUND 0x0B68
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
236 #define SURFACE7_UPPER_BOUND 0x0B78
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
237 #define SURFACE0_INFO 0x0B0C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
238 #define SURFACE1_INFO 0x0B1C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
239 #define SURFACE2_INFO 0x0B2C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
240 #define SURFACE3_INFO 0x0B3C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
241 #define SURFACE4_INFO 0x0B4C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
242 #define SURFACE5_INFO 0x0B5C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
243 #define SURFACE6_INFO 0x0B6C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
244 #define SURFACE7_INFO 0x0B7C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
245 #define SURFACE_ACCESS_FLAGS 0x0BF8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
246 #define SURFACE_ACCESS_CLR 0x0BFC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
247 #define GEN_INT_CNTL 0x0040
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
248 #define GEN_INT_STATUS 0x0044
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
249 # define VSYNC_INT_AK (1 << 2)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
250 # define VSYNC_INT (1 << 2)
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
251 #define CRTC_EXT_CNTL 0x0054
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
252 /* CRTC_EXT_CNTL bit constants */
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
253 # define CRTC_VGA_XOVERSCAN (1 << 0)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
254 # define VGA_ATI_LINEAR 0x00000008
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
255 # define VGA_128KAP_PAGING 0x00000010
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
256 # define XCRT_CNT_EN (1 << 6)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
257 # define CRTC_HSYNC_DIS (1 << 8)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
258 # define CRTC_VSYNC_DIS (1 << 9)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
259 # define CRTC_DISPLAY_DIS (1 << 10)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
260 # define CRTC_SYNC_TRISTAT (1 << 11)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
261 # define CRTC_CRT_ON (1 << 15)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
262 #define CRTC_EXT_CNTL_DPMS_BYTE 0x0055
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
263 # define CRTC_HSYNC_DIS_BYTE (1 << 0)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
264 # define CRTC_VSYNC_DIS_BYTE (1 << 1)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
265 # define CRTC_DISPLAY_DIS_BYTE (1 << 2)
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
266 #define RB3D_CNTL 0x1C3C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
267 #define WAIT_UNTIL 0x1720
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
268 #define ISYNC_CNTL 0x1724
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
269 #define RBBM_GUICNTL 0x172C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
270 #define RBBM_STATUS 0x0E40
2037
11cae7a32291 Rage theatre detection
nick
parents: 2033
diff changeset
271 # define RBBM_FIFOCNT_MASK 0x007f
11cae7a32291 Rage theatre detection
nick
parents: 2033
diff changeset
272 # define RBBM_ACTIVE (1 << 31)
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
273 #define RBBM_STATUS_alt_1 0x1740
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
274 #define RBBM_CNTL 0x00EC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
275 #define RBBM_CNTL_alt_1 0x0E44
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
276 #define RBBM_SOFT_RESET 0x00F0
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
277 /* RBBM_SOFT_RESET bit constants */
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
278 # define SOFT_RESET_CP (1 << 0)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
279 # define SOFT_RESET_HI (1 << 1)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
280 # define SOFT_RESET_SE (1 << 2)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
281 # define SOFT_RESET_RE (1 << 3)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
282 # define SOFT_RESET_PP (1 << 4)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
283 # define SOFT_RESET_E2 (1 << 5)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
284 # define SOFT_RESET_RB (1 << 6)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
285 # define SOFT_RESET_HDP (1 << 7)
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
286 #define RBBM_SOFT_RESET_alt_1 0x0E48
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
287 #define NQWAIT_UNTIL 0x0E50
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
288 #define RBBM_DEBUG 0x0E6C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
289 #define RBBM_CMDFIFO_ADDR 0x0E70
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
290 #define RBBM_CMDFIFO_DATAL 0x0E74
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
291 #define RBBM_CMDFIFO_DATAH 0x0E78
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
292 #define RBBM_CMDFIFO_STAT 0x0E7C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
293 #define CRTC_STATUS 0x005C
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
294 /* CRTC_STATUS bit constants */
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
295 # define CRTC_VBLANK 0x00000001
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
296 # define CRTC_VBLANK_SAVE (1 << 1)
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
297 #define GPIO_VGA_DDC 0x0060
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
298 #define GPIO_DVI_DDC 0x0064
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
299 #define GPIO_MONID 0x0068
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
300 #define PALETTE_INDEX 0x00B0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
301 #define PALETTE_DATA 0x00B4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
302 #define PALETTE_30_DATA 0x00B8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
303 #define CRTC_H_TOTAL_DISP 0x0200
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
304 # define CRTC_H_TOTAL (0x03ff << 0)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
305 # define CRTC_H_TOTAL_SHIFT 0
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
306 # define CRTC_H_DISP (0x01ff << 16)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
307 # define CRTC_H_DISP_SHIFT 16
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
308 #define CRTC2_H_TOTAL_DISP 0x0300
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
309 # define CRTC2_H_TOTAL (0x03ff << 0)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
310 # define CRTC2_H_TOTAL_SHIFT 0
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
311 # define CRTC2_H_DISP (0x01ff << 16)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
312 # define CRTC2_H_DISP_SHIFT 16
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
313 #define CRTC_H_SYNC_STRT_WID 0x0204
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
314 # define CRTC_H_SYNC_STRT_PIX (0x07 << 0)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
315 # define CRTC_H_SYNC_STRT_CHAR (0x3ff << 3)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
316 # define CRTC_H_SYNC_STRT_CHAR_SHIFT 3
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
317 # define CRTC_H_SYNC_WID (0x3f << 16)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
318 # define CRTC_H_SYNC_WID_SHIFT 16
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
319 # define CRTC_H_SYNC_POL (1 << 23)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
320 #define CRTC2_H_SYNC_STRT_WID 0x0304
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
321 # define CRTC2_H_SYNC_STRT_PIX (0x07 << 0)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
322 # define CRTC2_H_SYNC_STRT_CHAR (0x3ff << 3)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
323 # define CRTC2_H_SYNC_STRT_CHAR_SHIFT 3
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
324 # define CRTC2_H_SYNC_WID (0x3f << 16)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
325 # define CRTC2_H_SYNC_WID_SHIFT 16
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
326 # define CRTC2_H_SYNC_POL (1 << 23)
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
327 #define CRTC_V_TOTAL_DISP 0x0208
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
328 # define CRTC_V_TOTAL (0x07ff << 0)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
329 # define CRTC_V_TOTAL_SHIFT 0
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
330 # define CRTC_V_DISP (0x07ff << 16)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
331 # define CRTC_V_DISP_SHIFT 16
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
332 #define CRTC2_V_TOTAL_DISP 0x0308
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
333 # define CRTC2_V_TOTAL (0x07ff << 0)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
334 # define CRTC2_V_TOTAL_SHIFT 0
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
335 # define CRTC2_V_DISP (0x07ff << 16)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
336 # define CRTC2_V_DISP_SHIFT 16
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
337 #define CRTC_V_SYNC_STRT_WID 0x020C
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
338 # define CRTC_V_SYNC_STRT (0x7ff << 0)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
339 # define CRTC_V_SYNC_STRT_SHIFT 0
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
340 # define CRTC_V_SYNC_WID (0x1f << 16)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
341 # define CRTC_V_SYNC_WID_SHIFT 16
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
342 # define CRTC_V_SYNC_POL (1 << 23)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
343 #define CRTC2_V_SYNC_STRT_WID 0x030C
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
344 # define CRTC2_V_SYNC_STRT (0x7ff << 0)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
345 # define CRTC2_V_SYNC_STRT_SHIFT 0
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
346 # define CRTC2_V_SYNC_WID (0x1f << 16)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
347 # define CRTC2_V_SYNC_WID_SHIFT 16
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
348 # define CRTC2_V_SYNC_POL (1 << 23)
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
349 #define CRTC_VLINE_CRNT_VLINE 0x0210
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
350 # define CRTC_CRNT_VLINE_MASK (0x7ff << 16)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
351 #define CRTC2_VLINE_CRNT_VLINE 0x0310
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
352 #define CRTC_CRNT_FRAME 0x0214
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
353 #define CRTC2_CRNT_FRAME 0x0314
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
354 #define CRTC_GUI_TRIG_VLINE 0x0218
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
355 #define CRTC2_GUI_TRIG_VLINE 0x0318
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
356 #define CRTC_DEBUG 0x021C
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
357 #define CRTC2_DEBUG 0x031C
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
358 #define CRTC_OFFSET_RIGHT 0x0220
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
359 #define CRTC_OFFSET 0x0224
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
360 #define CRTC2_OFFSET 0x0324
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
361 #define CRTC_OFFSET_CNTL 0x0228
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
362 # define CRTC_TILE_EN (1 << 15)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
363 #define CRTC2_OFFSET_CNTL 0x0328
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
364 # define CRTC2_TILE_EN (1 << 15)
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
365 #define CRTC_PITCH 0x022C
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
366 #define CRTC2_PITCH 0x032C
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
367 #define TMDS_CRC 0x02a0
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
368 #define OVR_CLR 0x0230
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
369 #define OVR_WID_LEFT_RIGHT 0x0234
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
370 #define OVR_WID_TOP_BOTTOM 0x0238
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
371 #define DISPLAY_BASE_ADDR 0x023C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
372 #define SNAPSHOT_VH_COUNTS 0x0240
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
373 #define SNAPSHOT_F_COUNT 0x0244
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
374 #define N_VIF_COUNT 0x0248
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
375 #define SNAPSHOT_VIF_COUNT 0x024C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
376 #define FP_CRTC_H_TOTAL_DISP 0x0250
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
377 #define FP_CRTC2_H_TOTAL_DISP 0x0350
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
378 #define FP_CRTC_V_TOTAL_DISP 0x0254
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
379 #define FP_CRTC2_V_TOTAL_DISP 0x0354
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
380 # define FP_CRTC_H_TOTAL_MASK 0x000003ff
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
381 # define FP_CRTC_H_DISP_MASK 0x01ff0000
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
382 # define FP_CRTC_V_TOTAL_MASK 0x00000fff
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
383 # define FP_CRTC_V_DISP_MASK 0x0fff0000
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
384 # define FP_H_SYNC_STRT_CHAR_MASK 0x00001ff8
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
385 # define FP_H_SYNC_WID_MASK 0x003f0000
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
386 # define FP_V_SYNC_STRT_MASK 0x00000fff
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
387 # define FP_V_SYNC_WID_MASK 0x001f0000
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
388 # define FP_CRTC_H_TOTAL_SHIFT 0x00000000
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
389 # define FP_CRTC_H_DISP_SHIFT 0x00000010
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
390 # define FP_CRTC_V_TOTAL_SHIFT 0x00000000
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
391 # define FP_CRTC_V_DISP_SHIFT 0x00000010
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
392 # define FP_H_SYNC_STRT_CHAR_SHIFT 0x00000003
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
393 # define FP_H_SYNC_WID_SHIFT 0x00000010
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
394 # define FP_V_SYNC_STRT_SHIFT 0x00000000
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
395 # define FP_V_SYNC_WID_SHIFT 0x00000010
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
396 #define CRT_CRTC_H_SYNC_STRT_WID 0x0258
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
397 #define CRT_CRTC_V_SYNC_STRT_WID 0x025C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
398 #define CUR_OFFSET 0x0260
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
399 #define CUR_HORZ_VERT_POSN 0x0264
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
400 #define CUR_HORZ_VERT_OFF 0x0268
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
401 /* CUR_OFFSET, CUR_HORZ_VERT_POSN, CUR_HORZ_VERT_OFF bit constants */
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
402 # define CUR_LOCK 0x80000000
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
403 #define CUR_CLR0 0x026C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
404 #define CUR_CLR1 0x0270
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
405 #define CUR2_OFFSET 0x0360
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
406 #define CUR2_HORZ_VERT_POSN 0x0364
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
407 #define CUR2_HORZ_VERT_OFF 0x0368
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
408 # define CUR2_LOCK (1 << 31)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
409 #define CUR2_CLR0 0x036c
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
410 #define CUR2_CLR1 0x0370
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
411 #define FP_HORZ_VERT_ACTIVE 0x0278
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
412 #define CRTC_MORE_CNTL 0x027C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
413 #define DAC_EXT_CNTL 0x0280
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
414 #define FP_GEN_CNTL 0x0284
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
415 /* FP_GEN_CNTL bit constants */
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
416 # define FP_FPON (1 << 0)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
417 # define FP_TMDS_EN (1 << 2)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
418 # define FP_EN_TMDS (1 << 7)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
419 # define FP_DETECT_SENSE (1 << 8)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
420 # define FP_SEL_CRTC2 (1 << 13)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
421 # define FP_CRTC_DONT_SHADOW_HPAR (1 << 15)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
422 # define FP_CRTC_DONT_SHADOW_VPAR (1 << 16)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
423 # define FP_CRTC_DONT_SHADOW_HEND (1 << 17)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
424 # define FP_CRTC_USE_SHADOW_VEND (1 << 18)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
425 # define FP_RMX_HVSYNC_CONTROL_EN (1 << 20)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
426 # define FP_DFP_SYNC_SEL (1 << 21)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
427 # define FP_CRTC_LOCK_8DOT (1 << 22)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
428 # define FP_CRT_SYNC_SEL (1 << 23)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
429 # define FP_USE_SHADOW_EN (1 << 24)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
430 # define FP_CRT_SYNC_ALT (1 << 26)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
431 #define FP2_GEN_CNTL 0x0288
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
432 /* FP2_GEN_CNTL bit constants */
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
433 # define FP2_FPON (1 << 0)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
434 # define FP2_TMDS_EN (1 << 2)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
435 # define FP2_EN_TMDS (1 << 7)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
436 # define FP2_DETECT_SENSE (1 << 8)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
437 # define FP2_SEL_CRTC2 (1 << 13)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
438 # define FP2_FP_POL (1 << 16)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
439 # define FP2_LP_POL (1 << 17)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
440 # define FP2_SCK_POL (1 << 18)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
441 # define FP2_LCD_CNTL_MASK (7 << 19)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
442 # define FP2_PAD_FLOP_EN (1 << 22)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
443 # define FP2_CRC_EN (1 << 23)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
444 # define FP2_CRC_READ_EN (1 << 24)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
445 #define FP_HORZ_STRETCH 0x028C
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
446 #define FP_HORZ2_STRETCH 0x038C
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
447 # define HORZ_STRETCH_RATIO_MASK 0xffff
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
448 # define HORZ_STRETCH_RATIO_MAX 4096
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
449 # define HORZ_PANEL_SIZE (0x1ff << 16)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
450 # define HORZ_PANEL_SHIFT 16
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
451 # define HORZ_STRETCH_PIXREP (0 << 25)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
452 # define HORZ_STRETCH_BLEND (1 << 26)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
453 # define HORZ_STRETCH_ENABLE (1 << 25)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
454 # define HORZ_AUTO_RATIO (1 << 27)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
455 # define HORZ_FP_LOOP_STRETCH (0x7 << 28)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
456 # define HORZ_AUTO_RATIO_INC (1 << 31)
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
457 #define FP_VERT_STRETCH 0x0290
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
458 #define FP_VERT2_STRETCH 0x0390
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
459 # define VERT_PANEL_SIZE (0xfff << 12)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
460 # define VERT_PANEL_SHIFT 12
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
461 # define VERT_STRETCH_RATIO_MASK 0xfff
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
462 # define VERT_STRETCH_RATIO_SHIFT 0
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
463 # define VERT_STRETCH_RATIO_MAX 4096
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
464 # define VERT_STRETCH_ENABLE (1 << 25)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
465 # define VERT_STRETCH_LINEREP (0 << 26)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
466 # define VERT_STRETCH_BLEND (1 << 26)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
467 # define VERT_AUTO_RATIO_EN (1 << 27)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
468 # define VERT_STRETCH_RESERVED 0xf1000000
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
469 #define FP_H_SYNC_STRT_WID 0x02C4
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
470 #define FP_H2_SYNC_STRT_WID 0x03C4
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
471 #define FP_V_SYNC_STRT_WID 0x02C8
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
472 #define FP_V2_SYNC_STRT_WID 0x03C8
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
473 #define LVDS_GEN_CNTL 0x02d0
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
474 # define LVDS_ON (1 << 0)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
475 # define LVDS_DISPLAY_DIS (1 << 1)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
476 # define LVDS_PANEL_TYPE (1 << 2)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
477 # define LVDS_PANEL_FORMAT (1 << 3)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
478 # define LVDS_EN (1 << 7)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
479 # define LVDS_DIGON (1 << 18)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
480 # define LVDS_BLON (1 << 19)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
481 # define LVDS_SEL_CRTC2 (1 << 23)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
482 #define LVDS_PLL_CNTL 0x02d4
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
483 # define HSYNC_DELAY_SHIFT 28
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
484 # define HSYNC_DELAY_MASK (0xf << 28)
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
485 #define AUX_WINDOW_HORZ_CNTL 0x02D8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
486 #define AUX_WINDOW_VERT_CNTL 0x02DC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
487 #define DDA_CONFIG 0x02e0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
488 #define DDA_ON_OFF 0x02e4
2037
11cae7a32291 Rage theatre detection
nick
parents: 2033
diff changeset
489
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
490 #define GRPH_BUFFER_CNTL 0x02F0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
491 #define VGA_BUFFER_CNTL 0x02F4
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
492 /* first overlay unit (there is only one) */
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
493 #define OV0_Y_X_START 0x0400
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
494 #define OV0_Y_X_END 0x0404
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
495 #define OV0_PIPELINE_CNTL 0x0408
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
496 #define OV0_EXCLUSIVE_HORZ 0x0408
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
497 # define EXCL_HORZ_START_MASK 0x000000ff
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
498 # define EXCL_HORZ_END_MASK 0x0000ff00
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
499 # define EXCL_HORZ_BACK_PORCH_MASK 0x00ff0000
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
500 # define EXCL_HORZ_EXCLUSIVE_EN 0x80000000
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
501 #define OV0_EXCLUSIVE_VERT 0x040C
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
502 # define EXCL_VERT_START_MASK 0x000003ff
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
503 # define EXCL_VERT_END_MASK 0x03ff0000
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
504 #define OV0_REG_LOAD_CNTL 0x0410
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
505 # define REG_LD_CTL_LOCK 0x00000001L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
506 # define REG_LD_CTL_VBLANK_DURING_LOCK 0x00000002L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
507 # define REG_LD_CTL_STALL_GUI_UNTIL_FLIP 0x00000004L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
508 # define REG_LD_CTL_LOCK_READBACK 0x00000008L
3164
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 3122
diff changeset
509 /*#define OV0_REG_SLICE_CNTL 0xXXXX*/
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
510 #define OV0_SCALE_CNTL 0x0420
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
511 # define SCALER_PIX_EXPAND 0x00000001L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
512 # define SCALER_Y2R_TEMP 0x00000002L
2925
49bcb6176569 BES resisters now are really changed!
nick
parents: 2870
diff changeset
513 # define SCALER_HORZ_PICK_NEAREST 0x00000004L
49bcb6176569 BES resisters now are really changed!
nick
parents: 2870
diff changeset
514 # define SCALER_VERT_PICK_NEAREST 0x00000008L
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
515 # define SCALER_SIGNED_UV 0x00000010L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
516 # define SCALER_GAMMA_SEL_MASK 0x00000060L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
517 # define SCALER_GAMMA_SEL_BRIGHT 0x00000000L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
518 # define SCALER_GAMMA_SEL_G22 0x00000020L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
519 # define SCALER_GAMMA_SEL_G18 0x00000040L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
520 # define SCALER_GAMMA_SEL_G14 0x00000060L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
521 # define SCALER_COMCORE_SHIFT_UP_ONE 0x00000080L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
522 # define SCALER_SURFAC_FORMAT 0x00000f00L
3122
60c2510ab0ae Fixed bug of ram_size detection
nick
parents: 2925
diff changeset
523 # define SCALER_SOURCE_UNK0 0x00000000L /* 2 bpp ??? */
60c2510ab0ae Fixed bug of ram_size detection
nick
parents: 2925
diff changeset
524 # define SCALER_SOURCE_UNK1 0x00000100L /* 4 bpp ??? */
60c2510ab0ae Fixed bug of ram_size detection
nick
parents: 2925
diff changeset
525 # define SCALER_SOURCE_UNK2 0x00000200L /* 8 bpp ??? */
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
526 # define SCALER_SOURCE_15BPP 0x00000300L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
527 # define SCALER_SOURCE_16BPP 0x00000400L
2870
f46c5556f1e6 radeon_vid: it's in first pre-alpha stage
nick
parents: 2037
diff changeset
528 # define SCALER_SOURCE_24BPP 0x00000500L
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
529 # define SCALER_SOURCE_32BPP 0x00000600L
3122
60c2510ab0ae Fixed bug of ram_size detection
nick
parents: 2925
diff changeset
530 # define SCALER_SOURCE_UNK3 0x00000700L /* 8BPP_RGB332 ??? */
60c2510ab0ae Fixed bug of ram_size detection
nick
parents: 2925
diff changeset
531 # define SCALER_SOURCE_UNK4 0x00000800L /* 8BPP_Y8 ??? */
60c2510ab0ae Fixed bug of ram_size detection
nick
parents: 2925
diff changeset
532 # define SCALER_SOURCE_YUV9 0x00000900L /* 8BPP_RGB8 */
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
533 # define SCALER_SOURCE_YUV12 0x00000A00L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
534 # define SCALER_SOURCE_VYUY422 0x00000B00L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
535 # define SCALER_SOURCE_YVYU422 0x00000C00L
3122
60c2510ab0ae Fixed bug of ram_size detection
nick
parents: 2925
diff changeset
536 # define SCALER_SOURCE_UNK5 0x00000D00L /* ??? */
60c2510ab0ae Fixed bug of ram_size detection
nick
parents: 2925
diff changeset
537 # define SCALER_SOURCE_UNK6 0x00000E00L /* 32BPP_AYUV444 */
60c2510ab0ae Fixed bug of ram_size detection
nick
parents: 2925
diff changeset
538 # define SCALER_SOURCE_UNK7 0x00000F00L /* 16BPP_ARGB4444 */
2870
f46c5556f1e6 radeon_vid: it's in first pre-alpha stage
nick
parents: 2037
diff changeset
539 # define SCALER_ADAPTIVE_DEINT 0x00001000L
3122
60c2510ab0ae Fixed bug of ram_size detection
nick
parents: 2925
diff changeset
540 # define SCALER_UNKNOWN_FLAG0 0x00002000L /* ??? */
60c2510ab0ae Fixed bug of ram_size detection
nick
parents: 2925
diff changeset
541 # define SCALER_UNKNOWN_FLAG1 0x00004000L /* ??? */
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
542 # define SCALER_SMART_SWITCH 0x00008000L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
543 # define SCALER_BURST_PER_PLANE 0x00ff0000L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
544 # define SCALER_DOUBLE_BUFFER 0x01000000L
3122
60c2510ab0ae Fixed bug of ram_size detection
nick
parents: 2925
diff changeset
545 # define SCALER_UNKNOWN_FLAG3 0x02000000L /* ??? */
60c2510ab0ae Fixed bug of ram_size detection
nick
parents: 2925
diff changeset
546 # define SCALER_UNKNOWN_FLAG4 0x04000000L /* ??? */
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
547 # define SCALER_DIS_LIMIT 0x08000000L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
548 # define SCALER_PRG_LOAD_START 0x10000000L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
549 # define SCALER_INT_EMU 0x20000000L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
550 # define SCALER_ENABLE 0x40000000L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
551 # define SCALER_SOFT_RESET 0x80000000L
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
552 #define OV0_V_INC 0x0424
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
553 #define OV0_P1_V_ACCUM_INIT 0x0428
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
554 # define OV0_P1_MAX_LN_IN_PER_LN_OUT 0x00000003L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
555 # define OV0_P1_V_ACCUM_INIT_MASK 0x01ff8000L
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
556 #define OV0_P23_V_ACCUM_INIT 0x042C
3122
60c2510ab0ae Fixed bug of ram_size detection
nick
parents: 2925
diff changeset
557 # define OV0_P23_MAX_LN_IN_PER_LN_OUT 0x00000003L
60c2510ab0ae Fixed bug of ram_size detection
nick
parents: 2925
diff changeset
558 # define OV0_P23_V_ACCUM_INIT_MASK 0x01ff8000L
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
559 #define OV0_P1_BLANK_LINES_AT_TOP 0x0430
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
560 # define P1_BLNK_LN_AT_TOP_M1_MASK 0x00000fffL
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
561 # define P1_ACTIVE_LINES_M1 0x0fff0000L
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
562 #define OV0_P23_BLANK_LINES_AT_TOP 0x0434
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
563 # define P23_BLNK_LN_AT_TOP_M1_MASK 0x000007ffL
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
564 # define P23_ACTIVE_LINES_M1 0x07ff0000L
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
565 #define OV0_BASE_ADDR 0x043C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
566 #define OV0_VID_BUF0_BASE_ADRS 0x0440
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
567 # define VIF_BUF0_PITCH_SEL 0x00000001L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
568 # define VIF_BUF0_TILE_ADRS 0x00000002L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
569 # define VIF_BUF0_BASE_ADRS_MASK 0x03fffff0L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
570 # define VIF_BUF0_1ST_LINE_LSBS_MASK 0x48000000L
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
571 #define OV0_VID_BUF1_BASE_ADRS 0x0444
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
572 # define VIF_BUF1_PITCH_SEL 0x00000001L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
573 # define VIF_BUF1_TILE_ADRS 0x00000002L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
574 # define VIF_BUF1_BASE_ADRS_MASK 0x03fffff0L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
575 # define VIF_BUF1_1ST_LINE_LSBS_MASK 0x48000000L
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
576 #define OV0_VID_BUF2_BASE_ADRS 0x0448
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
577 # define VIF_BUF2_PITCH_SEL 0x00000001L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
578 # define VIF_BUF2_TILE_ADRS 0x00000002L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
579 # define VIF_BUF2_BASE_ADRS_MASK 0x03fffff0L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
580 # define VIF_BUF2_1ST_LINE_LSBS_MASK 0x48000000L
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
581 #define OV0_VID_BUF3_BASE_ADRS 0x044C
3122
60c2510ab0ae Fixed bug of ram_size detection
nick
parents: 2925
diff changeset
582 # define VIF_BUF3_PITCH_SEL 0x00000001L
60c2510ab0ae Fixed bug of ram_size detection
nick
parents: 2925
diff changeset
583 # define VIF_BUF3_TILE_ADRS 0x00000002L
60c2510ab0ae Fixed bug of ram_size detection
nick
parents: 2925
diff changeset
584 # define VIF_BUF3_BASE_ADRS_MASK 0x03fffff0L
60c2510ab0ae Fixed bug of ram_size detection
nick
parents: 2925
diff changeset
585 # define VIF_BUF3_1ST_LINE_LSBS_MASK 0x48000000L
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
586 #define OV0_VID_BUF4_BASE_ADRS 0x0450
3122
60c2510ab0ae Fixed bug of ram_size detection
nick
parents: 2925
diff changeset
587 # define VIF_BUF4_PITCH_SEL 0x00000001L
60c2510ab0ae Fixed bug of ram_size detection
nick
parents: 2925
diff changeset
588 # define VIF_BUF4_TILE_ADRS 0x00000002L
60c2510ab0ae Fixed bug of ram_size detection
nick
parents: 2925
diff changeset
589 # define VIF_BUF4_BASE_ADRS_MASK 0x03fffff0L
60c2510ab0ae Fixed bug of ram_size detection
nick
parents: 2925
diff changeset
590 # define VIF_BUF4_1ST_LINE_LSBS_MASK 0x48000000L
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
591 #define OV0_VID_BUF5_BASE_ADRS 0x0454
3122
60c2510ab0ae Fixed bug of ram_size detection
nick
parents: 2925
diff changeset
592 # define VIF_BUF5_PITCH_SEL 0x00000001L
60c2510ab0ae Fixed bug of ram_size detection
nick
parents: 2925
diff changeset
593 # define VIF_BUF5_TILE_ADRS 0x00000002L
60c2510ab0ae Fixed bug of ram_size detection
nick
parents: 2925
diff changeset
594 # define VIF_BUF5_BASE_ADRS_MASK 0x03fffff0L
60c2510ab0ae Fixed bug of ram_size detection
nick
parents: 2925
diff changeset
595 # define VIF_BUF5_1ST_LINE_LSBS_MASK 0x48000000L
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
596 #define OV0_VID_BUF_PITCH0_VALUE 0x0460
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
597 #define OV0_VID_BUF_PITCH1_VALUE 0x0464
2870
f46c5556f1e6 radeon_vid: it's in first pre-alpha stage
nick
parents: 2037
diff changeset
598 #define OV0_AUTO_FLIP_CNTL 0x0470
f46c5556f1e6 radeon_vid: it's in first pre-alpha stage
nick
parents: 2037
diff changeset
599 # define OV0_AUTO_FLIP_CNTL_SOFT_BUF_NUM 0x00000007
f46c5556f1e6 radeon_vid: it's in first pre-alpha stage
nick
parents: 2037
diff changeset
600 # define OV0_AUTO_FLIP_CNTL_SOFT_REPEAT_FIELD 0x00000008
f46c5556f1e6 radeon_vid: it's in first pre-alpha stage
nick
parents: 2037
diff changeset
601 # define OV0_AUTO_FLIP_CNTL_SOFT_BUF_ODD 0x00000010
f46c5556f1e6 radeon_vid: it's in first pre-alpha stage
nick
parents: 2037
diff changeset
602 # define OV0_AUTO_FLIP_CNTL_IGNORE_REPEAT_FIELD 0x00000020
f46c5556f1e6 radeon_vid: it's in first pre-alpha stage
nick
parents: 2037
diff changeset
603 # define OV0_AUTO_FLIP_CNTL_SOFT_EOF_TOGGLE 0x00000040
f46c5556f1e6 radeon_vid: it's in first pre-alpha stage
nick
parents: 2037
diff changeset
604 # define OV0_AUTO_FLIP_CNTL_VID_PORT_SELECT 0x00000300
f46c5556f1e6 radeon_vid: it's in first pre-alpha stage
nick
parents: 2037
diff changeset
605 # define OV0_AUTO_FLIP_CNTL_P1_FIRST_LINE_EVEN 0x00010000
f46c5556f1e6 radeon_vid: it's in first pre-alpha stage
nick
parents: 2037
diff changeset
606 # define OV0_AUTO_FLIP_CNTL_SHIFT_EVEN_DOWN 0x00040000
f46c5556f1e6 radeon_vid: it's in first pre-alpha stage
nick
parents: 2037
diff changeset
607 # define OV0_AUTO_FLIP_CNTL_SHIFT_ODD_DOWN 0x00080000
f46c5556f1e6 radeon_vid: it's in first pre-alpha stage
nick
parents: 2037
diff changeset
608 # define OV0_AUTO_FLIP_CNTL_FIELD_POL_SOURCE 0x00800000
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
609 #define OV0_DEINTERLACE_PATTERN 0x0474
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
610 #define OV0_SUBMIT_HISTORY 0x0478
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
611 #define OV0_H_INC 0x0480
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
612 #define OV0_STEP_BY 0x0484
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
613 #define OV0_P1_H_ACCUM_INIT 0x0488
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
614 #define OV0_P23_H_ACCUM_INIT 0x048C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
615 #define OV0_P1_X_START_END 0x0494
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
616 #define OV0_P2_X_START_END 0x0498
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
617 #define OV0_P3_X_START_END 0x049C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
618 #define OV0_FILTER_CNTL 0x04A0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
619 #define OV0_FOUR_TAP_COEF_0 0x04B0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
620 #define OV0_FOUR_TAP_COEF_1 0x04B4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
621 #define OV0_FOUR_TAP_COEF_2 0x04B8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
622 #define OV0_FOUR_TAP_COEF_3 0x04BC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
623 #define OV0_FOUR_TAP_COEF_4 0x04C0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
624 #define OV0_FLAG_CNTRL 0x04DC
2870
f46c5556f1e6 radeon_vid: it's in first pre-alpha stage
nick
parents: 2037
diff changeset
625 #define OV0_COLOUR_CNTL 0x04E0
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
626 #define OV0_VID_KEY_CLR_LOW 0x04E4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
627 #define OV0_VID_KEY_CLR_HIGH 0x04E8
2870
f46c5556f1e6 radeon_vid: it's in first pre-alpha stage
nick
parents: 2037
diff changeset
628 #define OV0_GRAPHICS_KEY_CLR 0x04EC
f46c5556f1e6 radeon_vid: it's in first pre-alpha stage
nick
parents: 2037
diff changeset
629 #define OV0_GRAPHICS_KEY_MSK 0x04F0
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
630 #define OV0_KEY_CNTL 0x04F4
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
631 # define VIDEO_KEY_FN_MASK 0x00000007L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
632 # define VIDEO_KEY_FN_FALSE 0x00000000L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
633 # define VIDEO_KEY_FN_TRUE 0x00000001L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
634 # define VIDEO_KEY_FN_EQ 0x00000004L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
635 # define VIDEO_KEY_FN_NE 0x00000005L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
636 # define GRAPHIC_KEY_FN_MASK 0x00000070L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
637 # define GRAPHIC_KEY_FN_FALSE 0x00000000L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
638 # define GRAPHIC_KEY_FN_TRUE 0x00000010L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
639 # define GRAPHIC_KEY_FN_EQ 0x00000040L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
640 # define GRAPHIC_KEY_FN_NE 0x00000050L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
641 # define CMP_MIX_MASK 0x00000100L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
642 # define CMP_MIX_OR 0x00000000L
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
643 # define CMP_MIX_AND 0x00000100L
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
644 #define OV0_TEST 0x04F8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
645 #define SUBPIC_CNTL 0x0540
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
646 #define SUBPIC_DEFCOLCON 0x0544
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
647 #define SUBPIC_Y_X_START 0x054C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
648 #define SUBPIC_Y_X_END 0x0550
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
649 #define SUBPIC_V_INC 0x0554
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
650 #define SUBPIC_H_INC 0x0558
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
651 #define SUBPIC_BUF0_OFFSET 0x055C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
652 #define SUBPIC_BUF1_OFFSET 0x0560
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
653 #define SUBPIC_LC0_OFFSET 0x0564
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
654 #define SUBPIC_LC1_OFFSET 0x0568
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
655 #define SUBPIC_PITCH 0x056C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
656 #define SUBPIC_BTN_HLI_COLCON 0x0570
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
657 #define SUBPIC_BTN_HLI_Y_X_START 0x0574
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
658 #define SUBPIC_BTN_HLI_Y_X_END 0x0578
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
659 #define SUBPIC_PALETTE_INDEX 0x057C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
660 #define SUBPIC_PALETTE_DATA 0x0580
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
661 #define SUBPIC_H_ACCUM_INIT 0x0584
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
662 #define SUBPIC_V_ACCUM_INIT 0x0588
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
663 #define DISP_MISC_CNTL 0x0D00
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
664 # define SOFT_RESET_GRPH_PP (1 << 0)
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
665 #define DAC_MACRO_CNTL 0x0D04
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
666 #define DISP_PWR_MAN 0x0D08
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
667 #define DISP_TEST_DEBUG_CNTL 0x0D10
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
668 #define DISP_HW_DEBUG 0x0D14
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
669 #define DAC_CRC_SIG1 0x0D18
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
670 #define DAC_CRC_SIG2 0x0D1C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
671 #define OV0_LIN_TRANS_A 0x0D20
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
672 #define OV0_LIN_TRANS_B 0x0D24
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
673 #define OV0_LIN_TRANS_C 0x0D28
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
674 #define OV0_LIN_TRANS_D 0x0D2C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
675 #define OV0_LIN_TRANS_E 0x0D30
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
676 #define OV0_LIN_TRANS_F 0x0D34
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
677 #define OV0_GAMMA_0_F 0x0D40
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
678 #define OV0_GAMMA_10_1F 0x0D44
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
679 #define OV0_GAMMA_20_3F 0x0D48
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
680 #define OV0_GAMMA_40_7F 0x0D4C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
681 #define OV0_GAMMA_380_3BF 0x0D50
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
682 #define OV0_GAMMA_3C0_3FF 0x0D54
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
683 #define DISP_MERGE_CNTL 0x0D60
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
684 #define DISP_OUTPUT_CNTL 0x0D64
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
685 # define DISP_DAC_SOURCE_MASK 0x03
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
686 # define DISP_DAC_SOURCE_CRTC2 0x01
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
687 #define DISP_LIN_TRANS_GRPH_A 0x0D80
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
688 #define DISP_LIN_TRANS_GRPH_B 0x0D84
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
689 #define DISP_LIN_TRANS_GRPH_C 0x0D88
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
690 #define DISP_LIN_TRANS_GRPH_D 0x0D8C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
691 #define DISP_LIN_TRANS_GRPH_E 0x0D90
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
692 #define DISP_LIN_TRANS_GRPH_F 0x0D94
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
693 #define DISP_LIN_TRANS_VID_A 0x0D98
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
694 #define DISP_LIN_TRANS_VID_B 0x0D9C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
695 #define DISP_LIN_TRANS_VID_C 0x0DA0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
696 #define DISP_LIN_TRANS_VID_D 0x0DA4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
697 #define DISP_LIN_TRANS_VID_E 0x0DA8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
698 #define DISP_LIN_TRANS_VID_F 0x0DAC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
699 #define RMX_HORZ_FILTER_0TAP_COEF 0x0DB0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
700 #define RMX_HORZ_FILTER_1TAP_COEF 0x0DB4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
701 #define RMX_HORZ_FILTER_2TAP_COEF 0x0DB8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
702 #define RMX_HORZ_PHASE 0x0DBC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
703 #define DAC_EMBEDDED_SYNC_CNTL 0x0DC0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
704 #define DAC_BROAD_PULSE 0x0DC4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
705 #define DAC_SKEW_CLKS 0x0DC8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
706 #define DAC_INCR 0x0DCC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
707 #define DAC_NEG_SYNC_LEVEL 0x0DD0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
708 #define DAC_POS_SYNC_LEVEL 0x0DD4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
709 #define DAC_BLANK_LEVEL 0x0DD8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
710 #define CLOCK_CNTL_INDEX 0x0008
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
711 /* CLOCK_CNTL_INDEX bit constants */
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
712 # define PLL_WR_EN 0x00000080
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
713 # define PLL_DIV_SEL (3 << 8)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
714 # define PLL2_DIV_SEL_MASK ~(3 << 8)
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
715 #define CLOCK_CNTL_DATA 0x000C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
716 #define CP_RB_CNTL 0x0704
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
717 #define CP_RB_BASE 0x0700
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
718 #define CP_RB_RPTR_ADDR 0x070C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
719 #define CP_RB_RPTR 0x0710
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
720 #define CP_RB_WPTR 0x0714
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
721 #define CP_RB_WPTR_DELAY 0x0718
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
722 #define CP_IB_BASE 0x0738
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
723 #define CP_IB_BUFSZ 0x073C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
724 #define SCRATCH_REG0 0x15E0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
725 #define GUI_SCRATCH_REG0 0x15E0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
726 #define SCRATCH_REG1 0x15E4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
727 #define GUI_SCRATCH_REG1 0x15E4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
728 #define SCRATCH_REG2 0x15E8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
729 #define GUI_SCRATCH_REG2 0x15E8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
730 #define SCRATCH_REG3 0x15EC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
731 #define GUI_SCRATCH_REG3 0x15EC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
732 #define SCRATCH_REG4 0x15F0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
733 #define GUI_SCRATCH_REG4 0x15F0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
734 #define SCRATCH_REG5 0x15F4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
735 #define GUI_SCRATCH_REG5 0x15F4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
736 #define SCRATCH_UMSK 0x0770
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
737 #define SCRATCH_ADDR 0x0774
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
738 #define DP_BRUSH_FRGD_CLR 0x147C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
739 #define DP_BRUSH_BKGD_CLR 0x1478
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
740 #define DST_LINE_START 0x1600
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
741 #define DST_LINE_END 0x1604
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
742 #define SRC_OFFSET 0x15AC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
743 #define SRC_PITCH 0x15B0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
744 #define SRC_TILE 0x1704
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
745 #define SRC_PITCH_OFFSET 0x1428
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
746 #define SRC_X 0x1414
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
747 #define SRC_Y 0x1418
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
748 #define SRC_X_Y 0x1590
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
749 #define SRC_Y_X 0x1434
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
750 #define DST_Y_X 0x1438
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
751 #define DST_WIDTH_HEIGHT 0x1598
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
752 #define DST_HEIGHT_WIDTH 0x143c
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
753 #define SRC_CLUT_ADDRESS 0x1780
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
754 #define SRC_CLUT_DATA 0x1784
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
755 #define SRC_CLUT_DATA_RD 0x1788
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
756 #define HOST_DATA0 0x17C0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
757 #define HOST_DATA1 0x17C4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
758 #define HOST_DATA2 0x17C8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
759 #define HOST_DATA3 0x17CC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
760 #define HOST_DATA4 0x17D0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
761 #define HOST_DATA5 0x17D4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
762 #define HOST_DATA6 0x17D8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
763 #define HOST_DATA7 0x17DC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
764 #define HOST_DATA_LAST 0x17E0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
765 #define DP_SRC_ENDIAN 0x15D4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
766 #define DP_SRC_FRGD_CLR 0x15D8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
767 #define DP_SRC_BKGD_CLR 0x15DC
2037
11cae7a32291 Rage theatre detection
nick
parents: 2033
diff changeset
768 #define DP_WRITE_MASK 0x16cc
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
769 #define SC_LEFT 0x1640
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
770 #define SC_RIGHT 0x1644
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
771 #define SC_TOP 0x1648
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
772 #define SC_BOTTOM 0x164C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
773 #define SRC_SC_RIGHT 0x1654
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
774 #define SRC_SC_BOTTOM 0x165C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
775 #define DP_CNTL 0x16C0
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
776 /* DP_CNTL bit constants */
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
777 # define DST_X_RIGHT_TO_LEFT 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
778 # define DST_X_LEFT_TO_RIGHT 0x00000001
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
779 # define DST_Y_BOTTOM_TO_TOP 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
780 # define DST_Y_TOP_TO_BOTTOM 0x00000002
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
781 # define DST_X_MAJOR 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
782 # define DST_Y_MAJOR 0x00000004
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
783 # define DST_X_TILE 0x00000008
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
784 # define DST_Y_TILE 0x00000010
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
785 # define DST_LAST_PEL 0x00000020
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
786 # define DST_TRAIL_X_RIGHT_TO_LEFT 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
787 # define DST_TRAIL_X_LEFT_TO_RIGHT 0x00000040
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
788 # define DST_TRAP_FILL_RIGHT_TO_LEFT 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
789 # define DST_TRAP_FILL_LEFT_TO_RIGHT 0x00000080
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
790 # define DST_BRES_SIGN 0x00000100
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
791 # define DST_HOST_BIG_ENDIAN_EN 0x00000200
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
792 # define DST_POLYLINE_NONLAST 0x00008000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
793 # define DST_RASTER_STALL 0x00010000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
794 # define DST_POLY_EDGE 0x00040000
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
795 #define DP_CNTL_XDIR_YDIR_YMAJOR 0x16D0
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
796 /* DP_CNTL_XDIR_YDIR_YMAJOR bit constants (short version of DP_CNTL) */
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
797 # define DST_X_MAJOR_S 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
798 # define DST_Y_MAJOR_S 0x00000001
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
799 # define DST_Y_BOTTOM_TO_TOP_S 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
800 # define DST_Y_TOP_TO_BOTTOM_S 0x00008000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
801 # define DST_X_RIGHT_TO_LEFT_S 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
802 # define DST_X_LEFT_TO_RIGHT_S 0x80000000
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
803 #define DP_DATATYPE 0x16C4
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
804 /* DP_DATATYPE bit constants */
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
805 # define DST_8BPP 0x00000002
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
806 # define DST_15BPP 0x00000003
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
807 # define DST_16BPP 0x00000004
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
808 # define DST_24BPP 0x00000005
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
809 # define DST_32BPP 0x00000006
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
810 # define DST_8BPP_RGB332 0x00000007
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
811 # define DST_8BPP_Y8 0x00000008
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
812 # define DST_8BPP_RGB8 0x00000009
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
813 # define DST_16BPP_VYUY422 0x0000000b
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
814 # define DST_16BPP_YVYU422 0x0000000c
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
815 # define DST_32BPP_AYUV444 0x0000000e
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
816 # define DST_16BPP_ARGB4444 0x0000000f
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
817 # define BRUSH_SOLIDCOLOR 0x00000d00
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
818 # define SRC_MONO 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
819 # define SRC_MONO_LBKGD 0x00010000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
820 # define SRC_DSTCOLOR 0x00030000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
821 # define BYTE_ORDER_MSB_TO_LSB 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
822 # define BYTE_ORDER_LSB_TO_MSB 0x40000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
823 # define DP_CONVERSION_TEMP 0x80000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
824 # define HOST_BIG_ENDIAN_EN (1 << 29)
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
825 #define DP_MIX 0x16C8
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
826 /* DP_MIX bit constants */
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
827 # define DP_SRC_RECT 0x00000200
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
828 # define DP_SRC_HOST 0x00000300
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
829 # define DP_SRC_HOST_BYTEALIGN 0x00000400
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
830 #define DP_WRITE_MSK 0x16CC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
831 #define DP_XOP 0x17F8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
832 #define CLR_CMP_CLR_SRC 0x15C4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
833 #define CLR_CMP_CLR_DST 0x15C8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
834 #define CLR_CMP_CNTL 0x15C0
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
835 /* CLR_CMP_CNTL bit constants */
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
836 # define COMPARE_SRC_FALSE 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
837 # define COMPARE_SRC_TRUE 0x00000001
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
838 # define COMPARE_SRC_NOT_EQUAL 0x00000004
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
839 # define COMPARE_SRC_EQUAL 0x00000005
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
840 # define COMPARE_SRC_EQUAL_FLIP 0x00000007
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
841 # define COMPARE_DST_FALSE 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
842 # define COMPARE_DST_TRUE 0x00000100
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
843 # define COMPARE_DST_NOT_EQUAL 0x00000400
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
844 # define COMPARE_DST_EQUAL 0x00000500
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
845 # define COMPARE_DESTINATION 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
846 # define COMPARE_SOURCE 0x01000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
847 # define COMPARE_SRC_AND_DST 0x02000000
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
848 #define CLR_CMP_MSK 0x15CC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
849 #define DSTCACHE_MODE 0x1710
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
850 #define DSTCACHE_CTLSTAT 0x1714
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
851 /* DSTCACHE_CTLSTAT bit constants */
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
852 # define RB2D_DC_FLUSH (3 << 0)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
853 # define RB2D_DC_FLUSH_ALL 0xf
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
854 # define RB2D_DC_BUSY (1 << 31)
2037
11cae7a32291 Rage theatre detection
nick
parents: 2033
diff changeset
855 #define DEFAULT_OFFSET 0x16e0
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
856 #define DEFAULT_PITCH_OFFSET 0x16E0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
857 #define DEFAULT_SC_BOTTOM_RIGHT 0x16E8
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
858 /* DEFAULT_SC_BOTTOM_RIGHT bit constants */
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
859 # define DEFAULT_SC_RIGHT_MAX (0x1fff << 0)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
860 # define DEFAULT_SC_BOTTOM_MAX (0x1fff << 16)
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
861 #define DP_GUI_MASTER_CNTL 0x146C
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
862 /* DP_GUI_MASTER_CNTL bit constants */
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
863 # define GMC_SRC_PITCH_OFFSET_DEFAULT 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
864 # define GMC_SRC_PITCH_OFFSET_LEAVE 0x00000001
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
865 # define GMC_DST_PITCH_OFFSET_DEFAULT 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
866 # define GMC_DST_PITCH_OFFSET_LEAVE 0x00000002
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
867 # define GMC_SRC_CLIP_DEFAULT 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
868 # define GMC_SRC_CLIP_LEAVE 0x00000004
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
869 # define GMC_DST_CLIP_DEFAULT 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
870 # define GMC_DST_CLIP_LEAVE 0x00000008
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
871 # define GMC_BRUSH_8x8MONO 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
872 # define GMC_BRUSH_8x8MONO_LBKGD 0x00000010
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
873 # define GMC_BRUSH_8x1MONO 0x00000020
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
874 # define GMC_BRUSH_8x1MONO_LBKGD 0x00000030
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
875 # define GMC_BRUSH_1x8MONO 0x00000040
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
876 # define GMC_BRUSH_1x8MONO_LBKGD 0x00000050
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
877 # define GMC_BRUSH_32x1MONO 0x00000060
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
878 # define GMC_BRUSH_32x1MONO_LBKGD 0x00000070
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
879 # define GMC_BRUSH_32x32MONO 0x00000080
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
880 # define GMC_BRUSH_32x32MONO_LBKGD 0x00000090
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
881 # define GMC_BRUSH_8x8COLOR 0x000000a0
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
882 # define GMC_BRUSH_8x1COLOR 0x000000b0
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
883 # define GMC_BRUSH_1x8COLOR 0x000000c0
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
884 # define GMC_BRUSH_SOLID_COLOR 0x000000d0
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
885 # define GMC_DST_8BPP 0x00000200
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
886 # define GMC_DST_15BPP 0x00000300
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
887 # define GMC_DST_16BPP 0x00000400
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
888 # define GMC_DST_24BPP 0x00000500
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
889 # define GMC_DST_32BPP 0x00000600
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
890 # define GMC_DST_8BPP_RGB332 0x00000700
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
891 # define GMC_DST_8BPP_Y8 0x00000800
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
892 # define GMC_DST_8BPP_RGB8 0x00000900
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
893 # define GMC_DST_16BPP_VYUY422 0x00000b00
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
894 # define GMC_DST_16BPP_YVYU422 0x00000c00
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
895 # define GMC_DST_32BPP_AYUV444 0x00000e00
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
896 # define GMC_DST_16BPP_ARGB4444 0x00000f00
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
897 # define GMC_SRC_MONO 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
898 # define GMC_SRC_MONO_LBKGD 0x00001000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
899 # define GMC_SRC_DSTCOLOR 0x00003000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
900 # define GMC_BYTE_ORDER_MSB_TO_LSB 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
901 # define GMC_BYTE_ORDER_LSB_TO_MSB 0x00004000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
902 # define GMC_DP_CONVERSION_TEMP_9300 0x00008000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
903 # define GMC_DP_CONVERSION_TEMP_6500 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
904 # define GMC_DP_SRC_RECT 0x02000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
905 # define GMC_DP_SRC_HOST 0x03000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
906 # define GMC_DP_SRC_HOST_BYTEALIGN 0x04000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
907 # define GMC_3D_FCN_EN_CLR 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
908 # define GMC_3D_FCN_EN_SET 0x08000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
909 # define GMC_DST_CLR_CMP_FCN_LEAVE 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
910 # define GMC_DST_CLR_CMP_FCN_CLEAR 0x10000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
911 # define GMC_AUX_CLIP_LEAVE 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
912 # define GMC_AUX_CLIP_CLEAR 0x20000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
913 # define GMC_WRITE_MASK_LEAVE 0x00000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
914 # define GMC_WRITE_MASK_SET 0x40000000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
915 # define GMC_CLR_CMP_CNTL_DIS (1 << 28)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
916 # define GMC_SRC_DATATYPE_COLOR (3 << 12)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
917 # define ROP3_S 0x00cc0000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
918 # define ROP3_SRCCOPY 0x00cc0000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
919 # define ROP3_P 0x00f00000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
920 # define ROP3_PATCOPY 0x00f00000
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
921 # define DP_SRC_SOURCE_MASK (7 << 24)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
922 # define GMC_BRUSH_NONE (15 << 4)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
923 # define DP_SRC_SOURCE_MEMORY (2 << 24)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
924 # define GMC_BRUSH_SOLIDCOLOR 0x000000d0
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
925 #define SC_TOP_LEFT 0x16EC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
926 #define SC_BOTTOM_RIGHT 0x16F0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
927 #define SRC_SC_BOTTOM_RIGHT 0x16F4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
928 #define RB2D_DSTCACHE_CTLSTAT 0x342C
2037
11cae7a32291 Rage theatre detection
nick
parents: 2033
diff changeset
929 #define RB2D_DSTCACHE_MODE 0x3428
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
930
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
931 #define RADEON_BASE_CODE 0x0f0b
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
932 #define RADEON_BIOS_0_SCRATCH 0x0010
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
933 #define RADEON_BIOS_1_SCRATCH 0x0014
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
934 #define RADEON_BIOS_2_SCRATCH 0x0018
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
935 #define RADEON_BIOS_3_SCRATCH 0x001c
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
936 #define RADEON_BIOS_4_SCRATCH 0x0020
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
937 #define RADEON_BIOS_5_SCRATCH 0x0024
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
938 #define RADEON_BIOS_6_SCRATCH 0x0028
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
939 #define RADEON_BIOS_7_SCRATCH 0x002c
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
940
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
941
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
942 #define CLK_PIN_CNTL 0x0001
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
943 #define PPLL_CNTL 0x0002
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
944 # define PPLL_RESET (1 << 0)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
945 # define PPLL_SLEEP (1 << 1)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
946 # define PPLL_ATOMIC_UPDATE_EN (1 << 16)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
947 # define PPLL_VGA_ATOMIC_UPDATE_EN (1 << 17)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
948 # define PPLL_ATOMIC_UPDATE_VSYNC (1 << 18)
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
949 #define PPLL_REF_DIV 0x0003
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
950 # define PPLL_REF_DIV_MASK 0x03ff
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
951 # define PPLL_ATOMIC_UPDATE_R (1 << 15) /* same as _W */
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
952 # define PPLL_ATOMIC_UPDATE_W (1 << 15) /* same as _R */
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
953 #define PPLL_DIV_0 0x0004
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
954 #define PPLL_DIV_1 0x0005
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
955 #define PPLL_DIV_2 0x0006
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
956 #define PPLL_DIV_3 0x0007
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
957 #define VCLK_ECP_CNTL 0x0008
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
958 #define HTOTAL_CNTL 0x0009
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
959 #define HTOTAL2_CNTL 0x002e /* PLL */
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
960 #define M_SPLL_REF_FB_DIV 0x000a
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
961 #define AGP_PLL_CNTL 0x000b
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
962 #define SPLL_CNTL 0x000c
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
963 #define SCLK_CNTL 0x000d
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
964 #define MPLL_CNTL 0x000e
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
965 #define MCLK_CNTL 0x0012
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
966 /* MCLK_CNTL bit constants */
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
967 # define FORCEON_MCLKA (1 << 16)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
968 # define FORCEON_MCLKB (1 << 17)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
969 # define FORCEON_YCLKA (1 << 18)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
970 # define FORCEON_YCLKB (1 << 19)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
971 # define FORCEON_MC (1 << 20)
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
972 # define FORCEON_AIC (1 << 21)
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
973 #define PLL_TEST_CNTL 0x0013
1945
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
974 #define P2PLL_CNTL 0x002a /* P2PLL */
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
975 # define P2PLL_RESET (1 << 0)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
976 # define P2PLL_SLEEP (1 << 1)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
977 # define P2PLL_ATOMIC_UPDATE_EN (1 << 16)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
978 # define P2PLL_VGA_ATOMIC_UPDATE_EN (1 << 17)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
979 # define P2PLL_ATOMIC_UPDATE_VSYNC (1 << 18)
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
980 #define P2PLL_DIV_0 0x002c
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
981 # define P2PLL_FB0_DIV_MASK 0x07ff
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
982 # define P2PLL_POST0_DIV_MASK 0x00070000
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
983 #define P2PLL_REF_DIV 0x002B /* PLL */
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
984 # define P2PLL_REF_DIV_MASK 0x03ff
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
985 # define P2PLL_ATOMIC_UPDATE_R (1 << 15) /* same as _W */
0f204bd39635 More known registers and their bit-constants
nick
parents: 1915
diff changeset
986 # define P2PLL_ATOMIC_UPDATE_W (1 << 15) /* same as _R */
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
987
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
988 /* masks */
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
989
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
990 #define CONFIG_MEMSIZE_MASK 0x1f000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
991 #define MEM_CFG_TYPE 0x40000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
992 #define DST_OFFSET_MASK 0x003fffff
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
993 #define DST_PITCH_MASK 0x3fc00000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
994 #define DEFAULT_TILE_MASK 0xc0000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
995 #define PPLL_DIV_SEL_MASK 0x00000300
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
996 #define PPLL_FB3_DIV_MASK 0x000007ff
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
997 #define PPLL_POST3_DIV_MASK 0x00070000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
998
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
999 #define GUI_ACTIVE 0x80000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
1000
1915
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
1001 /* GEN_RESET_CNTL bit constants */
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
1002 #define SOFT_RESET_GUI 0x00000001
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
1003 #define SOFT_RESET_VCLK 0x00000100
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
1004 #define SOFT_RESET_PCLK 0x00000200
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
1005 #define SOFT_RESET_ECP 0x00000400
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
1006 #define SOFT_RESET_DISPENG_XCLK 0x00000800
31fdf7bb1a8e A lot of VE related improvements and code cleanup
nick
parents: 1914
diff changeset
1007
2033
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1008
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1009 /* RAGE THEATER REGISTERS */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1010
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1011 #define VIPH_CH0_DATA 0x0c00
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1012 #define VIPH_CH1_DATA 0x0c04
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1013 #define VIPH_CH2_DATA 0x0c08
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1014 #define VIPH_CH3_DATA 0x0c0c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1015 #define VIPH_CH0_ADDR 0x0c10
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1016 #define VIPH_CH1_ADDR 0x0c14
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1017 #define VIPH_CH2_ADDR 0x0c18
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1018 #define VIPH_CH3_ADDR 0x0c1c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1019 #define VIPH_CH0_SBCNT 0x0c20
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1020 #define VIPH_CH1_SBCNT 0x0c24
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1021 #define VIPH_CH2_SBCNT 0x0c28
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1022 #define VIPH_CH3_SBCNT 0x0c2c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1023 #define VIPH_CH0_ABCNT 0x0c30
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1024 #define VIPH_CH1_ABCNT 0x0c34
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1025 #define VIPH_CH2_ABCNT 0x0c38
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1026 #define VIPH_CH3_ABCNT 0x0c3c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1027 #define VIPH_CONTROL 0x0c40
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1028 #define VIPH_DV_LAT 0x0c44
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1029 #define VIPH_BM_CHUNK 0x0c48
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1030 #define VIPH_DV_INT 0x0c4c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1031 #define VIPH_TIMEOUT_STAT 0x0c50
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1032
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1033 #define VIPH_REG_DATA 0x0084
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1034 #define VIPH_REG_ADDR 0x0080
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1035
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1036 /* Address Space Rage Theatre Registers (VIP Access) */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1037 #define VIP_VIP_VENDOR_DEVICE_ID 0x0000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1038 #define VIP_VIP_SUB_VENDOR_DEVICE_ID 0x0004
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1039 #define VIP_VIP_COMMAND_STATUS 0x0008
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1040 #define VIP_VIP_REVISION_ID 0x000c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1041 #define VIP_HW_DEBUG 0x0010
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1042 #define VIP_SW_SCRATCH 0x0014
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1043 #define VIP_I2C_CNTL_0 0x0020
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1044 #define VIP_I2C_CNTL_1 0x0024
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1045 #define VIP_I2C_DATA 0x0028
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1046 #define VIP_INT_CNTL 0x002c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1047 #define VIP_GPIO_INOUT 0x0030
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1048 #define VIP_GPIO_CNTL 0x0034
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1049 #define VIP_CLKOUT_GPIO_CNTL 0x0038
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1050 #define VIP_RIPINTF_PORT_CNTL 0x003c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1051 #define VIP_ADC_CNTL 0x0400
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1052 #define VIP_ADC_DEBUG 0x0404
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1053 #define VIP_STANDARD_SELECT 0x0408
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1054 #define VIP_THERMO2BIN_STATUS 0x040c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1055 #define VIP_COMB_CNTL0 0x0440
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1056 #define VIP_COMB_CNTL1 0x0444
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1057 #define VIP_COMB_CNTL2 0x0448
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1058 #define VIP_COMB_LINE_LENGTH 0x044c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1059 #define VIP_NOISE_CNTL0 0x0450
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1060 #define VIP_HS_PLINE 0x0480
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1061 #define VIP_HS_DTOINC 0x0484
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1062 #define VIP_HS_PLLGAIN 0x0488
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1063 #define VIP_HS_MINMAXWIDTH 0x048c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1064 #define VIP_HS_GENLOCKDELAY 0x0490
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1065 #define VIP_HS_WINDOW_LIMIT 0x0494
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1066 #define VIP_HS_WINDOW_OC_SPEED 0x0498
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1067 #define VIP_HS_PULSE_WIDTH 0x049c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1068 #define VIP_HS_PLL_ERROR 0x04a0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1069 #define VIP_HS_PLL_FS_PATH 0x04a4
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1070 #define VIP_SG_BLACK_GATE 0x04c0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1071 #define VIP_SG_SYNCTIP_GATE 0x04c4
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1072 #define VIP_SG_UVGATE_GATE 0x04c8
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1073 #define VIP_LP_AGC_CLAMP_CNTL0 0x0500
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1074 #define VIP_LP_AGC_CLAMP_CNTL1 0x0504
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1075 #define VIP_LP_BRIGHTNESS 0x0508
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1076 #define VIP_LP_CONTRAST 0x050c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1077 #define VIP_LP_SLICE_LIMIT 0x0510
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1078 #define VIP_LP_WPA_CNTL0 0x0514
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1079 #define VIP_LP_WPA_CNTL1 0x0518
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1080 #define VIP_LP_BLACK_LEVEL 0x051c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1081 #define VIP_LP_SLICE_LEVEL 0x0520
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1082 #define VIP_LP_SYNCTIP_LEVEL 0x0524
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1083 #define VIP_LP_VERT_LOCKOUT 0x0528
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1084 #define VIP_VS_DETECTOR_CNTL 0x0540
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1085 #define VIP_VS_BLANKING_CNTL 0x0544
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1086 #define VIP_VS_FIELD_ID_CNTL 0x0548
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1087 #define VIP_VS_COUNTER_CNTL 0x054c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1088 #define VIP_VS_FRAME_TOTAL 0x0550
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1089 #define VIP_VS_LINE_COUNT 0x0554
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1090 #define VIP_CP_PLL_CNTL0 0x0580
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1091 #define VIP_CP_PLL_CNTL1 0x0584
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1092 #define VIP_CP_HUE_CNTL 0x0588
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1093 #define VIP_CP_BURST_GAIN 0x058c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1094 #define VIP_CP_AGC_CNTL 0x0590
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1095 #define VIP_CP_ACTIVE_GAIN 0x0594
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1096 #define VIP_CP_PLL_STATUS0 0x0598
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1097 #define VIP_CP_PLL_STATUS1 0x059c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1098 #define VIP_CP_PLL_STATUS2 0x05a0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1099 #define VIP_CP_PLL_STATUS3 0x05a4
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1100 #define VIP_CP_PLL_STATUS4 0x05a8
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1101 #define VIP_CP_PLL_STATUS5 0x05ac
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1102 #define VIP_CP_PLL_STATUS6 0x05b0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1103 #define VIP_CP_PLL_STATUS7 0x05b4
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1104 #define VIP_CP_DEBUG_FORCE 0x05b8
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1105 #define VIP_CP_VERT_LOCKOUT 0x05bc
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1106 #define VIP_H_ACTIVE_WINDOW 0x05c0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1107 #define VIP_V_ACTIVE_WINDOW 0x05c4
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1108 #define VIP_H_VBI_WINDOW 0x05c8
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1109 #define VIP_V_VBI_WINDOW 0x05cc
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1110 #define VIP_VBI_CONTROL 0x05d0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1111 #define VIP_DECODER_DEBUG_CNTL 0x05d4
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1112 #define VIP_SINGLE_STEP_DATA 0x05d8
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1113 #define VIP_MASTER_CNTL 0x0040
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1114 #define VIP_RGB_CNTL 0x0048
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1115 #define VIP_CLKOUT_CNTL 0x004c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1116 #define VIP_SYNC_CNTL 0x0050
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1117 #define VIP_I2C_CNTL 0x0054
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1118 #define VIP_HTOTAL 0x0080
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1119 #define VIP_HDISP 0x0084
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1120 #define VIP_HSIZE 0x0088
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1121 #define VIP_HSTART 0x008c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1122 #define VIP_HCOUNT 0x0090
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1123 #define VIP_VTOTAL 0x0094
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1124 #define VIP_VDISP 0x0098
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1125 #define VIP_VCOUNT 0x009c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1126 #define VIP_VFTOTAL 0x00a0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1127 #define VIP_DFCOUNT 0x00a4
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1128 #define VIP_DFRESTART 0x00a8
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1129 #define VIP_DHRESTART 0x00ac
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1130 #define VIP_DVRESTART 0x00b0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1131 #define VIP_SYNC_SIZE 0x00b4
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1132 #define VIP_TV_PLL_FINE_CNTL 0x00b8
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1133 #define VIP_CRT_PLL_FINE_CNTL 0x00bc
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1134 #define VIP_TV_PLL_CNTL 0x00c0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1135 #define VIP_CRT_PLL_CNTL 0x00c4
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1136 #define VIP_PLL_CNTL0 0x00c8
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1137 #define VIP_PLL_TEST_CNTL 0x00cc
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1138 #define VIP_CLOCK_SEL_CNTL 0x00d0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1139 #define VIP_VIN_PLL_CNTL 0x00d4
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1140 #define VIP_VIN_PLL_FINE_CNTL 0x00d8
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1141 #define VIP_AUD_PLL_CNTL 0x00e0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1142 #define VIP_AUD_PLL_FINE_CNTL 0x00e4
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1143 #define VIP_AUD_CLK_DIVIDERS 0x00e8
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1144 #define VIP_AUD_DTO_INCREMENTS 0x00ec
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1145 #define VIP_L54_PLL_CNTL 0x00f0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1146 #define VIP_L54_PLL_FINE_CNTL 0x00f4
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1147 #define VIP_L54_DTO_INCREMENTS 0x00f8
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1148 #define VIP_PLL_CNTL1 0x00fc
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1149 #define VIP_FRAME_LOCK_CNTL 0x0100
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1150 #define VIP_SYNC_LOCK_CNTL 0x0104
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1151 #define VIP_TVO_SYNC_PAT_ACCUM 0x0108
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1152 #define VIP_TVO_SYNC_THRESHOLD 0x010c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1153 #define VIP_TVO_SYNC_PAT_EXPECT 0x0110
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1154 #define VIP_DELAY_ONE_MAP_A 0x0114
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1155 #define VIP_DELAY_ONE_MAP_B 0x0118
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1156 #define VIP_DELAY_ZERO_MAP_A 0x011c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1157 #define VIP_DELAY_ZERO_MAP_B 0x0120
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1158 #define VIP_TVO_DATA_DELAY_A 0x0140
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1159 #define VIP_TVO_DATA_DELAY_B 0x0144
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1160 #define VIP_HOST_READ_DATA 0x0180
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1161 #define VIP_HOST_WRITE_DATA 0x0184
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1162 #define VIP_HOST_RD_WT_CNTL 0x0188
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1163 #define VIP_VSCALER_CNTL1 0x01c0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1164 #define VIP_TIMING_CNTL 0x01c4
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1165 #define VIP_VSCALER_CNTL2 0x01c8
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1166 #define VIP_Y_FALL_CNTL 0x01cc
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1167 #define VIP_Y_RISE_CNTL 0x01d0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1168 #define VIP_Y_SAW_TOOTH_CNTL 0x01d4
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1169 #define VIP_UPSAMP_AND_GAIN_CNTL 0x01e0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1170 #define VIP_GAIN_LIMIT_SETTINGS 0x01e4
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1171 #define VIP_LINEAR_GAIN_SETTINGS 0x01e8
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1172 #define VIP_MODULATOR_CNTL1 0x0200
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1173 #define VIP_MODULATOR_CNTL2 0x0204
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1174 #define VIP_MV_MODE_CNTL 0x0208
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1175 #define VIP_MV_STRIPE_CNTL 0x020c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1176 #define VIP_MV_LEVEL_CNTL1 0x0210
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1177 #define VIP_MV_LEVEL_CNTL2 0x0214
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1178 #define VIP_PRE_DAC_MUX_CNTL 0x0240
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1179 #define VIP_TV_DAC_CNTL 0x0280
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1180 #define VIP_CRC_CNTL 0x02c0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1181 #define VIP_VIDEO_PORT_SIG 0x02c4
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1182 #define VIP_VBI_CC_CNTL 0x02c8
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1183 #define VIP_VBI_EDS_CNTL 0x02cc
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1184 #define VIP_VBI_20BIT_CNTL 0x02d0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1185 #define VIP_VBI_DTO_CNTL 0x02d4
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1186 #define VIP_VBI_LEVEL_CNTL 0x02d8
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1187 #define VIP_UV_ADR 0x0300
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1188 #define VIP_MV_STATUS 0x0330
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1189 #define VIP_UPSAMP_COEFF0_0 0x0340
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1190 #define VIP_UPSAMP_COEFF0_1 0x0344
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1191 #define VIP_UPSAMP_COEFF0_2 0x0348
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1192 #define VIP_UPSAMP_COEFF1_0 0x034c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1193 #define VIP_UPSAMP_COEFF1_1 0x0350
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1194 #define VIP_UPSAMP_COEFF1_2 0x0354
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1195 #define VIP_UPSAMP_COEFF2_0 0x0358
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1196 #define VIP_UPSAMP_COEFF2_1 0x035c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1197 #define VIP_UPSAMP_COEFF2_2 0x0360
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1198 #define VIP_UPSAMP_COEFF3_0 0x0364
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1199 #define VIP_UPSAMP_COEFF3_1 0x0368
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1200 #define VIP_UPSAMP_COEFF3_2 0x036c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1201 #define VIP_UPSAMP_COEFF4_0 0x0370
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1202 #define VIP_UPSAMP_COEFF4_1 0x0374
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1203 #define VIP_UPSAMP_COEFF4_2 0x0378
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1204 #define VIP_TV_DTO_INCREMENTS 0x0390
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1205 #define VIP_CRT_DTO_INCREMENTS 0x0394
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1206 #define VIP_VSYNC_DIFF_CNTL 0x03a0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1207 #define VIP_VSYNC_DIFF_LIMITS 0x03a4
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1208 #define VIP_VSYNC_DIFF_RD_DATA 0x03a8
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1209 #define VIP_SCALER_IN_WINDOW 0x0618
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1210 #define VIP_SCALER_OUT_WINDOW 0x061c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1211 #define VIP_H_SCALER_CONTROL 0x0600
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1212 #define VIP_V_SCALER_CONTROL 0x0604
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1213 #define VIP_V_DEINTERLACE_CONTROL 0x0608
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1214 #define VIP_VBI_SCALER_CONTROL 0x060c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1215 #define VIP_DVS_PORT_CTRL 0x0610
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1216 #define VIP_DVS_PORT_READBACK 0x0614
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1217 #define VIP_FIFOA_CONFIG 0x0800
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1218 #define VIP_FIFOB_CONFIG 0x0804
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1219 #define VIP_FIFOC_CONFIG 0x0808
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1220 #define VIP_SPDIF_PORT_CNTL 0x080c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1221 #define VIP_SPDIF_CHANNEL_STAT 0x0810
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1222 #define VIP_SPDIF_AC3_PREAMBLE 0x0814
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1223 #define VIP_I2S_TRANSMIT_CNTL 0x0818
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1224 #define VIP_I2S_RECEIVE_CNTL 0x081c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1225 #define VIP_SPDIF_TX_CNT_REG 0x0820
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1226 #define VIP_IIS_TX_CNT_REG 0x0824
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1227
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1228 /* Status defines */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1229 #define VIP_BUSY 0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1230 #define VIP_IDLE 1
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1231 #define VIP_RESET 2
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1232
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1233 #define VIPH_TIMEOUT_STAT__VIPH_REG_STAT 0x00000010
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1234 #define VIPH_TIMEOUT_STAT__VIPH_REG_AK 0x00000010
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1235 #define VIPH_TIMEOUT_STAT__VIPH_REGR_DIS 0x01000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1236 #define TEST_DEBUG_CNTL__TEST_DEBUG_OUT_EN 0x00000001
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1237
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1238 #define RT_ATI_ID 0x4D541002
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1239
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1240 /* Register/Field values: */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1241 #define RT_COMP0 0x0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1242 #define RT_COMP1 0x1
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1243 #define RT_COMP2 0x2
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1244 #define RT_YF_COMP3 0x3
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1245 #define RT_YR_COMP3 0x4
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1246 #define RT_YCF_COMP4 0x5
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1247 #define RT_YCR_COMP4 0x6
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1248
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1249 /* Video standard defines */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1250 #define RT_NTSC 0x0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1251 #define RT_PAL 0x1
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1252 #define RT_SECAM 0x2
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1253 #define extNONE 0x0000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1254 #define extNTSC 0x0100
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1255 #define extRsvd 0x0200
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1256 #define extPAL 0x0300
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1257 #define extPAL_M 0x0400
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1258 #define extPAL_N 0x0500
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1259 #define extSECAM 0x0600
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1260 #define extPAL_NCOMB 0x0700
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1261 #define extNTSC_J 0x0800
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1262 #define extNTSC_443 0x0900
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1263 #define extPAL_BGHI 0x0A00
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1264 #define extPAL_60 0x0B00
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1265 /* these are used in MSP3430 */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1266 #define extPAL_DK1 0x0C00
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1267 #define extPAL_AUTO 0x0D00
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1268
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1269 #define RT_FREF_2700 6
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1270 #define RT_FREF_2950 5
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1271
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1272 #define RT_COMPOSITE 0x0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1273 #define RT_SVIDEO 0x1
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1274
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1275 #define RT_NORM_SHARPNESS 0x03
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1276 #define RT_HIGH_SHARPNESS 0x0F
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1277
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1278 #define RT_HUE_PAL_DEF 0x00
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1279
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1280 #define RT_DECINTERLACED 0x1
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1281 #define RT_DECNONINTERLACED 0x0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1282
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1283 #define NTSC_LINES 525
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1284 #define PAL_SECAM_LINES 625
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1285
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1286 #define RT_ASYNC_ENABLE 0x0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1287 #define RT_ASYNC_DISABLE 0x1
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1288 #define RT_ASYNC_RESET 0x1
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1289
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1290 #define RT_VINRST_ACTIVE 0x0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1291 #define RT_VINRST_RESET 0x1
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1292 #define RT_L54RST_RESET 0x1
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1293
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1294 #define RT_REF_CLK 0x0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1295 #define RT_PLL_VIN_CLK 0x1
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1296
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1297 #define RT_VIN_ASYNC_RST 0x20
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1298 #define RT_DVS_ASYNC_RST 0x80
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1299
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1300 #define RT_ADC_ENABLE 0x0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1301 #define RT_ADC_DISABLE 0x1
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1302
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1303 #define RT_DVSDIR_IN 0x0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1304 #define RT_DVSDIR_OUT 0x1
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1305
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1306 #define RT_DVSCLK_HIGH 0x0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1307 #define RT_DVSCLK_LOW 0x1
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1308
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1309 #define RT_DVSCLK_SEL_8FS 0x0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1310 #define RT_DVSCLK_SEL_27MHZ 0x1
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1311
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1312 #define RT_DVS_CONTSTREAM 0x1
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1313 #define RT_DVS_NONCONTSTREAM 0x0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1314
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1315 #define RT_DVSDAT_HIGH 0x0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1316 #define RT_DVSDAT_LOW 0x1
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1317
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1318 #define RT_ADC_CNTL_DEFAULT 0x03252338
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1319
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1320 /* COMB_CNTL0 FILTER SETTINGS FOR DIFFERENT STANDARDS: */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1321 #define RT_NTSCM_COMB_CNTL0_COMPOSITE 0x09438090
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1322 #define RT_NTSCM_COMB_CNTL0_SVIDEO 0x48540000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1323
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1324 #define RT_PAL_COMB_CNTL0_COMPOSITE 0x09438090
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1325 #define RT_PAL_COMB_CNTL0_SVIDEO 0x40348090
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1326
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1327 #define RT_SECAM_COMB_CNTL0_COMPOSITE 0xD0108090 /* instead of orig 0xD0088090 - eric*/
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1328 #define RT_SECAM_COMB_CNTL0_SVIDEO 0x50148090
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1329
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1330 #define RT_PALN_COMB_CNTL0_COMPOSITE 0x09438090
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1331 #define RT_PALN_COMB_CNTL0_SVIDEO 0x40348090
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1332
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1333 #define RT_PALM_COMB_CNTL0_COMPOSITE 0x09438090
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1334 #define RT_PALM_COMB_CNTL0_SVIDEO 0x40348090
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1335 /* End of filter settings. */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1336
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1337 /* COMB_CNTL1 FILTER SETTINGS FOR DIFFERENT STANDARDS: */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1338 #define RT_NTSCM_COMB_CNTL1_COMPOSITE 0x00000010
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1339 #define RT_NTSCM_COMB_CNTL1_SVIDEO 0x00000081
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1340
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1341 #define RT_PAL_COMB_CNTL1_COMPOSITE 0x00000010
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1342 #define RT_PAL_COMB_CNTL1_SVIDEO 0x000000A1
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1343
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1344 #define RT_SECAM_COMB_CNTL1_COMPOSITE 0x00000091
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1345 #define RT_SECAM_COMB_CNTL1_SVIDEO 0x00000081
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1346
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1347 #define RT_PALN_COMB_CNTL1_COMPOSITE 0x00000010
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1348 #define RT_PALN_COMB_CNTL1_SVIDEO 0x000000A1
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1349
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1350 #define RT_PALM_COMB_CNTL1_COMPOSITE 0x00000010
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1351 #define RT_PALM_COMB_CNTL1_SVIDEO 0x000000A1
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1352 /* End of filter settings. */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1353
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1354 /* COMB_CNTL2 FILTER SETTINGS FOR DIFFERENT STANDARDS: */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1355 #define RT_NTSCM_COMB_CNTL2_COMPOSITE 0x16161010
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1356 #define RT_NTSCM_COMB_CNTL2_SVIDEO 0xFFFFFFFF
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1357
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1358 #define RT_PAL_COMB_CNTL2_COMPOSITE 0x06080102 /* instead of 0x16161010 - Ivo */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1359 #define RT_PAL_COMB_CNTL2_SVIDEO 0x06080102
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1360
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1361 #define RT_SECAM_COMB_CNTL2_COMPOSITE 0xffffffff /* instead of 0x06080102 - eric */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1362 #define RT_SECAM_COMB_CNTL2_SVIDEO 0x06080102
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1363
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1364 #define RT_PALN_COMB_CNTL2_COMPOSITE 0x06080102
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1365 #define RT_PALN_COMB_CNTL2_SVIDEO 0x06080102
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1366
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1367 #define RT_PALM_COMB_CNTL2_COMPOSITE 0x06080102
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1368 #define RT_PALM_COMB_CNTL2_SVIDEO 0x06080102
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1369 /* End of filter settings. */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1370
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1371 /* COMB_LINE_LENGTH FILTER SETTINGS FOR DIFFERENT STANDARDS: */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1372 #define RT_NTSCM_COMB_LENGTH_COMPOSITE 0x0718038A
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1373 #define RT_NTSCM_COMB_LENGTH_SVIDEO 0x0718038A
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1374
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1375 #define RT_PAL_COMB_LENGTH_COMPOSITE 0x08DA046B
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1376 #define RT_PAL_COMB_LENGTH_SVIDEO 0x08DA046B
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1377
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1378 #define RT_SECAM_COMB_LENGTH_COMPOSITE 0x08DA046A
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1379 #define RT_SECAM_COMB_LENGTH_SVIDEO 0x08DA046A
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1380
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1381 #define RT_PALN_COMB_LENGTH_COMPOSITE 0x07260391
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1382 #define RT_PALN_COMB_LENGTH_SVIDEO 0x07260391
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1383
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1384 #define RT_PALM_COMB_LENGTH_COMPOSITE 0x07160389
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1385 #define RT_PALM_COMB_LENGTH_SVIDEO 0x07160389
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1386 /* End of filter settings. */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1387
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1388 /* LP_AGC_CLAMP_CNTL0 */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1389 #define RT_NTSCM_SYNCTIP_REF0 0x00000037
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1390 #define RT_NTSCM_SYNCTIP_REF1 0x00000029
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1391 #define RT_NTSCM_CLAMP_REF 0x0000003B
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1392 #define RT_NTSCM_PEAKWHITE 0x000000FF
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1393 #define RT_NTSCM_VBI_PEAKWHITE 0x000000C2
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1394
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1395 #define RT_NTSCM_WPA_THRESHOLD 0x00000406
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1396 #define RT_NTSCM_WPA_TRIGGER_LO 0x000000B3
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1397
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1398 #define RT_NTSCM_WPA_TRIGGER_HIGH 0x0000021B
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1399
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1400 #define RT_NTSCM_LP_LOCKOUT_START 0x00000206
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1401 #define RT_NTSCM_LP_LOCKOUT_END 0x00000021
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1402 #define RT_NTSCM_CH_DTO_INC 0x00400000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1403 #define RT_NTSCM_CH_PLL_SGAIN 0x00000001
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1404 #define RT_NTSCM_CH_PLL_FGAIN 0x00000002
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1405
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1406 #define RT_NTSCM_CR_BURST_GAIN 0x0000007A
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1407 #define RT_NTSCM_CB_BURST_GAIN 0x000000AC
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1408
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1409 #define RT_NTSCM_CH_HEIGHT 0x000000CD
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1410 #define RT_NTSCM_CH_KILL_LEVEL 0x000000C0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1411 #define RT_NTSCM_CH_AGC_ERROR_LIM 0x00000002
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1412 #define RT_NTSCM_CH_AGC_FILTER_EN 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1413 #define RT_NTSCM_CH_AGC_LOOP_SPEED 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1414
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1415 #define RT_NTSCM_CRDR_ACTIVE_GAIN 0x0000007A
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1416 #define RT_NTSCM_CBDB_ACTIVE_GAIN 0x000000AC
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1417
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1418 #define RT_NTSCM_VERT_LOCKOUT_START 0x00000207
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1419 #define RT_NTSCM_VERT_LOCKOUT_END 0x0000000E
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1420
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1421 #define RT_NTSCJ_SYNCTIP_REF0 0x00000004
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1422 #define RT_NTSCJ_SYNCTIP_REF1 0x00000012
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1423 #define RT_NTSCJ_CLAMP_REF 0x0000003B
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1424 #define RT_NTSCJ_PEAKWHITE 0x000000CB
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1425 #define RT_NTSCJ_VBI_PEAKWHITE 0x000000C2
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1426 #define RT_NTSCJ_WPA_THRESHOLD 0x000004B0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1427 #define RT_NTSCJ_WPA_TRIGGER_LO 0x000000B4
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1428 #define RT_NTSCJ_WPA_TRIGGER_HIGH 0x0000021C
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1429 #define RT_NTSCJ_LP_LOCKOUT_START 0x00000206
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1430 #define RT_NTSCJ_LP_LOCKOUT_END 0x00000021
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1431
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1432 #define RT_NTSCJ_CR_BURST_GAIN 0x00000071
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1433 #define RT_NTSCJ_CB_BURST_GAIN 0x0000009F
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1434 #define RT_NTSCJ_CH_HEIGHT 0x000000CD
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1435 #define RT_NTSCJ_CH_KILL_LEVEL 0x000000C0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1436 #define RT_NTSCJ_CH_AGC_ERROR_LIM 0x00000002
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1437 #define RT_NTSCJ_CH_AGC_FILTER_EN 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1438 #define RT_NTSCJ_CH_AGC_LOOP_SPEED 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1439
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1440 #define RT_NTSCJ_CRDR_ACTIVE_GAIN 0x00000071
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1441 #define RT_NTSCJ_CBDB_ACTIVE_GAIN 0x0000009F
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1442 #define RT_NTSCJ_VERT_LOCKOUT_START 0x00000207
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1443 #define RT_NTSCJ_VERT_LOCKOUT_END 0x0000000E
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1444
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1445 #define RT_PAL_SYNCTIP_REF0 0x37 /* instead of 0x00000004 - Ivo */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1446 #define RT_PAL_SYNCTIP_REF1 0x26 /* instead of 0x0000000F - Ivo */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1447 #define RT_PAL_CLAMP_REF 0x0000003B
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1448 #define RT_PAL_PEAKWHITE 0xFF /* instead of 0x000000C1 - Ivo */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1449 #define RT_PAL_VBI_PEAKWHITE 0xC6 /* instead of 0x000000C7 - Ivo */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1450 #define RT_PAL_WPA_THRESHOLD 0x59C /* instead of 0x000006A4 - Ivo */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1451
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1452 #define RT_PAL_WPA_TRIGGER_LO 0x00000096
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1453 #define RT_PAL_WPA_TRIGGER_HIGH 0x000001C2
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1454 #define RT_PAL_LP_LOCKOUT_START 0x00000263
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1455 #define RT_PAL_LP_LOCKOUT_END 0x0000002C
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1456
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1457 #define RT_PAL_CH_DTO_INC 0x00400000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1458 #define RT_PAL_CH_PLL_SGAIN 1 /* instead of 0x00000002 - Ivo */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1459 #define RT_PAL_CH_PLL_FGAIN 2 /* instead of 0x00000001 - Ivo */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1460 #define RT_PAL_CR_BURST_GAIN 0x0000007A
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1461 #define RT_PAL_CB_BURST_GAIN 0x000000AB
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1462 #define RT_PAL_CH_HEIGHT 0x0000009C
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1463 #define RT_PAL_CH_KILL_LEVEL 4 /* instead of 0x00000090 - Ivo */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1464 #define RT_PAL_CH_AGC_ERROR_LIM 1 /* instead of 0x00000002 - Ivo */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1465 #define RT_PAL_CH_AGC_FILTER_EN 1 /* instead of 0x00000000 - Ivo */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1466 #define RT_PAL_CH_AGC_LOOP_SPEED 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1467
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1468 #define RT_PAL_CRDR_ACTIVE_GAIN 0x9E /* instead of 0x0000007A - Ivo */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1469 #define RT_PAL_CBDB_ACTIVE_GAIN 0xDF /* instead of 0x000000AB - Ivo */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1470 #define RT_PAL_VERT_LOCKOUT_START 0x00000269
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1471 #define RT_PAL_VERT_LOCKOUT_END 0x00000012
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1472
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1473 #define RT_SECAM_SYNCTIP_REF0 0x37 /* instead of 0x00000004 - Ivo */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1474 #define RT_SECAM_SYNCTIP_REF1 0x26 /* instead of 0x0000000F - Ivo */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1475 #define RT_SECAM_CLAMP_REF 0x0000003B
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1476 #define RT_SECAM_PEAKWHITE 0xFF /* instead of 0x000000C1 - Ivo */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1477 #define RT_SECAM_VBI_PEAKWHITE 0xC6 /* instead of 0x000000C7 - Ivo */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1478 #define RT_SECAM_WPA_THRESHOLD 0x57A /* instead of 0x6A4, instead of 0x0000059C is Ivo's value , -eric*/
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1479
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1480 #define RT_SECAM_WPA_TRIGGER_LO 0x96 /* instead of 0x0000026B - eric */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1481 #define RT_SECAM_WPA_TRIGGER_HIGH 0x000001C2
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1482 #define RT_SECAM_LP_LOCKOUT_START 0x263 /* instead of 0x0000026B - eric */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1483 #define RT_SECAM_LP_LOCKOUT_END 0x2b /* instead of 0x0000002C -eric */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1484
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1485 #define RT_SECAM_CH_DTO_INC 0x003E7A28
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1486 #define RT_SECAM_CH_PLL_SGAIN 0x4 /* instead of 0x00000006 - Volodya */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1487 #define RT_SECAM_CH_PLL_FGAIN 0x7 /* instead of 0x00000006 -Volodya */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1488
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1489 #define RT_SECAM_CR_BURST_GAIN 0x1FF /* instead of 0x00000200 -Volodya */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1490 #define RT_SECAM_CB_BURST_GAIN 0x1FF /* instead of 0x00000200 -Volodya */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1491 #define RT_SECAM_CH_HEIGHT 0x00000066
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1492 #define RT_SECAM_CH_KILL_LEVEL 0x00000060
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1493 #define RT_SECAM_CH_AGC_ERROR_LIM 0x00000003
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1494 #define RT_SECAM_CH_AGC_FILTER_EN 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1495 #define RT_SECAM_CH_AGC_LOOP_SPEED 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1496
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1497 #define RT_SECAM_CRDR_ACTIVE_GAIN 0x11B /* instead of 0x00000200 - eric */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1498 #define RT_SECAM_CBDB_ACTIVE_GAIN 0x15A /* instead of 0x00000200 - eric */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1499 #define RT_SECAM_VERT_LOCKOUT_START 0x00000269
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1500 #define RT_SECAM_VERT_LOCKOUT_END 0x00000012
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1501
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1502 #define RT_PAL_VS_FIELD_BLANK_END 0x2A /* instead of 0x0000002C - Ivo*/
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1503 #define RT_NTSCM_VS_FIELD_BLANK_END 0x0000000A
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1504
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1505 #define RT_NTSCM_FIELD_IDLOCATION 0x00000105
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1506 #define RT_PAL_FIELD_IDLOCATION 0x00000137
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1507
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1508 #define RT_NTSCM_H_ACTIVE_START 0x00000070
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1509 #define RT_NTSCM_H_ACTIVE_END 0x00000363
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1510
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1511 #define RT_PAL_H_ACTIVE_START 0x0000009A
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1512 #define RT_PAL_H_ACTIVE_END 0x00000439
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1513
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1514 #define RT_NTSCM_V_ACTIVE_START ((22-4)*2+1)
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1515 #define RT_NTSCM_V_ACTIVE_END ((22+240-4)*2+1)
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1516
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1517 #define RT_PAL_V_ACTIVE_START 0x2E /* instead of 0x00000023 (Same as SECAM) - Ivo */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1518 #define RT_PAL_V_ACTIVE_END 0x269 /* instead of 0x00000262 - Ivo */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1519
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1520 /* VBI */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1521 #define RT_NTSCM_H_VBI_WIND_START 0x00000049
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1522 #define RT_NTSCM_H_VBI_WIND_END 0x00000366
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1523
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1524 #define RT_PAL_H_VBI_WIND_START 0x00000084
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1525 #define RT_PAL_H_VBI_WIND_END 0x0000041F
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1526
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1527 #define RT_NTSCM_V_VBI_WIND_START fld_V_VBI_WIND_START_def
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1528 #define RT_NTSCM_V_VBI_WIND_END fld_V_VBI_WIND_END_def
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1529
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1530 #define RT_PAL_V_VBI_WIND_START 0x8 /* instead of 0x0000000B - Ivo */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1531 #define RT_PAL_V_VBI_WIND_END 0x2D /* instead of 0x00000022 - Ivo */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1532
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1533 #define RT_VBI_CAPTURE_EN 0x00000001 /* Enable */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1534 #define RT_VBI_CAPTURE_DIS 0x00000000 /* Disable */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1535 #define RT_RAW_CAPTURE 0x00000002 /* Use raw Video Capture. */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1536
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1537 #define RT_NTSCM_VSYNC_INT_TRIGGER 0x2AA
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1538 #define RT_PALSEM_VSYNC_INT_TRIGGER 0x353
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1539
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1540 #define RT_NTSCM_VSYNC_INT_HOLD 0x17
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1541 #define RT_PALSEM_VSYNC_INT_HOLD 0x1C
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1542
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1543 #define RT_NTSCM_VS_FIELD_BLANK_START 0x206
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1544 #define RT_PALSEM_VS_FIELD_BLANK_START 0x26D /* instead of 0x26C - Ivo */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1545
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1546 #define RT_FIELD_FLIP_EN 0x4
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1547 #define RT_V_FIELD_FLIP_INVERTED 0x2000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1548
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1549 #define RT_NTSCM_H_IN_START 0x70
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1550 #define RT_PAL_H_IN_START 154 /* instead of 144 - Ivo */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1551 #define RT_SECAM_H_IN_START 0x91 /* instead of 0x9A, Ivo value is 154, instead of 144 - Volodya, - eric */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1552 #define RT_NTSC_H_ACTIVE_SIZE 744
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1553 #define RT_PAL_H_ACTIVE_SIZE 928 /* instead of 927 - Ivo */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1554 #define RT_SECAM_H_ACTIVE_SIZE 932 /* instead of 928, instead of 927 - Ivo, - eric */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1555 #define RT_NTSCM_V_IN_START (0x23)
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1556 #define RT_PAL_V_IN_START 44 /* instead of (45-6) - Ivo */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1557 #define RT_SECAM_V_IN_START 0x2C /* instead of (45-6) - Volodya */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1558 #define RT_NTSCM_V_ACTIVE_SIZE 480
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1559 #define RT_PAL_V_ACTIVE_SIZE 572 /* instead of 575 - Ivo */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1560 #define RT_SECAM_V_ACTIVE_SIZE 570 /* instead of 572, instead of 575 - Ivo, - eric */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1561
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1562 #define RT_NTSCM_WIN_CLOSE_LIMIT 0x4D
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1563 #define RT_NTSCJ_WIN_CLOSE_LIMIT 0x4D
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1564 #define RT_NTSC443_WIN_CLOSE_LIMIT 0x5F
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1565 #define RT_PALM_WIN_CLOSE_LIMIT 0x4D
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1566 #define RT_PALN_WIN_CLOSE_LIMIT 0x5F
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1567 #define RT_SECAM_WIN_CLOSE_LIMIT 0xC7 /* instead of 0x5F - eric */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1568
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1569 #define RT_NTSCM_VS_FIELD_BLANK_START 0x206
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1570
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1571 #define RT_NTSCM_HS_PLL_SGAIN 0x5
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1572 #define RT_NTSCM_HS_PLL_FGAIN 0x7
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1573
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1574 #define RT_NTSCM_H_OUT_WIND_WIDTH 0x2F4
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1575 #define RT_NTSCM_V_OUT_WIND_HEIGHT 0xF0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1576
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1577 #define TV 0x1
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1578 #define LINEIN 0x2
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1579 #define MUTE 0x3
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1580
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1581 #define DEC_COMPOSITE 0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1582 #define DEC_SVIDEO 1
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1583 #define DEC_TUNER 2
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1584
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1585 #define DEC_NTSC 0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1586 #define DEC_PAL 1
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1587 #define DEC_SECAM 2
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1588 #define DEC_NTSC_J 8
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1589
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1590 #define DEC_SMOOTH 0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1591 #define DEC_SHARP 1
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1592
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1593 /* RT Register Field Defaults: */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1594 #define fld_tmpReg1_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1595 #define fld_tmpReg2_def 0x00000001
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1596 #define fld_tmpReg3_def 0x00000002
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1597
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1598 #define fld_LP_CONTRAST_def 0x0000006e
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1599 #define fld_LP_BRIGHTNESS_def 0x00003ff0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1600 #define fld_CP_HUE_CNTL_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1601 #define fld_LUMA_FILTER_def 0x00000001
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1602 #define fld_H_SCALE_RATIO_def 0x00010000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1603 #define fld_H_SHARPNESS_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1604
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1605 #define fld_V_SCALE_RATIO_def 0x00000800
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1606 #define fld_V_DEINTERLACE_ON_def 0x00000001
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1607 #define fld_V_BYPSS_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1608 #define fld_V_DITHER_ON_def 0x00000001
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1609 #define fld_EVENF_OFFSET_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1610 #define fld_ODDF_OFFSET_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1611
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1612 #define fld_INTERLACE_DETECTED_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1613
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1614 #define fld_VS_LINE_COUNT_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1615 #define fld_VS_DETECTED_LINES_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1616 #define fld_VS_ITU656_VB_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1617
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1618 #define fld_VBI_CC_DATA_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1619 #define fld_VBI_CC_WT_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1620 #define fld_VBI_CC_WT_ACK_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1621 #define fld_VBI_CC_HOLD_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1622 #define fld_VBI_DECODE_EN_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1623
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1624 #define fld_VBI_CC_DTO_P_def 0x00001802
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1625 #define fld_VBI_20BIT_DTO_P_def 0x0000155c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1626
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1627 #define fld_VBI_CC_LEVEL_def 0x0000003f
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1628 #define fld_VBI_20BIT_LEVEL_def 0x00000059
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1629 #define fld_VBI_CLK_RUNIN_GAIN_def 0x0000010f
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1630
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1631 #define fld_H_VBI_WIND_START_def 0x00000041
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1632 #define fld_H_VBI_WIND_END_def 0x00000366
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1633
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1634 #define fld_V_VBI_WIND_START_def 0x0D
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1635 #define fld_V_VBI_WIND_END_def 0x24
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1636
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1637 #define fld_VBI_20BIT_DATA0_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1638 #define fld_VBI_20BIT_DATA1_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1639 #define fld_VBI_20BIT_WT_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1640 #define fld_VBI_20BIT_WT_ACK_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1641 #define fld_VBI_20BIT_HOLD_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1642
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1643 #define fld_VBI_CAPTURE_ENABLE_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1644
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1645 #define fld_VBI_EDS_DATA_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1646 #define fld_VBI_EDS_WT_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1647 #define fld_VBI_EDS_WT_ACK_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1648 #define fld_VBI_EDS_HOLD_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1649
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1650 #define fld_VBI_SCALING_RATIO_def 0x00010000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1651 #define fld_VBI_ALIGNER_ENABLE_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1652
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1653 #define fld_H_ACTIVE_START_def 0x00000070
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1654 #define fld_H_ACTIVE_END_def 0x000002f0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1655
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1656 #define fld_V_ACTIVE_START_def ((22-4)*2+1)
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1657 #define fld_V_ACTIVE_END_def ((22+240-4)*2+2)
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1658
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1659 #define fld_CH_HEIGHT_def 0x000000CD
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1660 #define fld_CH_KILL_LEVEL_def 0x000000C0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1661 #define fld_CH_AGC_ERROR_LIM_def 0x00000002
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1662 #define fld_CH_AGC_FILTER_EN_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1663 #define fld_CH_AGC_LOOP_SPEED_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1664
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1665 #define fld_HUE_ADJ_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1666
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1667 #define fld_STANDARD_SEL_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1668 #define fld_STANDARD_YC_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1669
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1670 #define fld_ADC_PDWN_def 0x00000001
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1671 #define fld_INPUT_SELECT_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1672
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1673 #define fld_ADC_PREFLO_def 0x00000003
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1674 #define fld_H_SYNC_PULSE_WIDTH_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1675 #define fld_HS_GENLOCKED_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1676 #define fld_HS_SYNC_IN_WIN_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1677
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1678 #define fld_VIN_ASYNC_RST_def 0x00000001
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1679 #define fld_DVS_ASYNC_RST_def 0x00000001
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1680
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1681 /* Vendor IDs: */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1682 #define fld_VIP_VENDOR_ID_def 0x00001002
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1683 #define fld_VIP_DEVICE_ID_def 0x00004d54
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1684 #define fld_VIP_REVISION_ID_def 0x00000001
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1685
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1686 /* AGC Delay Register */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1687 #define fld_BLACK_INT_START_def 0x00000031
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1688 #define fld_BLACK_INT_LENGTH_def 0x0000000f
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1689
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1690 #define fld_UV_INT_START_def 0x0000003b
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1691 #define fld_U_INT_LENGTH_def 0x0000000f
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1692 #define fld_V_INT_LENGTH_def 0x0000000f
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1693 #define fld_CRDR_ACTIVE_GAIN_def 0x0000007a
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1694 #define fld_CBDB_ACTIVE_GAIN_def 0x000000ac
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1695
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1696 #define fld_DVS_DIRECTION_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1697 #define fld_DVS_VBI_CARD8_SWAP_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1698 #define fld_DVS_CLK_SELECT_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1699 #define fld_CONTINUOUS_STREAM_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1700 #define fld_DVSOUT_CLK_DRV_def 0x00000001
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1701 #define fld_DVSOUT_DATA_DRV_def 0x00000001
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1702
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1703 #define fld_COMB_CNTL0_def 0x09438090
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1704 #define fld_COMB_CNTL1_def 0x00000010
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1705
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1706 #define fld_COMB_CNTL2_def 0x16161010
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1707 #define fld_COMB_LENGTH_def 0x0718038A
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1708
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1709 #define fld_SYNCTIP_REF0_def 0x00000037
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1710 #define fld_SYNCTIP_REF1_def 0x00000029
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1711 #define fld_CLAMP_REF_def 0x0000003B
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1712 #define fld_AGC_PEAKWHITE_def 0x000000FF
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1713 #define fld_VBI_PEAKWHITE_def 0x000000D2
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1714
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1715 #define fld_WPA_THRESHOLD_def 0x000003B0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1716
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1717 #define fld_WPA_TRIGGER_LO_def 0x000000B4
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1718 #define fld_WPA_TRIGGER_HIGH_def 0x0000021C
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1719
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1720 #define fld_LOCKOUT_START_def 0x00000206
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1721 #define fld_LOCKOUT_END_def 0x00000021
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1722
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1723 #define fld_CH_DTO_INC_def 0x00400000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1724 #define fld_PLL_SGAIN_def 0x00000001
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1725 #define fld_PLL_FGAIN_def 0x00000002
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1726
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1727 #define fld_CR_BURST_GAIN_def 0x0000007a
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1728 #define fld_CB_BURST_GAIN_def 0x000000ac
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1729
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1730 #define fld_VERT_LOCKOUT_START_def 0x00000207
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1731 #define fld_VERT_LOCKOUT_END_def 0x0000000E
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1732
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1733 #define fld_H_IN_WIND_START_def 0x00000070
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1734 #define fld_V_IN_WIND_START_def 0x00000027
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1735
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1736 #define fld_H_OUT_WIND_WIDTH_def 0x000002f4
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1737
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1738 #define fld_V_OUT_WIND_WIDTH_def 0x000000f0
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1739
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1740 #define fld_HS_LINE_TOTAL_def 0x0000038E
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1741
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1742 #define fld_MIN_PULSE_WIDTH_def 0x0000002F
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1743 #define fld_MAX_PULSE_WIDTH_def 0x00000046
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1744
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1745 #define fld_WIN_CLOSE_LIMIT_def 0x0000004D
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1746 #define fld_WIN_OPEN_LIMIT_def 0x000001B7
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1747
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1748 #define fld_VSYNC_INT_TRIGGER_def 0x000002AA
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1749
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1750 #define fld_VSYNC_INT_HOLD_def 0x0000001D
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1751
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1752 #define fld_VIN_M0_def 0x00000039
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1753 #define fld_VIN_N0_def 0x0000014c
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1754 #define fld_MNFLIP_EN_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1755 #define fld_VIN_P_def 0x00000006
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1756 #define fld_REG_CLK_SEL_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1757
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1758 #define fld_VIN_M1_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1759 #define fld_VIN_N1_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1760 #define fld_VIN_DRIVER_SEL_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1761 #define fld_VIN_MNFLIP_REQ_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1762 #define fld_VIN_MNFLIP_DONE_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1763 #define fld_TV_LOCK_TO_VIN_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1764 #define fld_TV_P_FOR_WINCLK_def 0x00000004
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1765
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1766 #define fld_VINRST_def 0x00000001
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1767 #define fld_VIN_CLK_SEL_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1768
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1769 #define fld_VS_FIELD_BLANK_START_def 0x00000206
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1770
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1771 #define fld_VS_FIELD_BLANK_END_def 0x0000000A
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1772
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1773 /*#define fld_VS_FIELD_IDLOCATION_def 0x00000105 */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1774 #define fld_VS_FIELD_IDLOCATION_def 0x00000001
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1775 #define fld_VS_FRAME_TOTAL_def 0x00000217
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1776
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1777 #define fld_SYNC_TIP_START_def 0x00000372
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1778 #define fld_SYNC_TIP_LENGTH_def 0x0000000F
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1779
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1780 #define fld_GAIN_FORCE_DATA_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1781 #define fld_GAIN_FORCE_EN_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1782 #define fld_I_CLAMP_SEL_def 0x00000003
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1783 #define fld_I_AGC_SEL_def 0x00000001
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1784 #define fld_EXT_CLAMP_CAP_def 0x00000001
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1785 #define fld_EXT_AGC_CAP_def 0x00000001
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1786 #define fld_DECI_DITHER_EN_def 0x00000001
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1787 #define fld_ADC_PREFHI_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1788 #define fld_ADC_CH_GAIN_SEL_def 0x00000001
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1789
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1790 #define fld_HS_PLL_SGAIN_def 0x00000003
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1791
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1792 #define fld_NREn_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1793 #define fld_NRGainCntl_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1794 #define fld_NRBWTresh_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1795 #define fld_NRGCTresh_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1796 #define fld_NRCoefDespeclMode_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1797
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1798 #define fld_GPIO_5_OE_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1799 #define fld_GPIO_6_OE_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1800
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1801 #define fld_GPIO_5_OUT_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1802 #define fld_GPIO_6_OUT_def 0x00000000
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1803
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1804 /* End of field default values. */
25461be8d234 i2c and rage-theatre registers and their bit-constants
nick
parents: 1967
diff changeset
1805
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
1806 #endif /* _RADEON_H */
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
1807