Subversion Repositories Kolibri OS

Rev

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

Rev 5271 Rev 6104
Line 356... Line 356...
356
#define		SOFT_RESET_ORB				(1 << 23)
356
#define		SOFT_RESET_ORB				(1 << 23)
Line 357... Line 357...
357
 
357
 
358
#define	CC_SYS_RB_BACKEND_DISABLE			0xe80
358
#define	CC_SYS_RB_BACKEND_DISABLE			0xe80
Line -... Line 359...
-
 
359
#define	GC_USER_SYS_RB_BACKEND_DISABLE			0xe84
-
 
360
 
-
 
361
#define SRBM_READ_ERROR					0xE98
-
 
362
#define SRBM_INT_CNTL					0xEA0
359
#define	GC_USER_SYS_RB_BACKEND_DISABLE			0xe84
363
#define SRBM_INT_ACK					0xEA8
360
 
364
 
361
#define	SRBM_STATUS2				        0x0EC4
365
#define	SRBM_STATUS2				        0x0EC4
Line 362... Line 366...
362
#define		DMA_BUSY 				(1 << 5)
366
#define		DMA_BUSY 				(1 << 5)
Line 899... Line 903...
899
#       define STUTTER_ENABLE                             (1 << 0)
903
#       define STUTTER_ENABLE                             (1 << 0)
Line 900... Line 904...
900
 
904
 
901
/* 0x6e98, 0x7a98, 0x10698, 0x11298, 0x11e98, 0x12a98 */
905
/* 0x6e98, 0x7a98, 0x10698, 0x11298, 0x11e98, 0x12a98 */
Line -... Line 906...
-
 
906
#define CRTC_STATUS_FRAME_COUNT                         0x6e98
-
 
907
 
-
 
908
/* Audio clocks */
-
 
909
#define DCCG_AUDIO_DTO_SOURCE                           0x05ac
-
 
910
#       define DCCG_AUDIO_DTO0_SOURCE_SEL(x) ((x) << 0) /* crtc0 - crtc5 */
-
 
911
#       define DCCG_AUDIO_DTO_SEL            (1 << 4)   /* 0=dto0 1=dto1 */
-
 
912
 
-
 
913
#define DCCG_AUDIO_DTO0_PHASE                           0x05b0
-
 
914
#define DCCG_AUDIO_DTO0_MODULE                          0x05b4
-
 
915
#define DCCG_AUDIO_DTO1_PHASE                           0x05c0
902
#define CRTC_STATUS_FRAME_COUNT                         0x6e98
916
#define DCCG_AUDIO_DTO1_MODULE                          0x05c4
903
 
917
 
904
#define AFMT_AUDIO_SRC_CONTROL                          0x713c
918
#define AFMT_AUDIO_SRC_CONTROL                          0x713c
905
#define		AFMT_AUDIO_SRC_SELECT(x)		(((x) & 7) << 0)
919
#define		AFMT_AUDIO_SRC_SELECT(x)		(((x) & 7) << 0)
906
/* AFMT_AUDIO_SRC_SELECT
920
/* AFMT_AUDIO_SRC_SELECT
Line 1540... Line 1554...
1540
#define UVD_UDEC_ADDR_CONFIG				0xEF4C
1554
#define UVD_UDEC_ADDR_CONFIG				0xEF4C
1541
#define UVD_UDEC_DB_ADDR_CONFIG				0xEF50
1555
#define UVD_UDEC_DB_ADDR_CONFIG				0xEF50
1542
#define UVD_UDEC_DBW_ADDR_CONFIG			0xEF54
1556
#define UVD_UDEC_DBW_ADDR_CONFIG			0xEF54
1543
#define UVD_RBC_RB_RPTR					0xF690
1557
#define UVD_RBC_RB_RPTR					0xF690
1544
#define UVD_RBC_RB_WPTR					0xF694
1558
#define UVD_RBC_RB_WPTR					0xF694
-
 
1559
#define UVD_STATUS					0xf6bc
Line 1545... Line 1560...
1545
 
1560
 
1546
#define	UVD_CGC_CTRL					0xF4B0
1561
#define	UVD_CGC_CTRL					0xF4B0
1547
#	define DCM					(1 << 0)
1562
#	define DCM					(1 << 0)
1548
#	define CG_DT(x)					((x) << 2)
1563
#	define CG_DT(x)					((x) << 2)
Line 1630... Line 1645...
1630
#define	PACKET3_DRAW_INDEX_INDIRECT_MULTI		0x38
1645
#define	PACKET3_DRAW_INDEX_INDIRECT_MULTI		0x38
1631
#define	PACKET3_MEM_SEMAPHORE				0x39
1646
#define	PACKET3_MEM_SEMAPHORE				0x39
1632
#define	PACKET3_MPEG_INDEX				0x3A
1647
#define	PACKET3_MPEG_INDEX				0x3A
1633
#define	PACKET3_COPY_DW					0x3B
1648
#define	PACKET3_COPY_DW					0x3B
1634
#define	PACKET3_WAIT_REG_MEM				0x3C
1649
#define	PACKET3_WAIT_REG_MEM				0x3C
-
 
1650
#define		WAIT_REG_MEM_FUNCTION(x)                ((x) << 0)
-
 
1651
                /* 0 - always
-
 
1652
		 * 1 - <
-
 
1653
		 * 2 - <=
-
 
1654
		 * 3 - ==
-
 
1655
		 * 4 - !=
-
 
1656
		 * 5 - >=
-
 
1657
		 * 6 - >
-
 
1658
		 */
