Subversion Repositories Kolibri OS

Rev

Rev 3192 | Rev 5078 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3192 Rev 3764
Line 26... Line 26...
26
 
26
 
Line 27... Line 27...
27
#define TAHITI_RB_BITMAP_WIDTH_PER_SH  2
27
#define TAHITI_RB_BITMAP_WIDTH_PER_SH  2
28
 
28
 
-
 
29
#define TAHITI_GB_ADDR_CONFIG_GOLDEN        0x12011003
-
 
30
#define VERDE_GB_ADDR_CONFIG_GOLDEN         0x12010002
-
 
31
#define HAINAN_GB_ADDR_CONFIG_GOLDEN        0x02010001
-
 
32
 
-
 
33
/* discrete uvd clocks */
-
 
34
#define	CG_UPLL_FUNC_CNTL				0x634
-
 
35
#	define UPLL_RESET_MASK				0x00000001
-
 
36
#	define UPLL_SLEEP_MASK				0x00000002
-
 
37
#	define UPLL_BYPASS_EN_MASK			0x00000004
-
 
38
#	define UPLL_CTLREQ_MASK				0x00000008
-
 
39
#	define UPLL_VCO_MODE_MASK			0x00000600
-
 
40
#	define UPLL_REF_DIV_MASK			0x003F0000
-
 
41
#	define UPLL_CTLACK_MASK				0x40000000
-
 
42
#	define UPLL_CTLACK2_MASK			0x80000000
-
 
43
#define	CG_UPLL_FUNC_CNTL_2				0x638
-
 
44
#	define UPLL_PDIV_A(x)				((x) << 0)
-
 
45
#	define UPLL_PDIV_A_MASK				0x0000007F
-
 
46
#	define UPLL_PDIV_B(x)				((x) << 8)
-
 
47
#	define UPLL_PDIV_B_MASK				0x00007F00
-
 
48
#	define VCLK_SRC_SEL(x)				((x) << 20)
-
 
49
#	define VCLK_SRC_SEL_MASK			0x01F00000
-
 
50
#	define DCLK_SRC_SEL(x)				((x) << 25)
-
 
51
#	define DCLK_SRC_SEL_MASK			0x3E000000
-
 
52
#define	CG_UPLL_FUNC_CNTL_3				0x63C
-
 
53
#	define UPLL_FB_DIV(x)				((x) << 0)
-
 
54
#	define UPLL_FB_DIV_MASK				0x01FFFFFF
-
 
55
#define	CG_UPLL_FUNC_CNTL_4                             0x644
-
 
56
#	define UPLL_SPARE_ISPARE9			0x00020000
-
 
57
#define	CG_UPLL_FUNC_CNTL_5				0x648
-
 
58
#	define RESET_ANTI_MUX_MASK			0x00000200
Line 29... Line 59...
29
#define TAHITI_GB_ADDR_CONFIG_GOLDEN        0x12011003
59
#define	CG_UPLL_SPREAD_SPECTRUM				0x650
30
#define VERDE_GB_ADDR_CONFIG_GOLDEN         0x12010002
60
#	define SSEN_MASK				0x00000001
31
 
61
 
32
#define	CG_MULT_THERMAL_STATUS					0x714
62
#define	CG_MULT_THERMAL_STATUS					0x714
Line 56... Line 86...
56
#define SI_MAX_TCC_MASK          0xFFFF
86
#define SI_MAX_TCC_MASK          0xFFFF
Line 57... Line 87...
57
 
87
 
58
#define VGA_HDP_CONTROL  				0x328
88
#define VGA_HDP_CONTROL  				0x328
Line -... Line 89...
-
 
89
#define		VGA_MEMORY_DISABLE				(1 << 4)
-
 
90
 
-
 
91
#define CG_CLKPIN_CNTL                                    0x660
-
 
92
#       define XTALIN_DIVIDE                              (1 << 1)
-
 
93
#define CG_CLKPIN_CNTL_2                                  0x664
59
#define		VGA_MEMORY_DISABLE				(1 << 4)
94
#       define MUX_TCLK_TO_XCLK                           (1 << 8)
Line -... Line 95...
-
 
95
 
-
 
96
#define DMIF_ADDR_CONFIG  				0xBD4
60
 
97
 
-
 
98
#define DMIF_ADDR_CALC  				0xC00
-
 
99
 
-
 
100
#define	SRBM_STATUS				        0xE50
-
 
101
#define		GRBM_RQ_PENDING 			(1 << 5)
-
 
102
#define		VMC_BUSY 				(1 << 8)
-
 
103
#define		MCB_BUSY 				(1 << 9)
-
 
104
#define		MCB_NON_DISPLAY_BUSY 			(1 << 10)
-
 