-
 
1659
#define		WAIT_REG_MEM_MEM_SPACE(x)               ((x) << 4)
-
 
1660
                /* 0 - reg
-
 
1661
		 * 1 - mem
-
 
1662
		 */
-
 
1663
#define		WAIT_REG_MEM_ENGINE(x)                  ((x) << 8)
-
 
1664
                /* 0 - me
-
 
1665
		 * 1 - pfp
-
 
1666
		 */
1635
#define	PACKET3_MEM_WRITE				0x3D
1667
#define	PACKET3_MEM_WRITE				0x3D
1636
#define	PACKET3_COPY_DATA				0x40
1668
#define	PACKET3_COPY_DATA				0x40
1637
#define	PACKET3_CP_DMA					0x41
1669
#define	PACKET3_CP_DMA					0x41
1638
/* 1. header
1670
/* 1. header
1639
 * 2. SRC_ADDR_LO or DATA [31:0]
1671
 * 2. SRC_ADDR_LO or DATA [31:0]
Line 1833... Line 1865...
1833
#define	DMA_PACKET_SEMAPHORE				  0x5
1865
#define	DMA_PACKET_SEMAPHORE				  0x5
1834
#define	DMA_PACKET_FENCE				  0x6
1866
#define	DMA_PACKET_FENCE				  0x6
1835
#define	DMA_PACKET_TRAP					  0x7
1867
#define	DMA_PACKET_TRAP					  0x7
1836
#define	DMA_PACKET_SRBM_WRITE				  0x9
1868
#define	DMA_PACKET_SRBM_WRITE				  0x9
1837
#define	DMA_PACKET_CONSTANT_FILL			  0xd
1869
#define	DMA_PACKET_CONSTANT_FILL			  0xd
-
 
1870
#define	DMA_PACKET_POLL_REG_MEM				  0xe
1838
#define	DMA_PACKET_NOP					  0xf
1871
#define	DMA_PACKET_NOP					  0xf
Line 1839... Line 1872...
1839
 
1872
 
1840
#define VCE_STATUS					0x20004
1873
#define VCE_STATUS					0x20004
1841
#define VCE_VCPU_CNTL					0x20014
1874
#define VCE_VCPU_CNTL					0x20014
Line 1844... Line 1877...
1844
#define VCE_VCPU_CACHE_SIZE0				0x20028
1877
#define VCE_VCPU_CACHE_SIZE0				0x20028
1845
#define VCE_VCPU_CACHE_OFFSET1				0x2002c
1878
#define VCE_VCPU_CACHE_OFFSET1				0x2002c
1846
#define VCE_VCPU_CACHE_SIZE1				0x20030
1879
#define VCE_VCPU_CACHE_SIZE1				0x20030
1847
#define VCE_VCPU_CACHE_OFFSET2				0x20034
1880
#define VCE_VCPU_CACHE_OFFSET2				0x20034
1848
#define VCE_VCPU_CACHE_SIZE2				0x20038
1881
#define VCE_VCPU_CACHE_SIZE2				0x20038
-
 
1882
#define VCE_VCPU_SCRATCH7				0x200dc
1849
#define VCE_SOFT_RESET					0x20120
1883
#define VCE_SOFT_RESET					0x20120
1850
#define 	VCE_ECPU_SOFT_RESET			(1 << 0)
1884
#define 	VCE_ECPU_SOFT_RESET			(1 << 0)
1851
#define 	VCE_FME_SOFT_RESET			(1 << 2)
1885
#define 	VCE_FME_SOFT_RESET			(1 << 2)
1852
#define VCE_RB_BASE_LO2					0x2016c
1886
#define VCE_RB_BASE_LO2					0x2016c
1853
#define VCE_RB_BASE_HI2					0x20170
1887
#define VCE_RB_BASE_HI2					0x20170
Line 1858... Line 1892...
1858
#define VCE_RB_BASE_HI					0x20184
1892
#define VCE_RB_BASE_HI					0x20184
1859
#define VCE_RB_SIZE					0x20188
1893
#define VCE_RB_SIZE					0x20188
1860
#define VCE_RB_RPTR					0x2018c
1894
#define VCE_RB_RPTR					0x2018c
1861
#define VCE_RB_WPTR					0x20190
1895
#define VCE_RB_WPTR					0x20190
1862
#define VCE_CLOCK_GATING_A				0x202f8
1896
#define VCE_CLOCK_GATING_A				0x202f8
-
 
1897
#	define CGC_DYN_CLOCK_MODE			(1 << 16)
1863
#define VCE_CLOCK_GATING_B				0x202fc
1898
#define VCE_CLOCK_GATING_B				0x202fc
1864
#define VCE_UENC_CLOCK_GATING				0x205bc
1899
#define VCE_UENC_CLOCK_GATING				0x205bc
1865
#define VCE_UENC_REG_CLOCK_GATING			0x205c0
1900
#define VCE_UENC_REG_CLOCK_GATING			0x205c0
1866
#define VCE_FW_REG_STATUS				0x20e10
1901
#define VCE_FW_REG_STATUS				0x20e10
1867
#	define VCE_FW_REG_STATUS_BUSY			(1 << 0)
1902
#	define VCE_FW_REG_STATUS_BUSY			(1 << 0)
Line 1882... Line 1917...
1882
#define VCE_CMD_FENCE					0x00000003
1917
#define VCE_CMD_FENCE					0x00000003
1883
#define VCE_CMD_TRAP					0x00000004
1918
#define VCE_CMD_TRAP					0x00000004
1884
#define VCE_CMD_IB_AUTO					0x00000005
1919
#define VCE_CMD_IB_AUTO					0x00000005
1885
#define VCE_CMD_SEMAPHORE				0x00000006
1920
#define VCE_CMD_SEMAPHORE				0x00000006
Line -... Line 1921...
-
 
1921
 
-
 
1922
/* discrete vce clocks */
-
 