105
#define		MCC_BUSY 				(1 << 11)
Line 61... Line 106...
61
#define DMIF_ADDR_CONFIG  				0xBD4
106
#define		MCD_BUSY 				(1 << 12)
62
 
107
#define		SEM_BUSY 				(1 << 14)
63
#define	SRBM_STATUS				        0xE50
108
#define		IH_BUSY 				(1 << 17)
64
 
109
 
Line 79... Line 124...
79
#define		SOFT_RESET_ORB				(1 << 23)
124
#define		SOFT_RESET_ORB				(1 << 23)
Line 80... Line 125...
80
 
125
 
81
#define	CC_SYS_RB_BACKEND_DISABLE			0xe80
126
#define	CC_SYS_RB_BACKEND_DISABLE			0xe80
Line -... Line 127...
-
 
127
#define	GC_USER_SYS_RB_BACKEND_DISABLE			0xe84
-
 
128
 
-
 
129
#define	SRBM_STATUS2				        0x0EC4
-
 
130
#define		DMA_BUSY 				(1 << 5)
82
#define	GC_USER_SYS_RB_BACKEND_DISABLE			0xe84
131
#define		DMA1_BUSY 				(1 << 6)
83
 
132
 
84
#define VM_L2_CNTL					0x1400
133
#define VM_L2_CNTL					0x1400
85
#define		ENABLE_L2_CACHE					(1 << 0)
134
#define		ENABLE_L2_CACHE					(1 << 0)
86
#define		ENABLE_L2_FRAGMENT_PROCESSING			(1 << 1)
135
#define		ENABLE_L2_FRAGMENT_PROCESSING			(1 << 1)
Line 779... Line 828...
779
#       define THREAD_TRACE_STOP                        (52 << 0)
828
#       define THREAD_TRACE_STOP                        (52 << 0)
780
#       define THREAD_TRACE_FLUSH                       (54 << 0)
829
#       define THREAD_TRACE_FLUSH                       (54 << 0)
781
#       define THREAD_TRACE_FINISH                      (55 << 0)
830
#       define THREAD_TRACE_FINISH                      (55 << 0)
Line 782... Line 831...
782
 
831
 
-
 
832
/*
-
 
833
 * UVD
-
 
834
 */
-
 
835
#define UVD_UDEC_ADDR_CONFIG				0xEF4C
-
 
836
#define UVD_UDEC_DB_ADDR_CONFIG				0xEF50
-
 
837
#define UVD_UDEC_DBW_ADDR_CONFIG			0xEF54
-
 
838
#define UVD_RBC_RB_RPTR					0xF690
-
 
839
#define UVD_RBC_RB_WPTR					0xF694
-
 
840
 
783
/*
841
/*
784
 * PM4
842
 * PM4
785
 */
-
 
786
#define	PACKET_TYPE0	0
-
 
787
#define	PACKET_TYPE1	1
-
 
788
#define	PACKET_TYPE2	2
-
 
789
#define	PACKET_TYPE3	3
-
 
790
 
-
 
791
#define CP_PACKET_GET_TYPE(h) (((h) >> 30) & 3)
-
 
792
#define CP_PACKET_GET_COUNT(h) (((h) >> 16) & 0x3FFF)
-
 
793
#define CP_PACKET0_GET_REG(h) (((h) & 0xFFFF) << 2)
-
 
794
#define CP_PACKET3_GET_OPCODE(h) (((h) >> 8) & 0xFF)
843
 */
795
#define PACKET0(reg, n)	((PACKET_TYPE0 << 30) |				\
844
#define PACKET0(reg, n)	((RADEON_PACKET_TYPE0 << 30) |			\
796
			 (((reg) >> 2) & 0xFFFF) |			\
845
			 (((reg) >> 2) & 0xFFFF) |			\
797
			 ((n) & 0x3FFF) << 16)
846
			 ((n) & 0x3FFF) << 16)
798
#define CP_PACKET2			0x80000000
847
#define CP_PACKET2			0x80000000
799
#define		PACKET2_PAD_SHIFT		0
848
#define		PACKET2_PAD_SHIFT		0
Line 800... Line 849...
800
#define		PACKET2_PAD_MASK		(0x3fffffff << 0)
849
#define		PACKET2_PAD_MASK		(0x3fffffff << 0)
Line 801... Line 850...
801
 
850
 
802
#define PACKET2(v)	(CP_PACKET2 | REG_SET(PACKET2_PAD, (v)))
851
#define PACKET2(v)	(CP_PACKET2 | REG_SET(PACKET2_PAD, (v)))
803
 
852
 
Line 804... Line 853...
804
#define PACKET3(op, n)	((PACKET_TYPE3 << 30) |				\
853
#define PACKET3(op, n)	((RADEON_PACKET_TYPE3 << 30) |			\