1923
#define	CG_VCEPLL_FUNC_CNTL				0xc0030600
-
 
1924
#	define VCEPLL_RESET_MASK			0x00000001
-
 
1925
#	define VCEPLL_SLEEP_MASK			0x00000002
-
 
1926
#	define VCEPLL_BYPASS_EN_MASK			0x00000004
-
 
1927
#	define VCEPLL_CTLREQ_MASK			0x00000008
-
 
1928
#	define VCEPLL_VCO_MODE_MASK			0x00000600
-
 
1929
#	define VCEPLL_REF_DIV_MASK			0x003F0000
-
 
1930
#	define VCEPLL_CTLACK_MASK			0x40000000
-
 
1931
#	define VCEPLL_CTLACK2_MASK			0x80000000
-
 
1932
#define	CG_VCEPLL_FUNC_CNTL_2				0xc0030601
-
 
1933
#	define VCEPLL_PDIV_A(x)				((x) << 0)
-
 
1934
#	define VCEPLL_PDIV_A_MASK			0x0000007F
-
 
1935
#	define VCEPLL_PDIV_B(x)				((x) << 8)
-
 
1936
#	define VCEPLL_PDIV_B_MASK			0x00007F00
-
 
1937
#	define EVCLK_SRC_SEL(x)				((x) << 20)
-
 
1938
#	define EVCLK_SRC_SEL_MASK			0x01F00000
-
 
1939
#	define ECCLK_SRC_SEL(x)				((x) << 25)
-
 
1940
#	define ECCLK_SRC_SEL_MASK			0x3E000000
-
 
1941
#define	CG_VCEPLL_FUNC_CNTL_3				0xc0030602
-
 
1942
#	define VCEPLL_FB_DIV(x)				((x) << 0)
-
 
1943
#	define VCEPLL_FB_DIV_MASK			0x01FFFFFF
-
 
1944
#define	CG_VCEPLL_FUNC_CNTL_4				0xc0030603
-
 
1945
#define	CG_VCEPLL_FUNC_CNTL_5				0xc0030604
-
 
1946
#define	CG_VCEPLL_SPREAD_SPECTRUM			0xc0030606
-
 
1947
#	define VCEPLL_SSEN_MASK				0x00000001
1886
 
1948