Subversion Repositories Kolibri OS

Rev

Rev 6937 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6937 Rev 7144
Line 608... Line 608...
608
#define   IOSF_OPCODE_SHIFT			16
608
#define   IOSF_OPCODE_SHIFT			16
609
#define   IOSF_PORT_SHIFT			8
609
#define   IOSF_PORT_SHIFT			8
610
#define   IOSF_BYTE_ENABLES_SHIFT		4
610
#define   IOSF_BYTE_ENABLES_SHIFT		4
611
#define   IOSF_BAR_SHIFT			1
611
#define   IOSF_BAR_SHIFT			1
612
#define   IOSF_SB_BUSY				(1<<0)
612
#define   IOSF_SB_BUSY				(1<<0)
613
#define   IOSF_PORT_BUNIT			0x3
613
#define   IOSF_PORT_BUNIT			0x03
614
#define   IOSF_PORT_PUNIT			0x4
614
#define   IOSF_PORT_PUNIT			0x04
615
#define   IOSF_PORT_NC				0x11
615
#define   IOSF_PORT_NC				0x11
616
#define   IOSF_PORT_DPIO			0x12
616
#define   IOSF_PORT_DPIO			0x12
617
#define   IOSF_PORT_DPIO_2			0x1a
-
 
618
#define   IOSF_PORT_GPIO_NC			0x13
617
#define   IOSF_PORT_GPIO_NC			0x13
619
#define   IOSF_PORT_CCK				0x14
618
#define   IOSF_PORT_CCK				0x14
620
#define   IOSF_PORT_CCU				0xA9
619
#define   IOSF_PORT_DPIO_2			0x1a
-
 
620
#define   IOSF_PORT_FLISDSI			0x1b
621
#define   IOSF_PORT_GPS_CORE			0x48
621
#define   IOSF_PORT_GPIO_SC			0x48
622
#define   IOSF_PORT_FLISDSI			0x1B
622
#define   IOSF_PORT_GPIO_SUS			0xa8
-
 
623
#define   IOSF_PORT_CCU				0xa9
623
#define VLV_IOSF_DATA				_MMIO(VLV_DISPLAY_BASE + 0x2104)
624
#define VLV_IOSF_DATA				_MMIO(VLV_DISPLAY_BASE + 0x2104)
624
#define VLV_IOSF_ADDR				_MMIO(VLV_DISPLAY_BASE + 0x2108)
625
#define VLV_IOSF_ADDR				_MMIO(VLV_DISPLAY_BASE + 0x2108)
Line 625... Line 626...
625
 
626
 
626
/* See configdb bunit SB addr map */
627
/* See configdb bunit SB addr map */
Line 855... Line 856...
855
 *
856
 *
856
 * Note: DDI0 is digital port B, DD1 is digital port C, and DDI2 is
857
 * Note: DDI0 is digital port B, DD1 is digital port C, and DDI2 is
857
 * digital port D (CHV) or port A (BXT).
858
 * digital port D (CHV) or port A (BXT).
858
 *
859
 *
859
 *
860
 *
860
 * Dual channel PHY (VLV/CHV/BXT)
861
 *     Dual channel PHY (VLV/CHV/BXT)
861
 * ---------------------------------
862
 *     ---------------------------------
862
 * |      CH0      |      CH1      |
863
 *     |      CH0      |      CH1      |
863
 * |  CMN/PLL/REF  |  CMN/PLL/REF  |
864
 *     |  CMN/PLL/REF  |  CMN/PLL/REF  |
864
 * |---------------|---------------| Display PHY
865
 *     |---------------|---------------| Display PHY
865
 * | PCS01 | PCS23 | PCS01 | PCS23 |
866
 *     | PCS01 | PCS23 | PCS01 | PCS23 |
866
 * |-------|-------|-------|-------|
867
 *     |-------|-------|-------|-------|
867
 * |TX0|TX1|TX2|TX3|TX0|TX1|TX2|TX3|
868
 *     |TX0|TX1|TX2|TX3|TX0|TX1|TX2|TX3|
868
 * ---------------------------------
869
 *     ---------------------------------
869
 * |     DDI0      |     DDI1      | DP/HDMI ports
870
 *     |     DDI0      |     DDI1      | DP/HDMI ports
870
 * ---------------------------------
871
 *     ---------------------------------
871
 *
872
 *
872
 * Single channel PHY (CHV/BXT)
873
 *     Single channel PHY (CHV/BXT)
873
 * -----------------
874
 *     -----------------
874
 * |      CH0      |
875
 *     |      CH0      |
875
 * |  CMN/PLL/REF  |
876
 *     |  CMN/PLL/REF  |
876
 * |---------------| Display PHY
877
 *     |---------------| Display PHY
877
 * | PCS01 | PCS23 |
878
 *     | PCS01 | PCS23 |
878
 * |-------|-------|
879
 *     |-------|-------|
879
 * |TX0|TX1|TX2|TX3|
880
 *     |TX0|TX1|TX2|TX3|
880
 * -----------------
881
 *     -----------------
881
 * |     DDI2      | DP/HDMI port
882
 *     |     DDI2      | DP/HDMI port
882
 * -----------------
883
 *     -----------------
883
 */
884
 */
884
#define DPIO_DEVFN			0
885
#define DPIO_DEVFN			0
Line 885... Line 886...
885
 
886
 
886
#define DPIO_CTL			_MMIO(VLV_DISPLAY_BASE + 0x2110)
887
#define DPIO_CTL			_MMIO(VLV_DISPLAY_BASE + 0x2110)
Line 1539... Line 1540...
1539
 */
1540
 */
1540
#define PGTBL_CTL	_MMIO(0x02020)
1541
#define PGTBL_CTL	_MMIO(0x02020)
1541
#define   PGTBL_ADDRESS_LO_MASK	0xfffff000 /* bits [31:12] */
1542
#define   PGTBL_ADDRESS_LO_MASK	0xfffff000 /* bits [31:12] */
1542
#define   PGTBL_ADDRESS_HI_MASK	0x000000f0 /* bits [35:32] (gen4) */
1543
#define   PGTBL_ADDRESS_HI_MASK	0x000000f0 /* bits [35:32] (gen4) */
1543
#define PGTBL_ER	_MMIO(0x02024)
1544
#define PGTBL_ER	_MMIO(0x02024)
1544
#define PRB0_BASE (0x2030-0x30)
1545
#define PRB0_BASE	(0x2030-0x30)
1545
#define PRB1_BASE (0x2040-0x30) /* 830,gen3 */
1546
#define PRB1_BASE	(0x2040-0x30) /* 830,gen3 */
1546
#define PRB2_BASE (0x2050-0x30) /* gen3 */
1547
#define PRB2_BASE	(0x2050-0x30) /* gen3 */
1547
#define SRB0_BASE (0x2100-0x30) /* gen2 */
1548
#define SRB0_BASE	(0x2100-0x30) /* gen2 */
1548
#define SRB1_BASE (0x2110-0x30) /* gen2 */
1549
#define SRB1_BASE	(0x2110-0x30) /* gen2 */
1549
#define SRB2_BASE (0x2120-0x30) /* 830 */
1550
#define SRB2_BASE	(0x2120-0x30) /* 830 */
1550
#define SRB3_BASE (0x2130-0x30) /* 830 */
1551
#define SRB3_BASE	(0x2130-0x30) /* 830 */
1551
#define RENDER_RING_BASE	0x02000
1552
#define RENDER_RING_BASE	0x02000
1552
#define BSD_RING_BASE		0x04000
1553
#define BSD_RING_BASE		0x04000
1553
#define GEN6_BSD_RING_BASE	0x12000
1554
#define GEN6_BSD_RING_BASE	0x12000
1554
#define GEN8_BSD2_RING_BASE	0x1c000
1555
#define GEN8_BSD2_RING_BASE	0x1c000
1555
#define VEBOX_RING_BASE		0x1a000
1556
#define VEBOX_RING_BASE		0x1a000
Line 1633... Line 1634...
1633
#define   RING_INVALID		0x00000000
1634
#define   RING_INVALID		0x00000000
1634
#define   RING_WAIT_I8XX	(1<<0) /* gen2, PRBx_HEAD */
1635
#define   RING_WAIT_I8XX	(1<<0) /* gen2, PRBx_HEAD */
1635
#define   RING_WAIT		(1<<11) /* gen3+, PRBx_CTL */
1636
#define   RING_WAIT		(1<<11) /* gen3+, PRBx_CTL */
1636
#define   RING_WAIT_SEMAPHORE	(1<<10) /* gen6+ */
1637
#define   RING_WAIT_SEMAPHORE	(1<<10) /* gen6+ */
Line -... Line 1638...
-
 
1638
 
-
 
1639
#define RING_FORCE_TO_NONPRIV(base, i) _MMIO(((base)+0x4D0) + (i)*4)
-
 
1640
#define   RING_MAX_NONPRIV_SLOTS  12
1637
 
1641
 
Line 1638... Line 1642...
1638
#define GEN7_TLB_RD_ADDR	_MMIO(0x4700)
1642
#define GEN7_TLB_RD_ADDR	_MMIO(0x4700)
1639
 
1643
 
1640
#if 0
1644
#if 0
Line 1709... Line 1713...
1709
#define GEN8_FAULT_TLB_DATA1		_MMIO(0x4b14)
1713
#define GEN8_FAULT_TLB_DATA1		_MMIO(0x4b14)
Line 1710... Line 1714...
1710
 
1714
 
1711
#define FPGA_DBG		_MMIO(0x42300)
1715
#define FPGA_DBG		_MMIO(0x42300)
Line -... Line 1716...
-
 
1716
#define   FPGA_DBG_RM_NOCLAIM	(1<<31)
-
 
1717
 
-
 
1718
#define CLAIM_ER		_MMIO(VLV_DISPLAY_BASE + 0x2028)
-
 
1719
#define   CLAIM_ER_CLR		(1 << 31)
-
 
1720
#define   CLAIM_ER_OVERFLOW	(1 << 16)
1712
#define   FPGA_DBG_RM_NOCLAIM	(1<<31)
1721
#define   CLAIM_ER_CTR_MASK	0xffff
1713
 
1722
 
1714
#define DERRMR		_MMIO(0x44050)
1723
#define DERRMR		_MMIO(0x44050)
1715
/* Note that HBLANK events are reserved on bdw+ */
1724
/* Note that HBLANK events are reserved on bdw+ */
1716
#define   DERRMR_PIPEA_SCANLINE		(1<<0)
1725
#define   DERRMR_PIPEA_SCANLINE		(1<<0)
Line 2567... Line 2576...
2567
 */
2576
 */
2568
#define PALETTE_A_OFFSET 0xa000
2577
#define PALETTE_A_OFFSET 0xa000
2569
#define PALETTE_B_OFFSET 0xa800
2578
#define PALETTE_B_OFFSET 0xa800
2570
#define CHV_PALETTE_C_OFFSET 0xc000
2579
#define CHV_PALETTE_C_OFFSET 0xc000
2571
#define PALETTE(pipe, i) _MMIO(dev_priv->info.palette_offsets[pipe] +	\
2580
#define PALETTE(pipe, i) _MMIO(dev_priv->info.palette_offsets[pipe] +	\
2572
			  dev_priv->info.display_mmio_offset + (i) * 4)
2581
			      dev_priv->info.display_mmio_offset + (i) * 4)
Line 2573... Line 2582...
2573
 
2582
 
Line 2574... Line 2583...
2574
/* MCH MMIO space */
2583
/* MCH MMIO space */
2575
 
2584
 
Line 3620... Line 3629...
3620
#define PFIT_AUTO_RATIOS _MMIO(dev_priv->info.display_mmio_offset + 0x61238)
3629
#define PFIT_AUTO_RATIOS _MMIO(dev_priv->info.display_mmio_offset + 0x61238)
Line 3621... Line 3630...
3621
 
3630
 
3622
#define _VLV_BLC_PWM_CTL2_A (dev_priv->info.display_mmio_offset + 0x61250)
3631
#define _VLV_BLC_PWM_CTL2_A (dev_priv->info.display_mmio_offset + 0x61250)
3623
#define _VLV_BLC_PWM_CTL2_B (dev_priv->info.display_mmio_offset + 0x61350)
3632
#define _VLV_BLC_PWM_CTL2_B (dev_priv->info.display_mmio_offset + 0x61350)
3624
#define VLV_BLC_PWM_CTL2(pipe) _MMIO_PIPE(pipe, _VLV_BLC_PWM_CTL2_A, \
3633
#define VLV_BLC_PWM_CTL2(pipe) _MMIO_PIPE(pipe, _VLV_BLC_PWM_CTL2_A, \
Line 3625... Line 3634...
3625
				     _VLV_BLC_PWM_CTL2_B)
3634
					 _VLV_BLC_PWM_CTL2_B)
3626
 
3635
 
3627
#define _VLV_BLC_PWM_CTL_A (dev_priv->info.display_mmio_offset + 0x61254)
3636
#define _VLV_BLC_PWM_CTL_A (dev_priv->info.display_mmio_offset + 0x61254)
3628
#define _VLV_BLC_PWM_CTL_B (dev_priv->info.display_mmio_offset + 0x61354)
3637
#define _VLV_BLC_PWM_CTL_B (dev_priv->info.display_mmio_offset + 0x61354)
Line 3629... Line 3638...
3629
#define VLV_BLC_PWM_CTL(pipe) _MMIO_PIPE(pipe, _VLV_BLC_PWM_CTL_A, \
3638
#define VLV_BLC_PWM_CTL(pipe) _MMIO_PIPE(pipe, _VLV_BLC_PWM_CTL_A, \
3630
				    _VLV_BLC_PWM_CTL_B)
3639
					_VLV_BLC_PWM_CTL_B)
3631
 
3640
 
3632
#define _VLV_BLC_HIST_CTL_A (dev_priv->info.display_mmio_offset + 0x61260)
3641
#define _VLV_BLC_HIST_CTL_A (dev_priv->info.display_mmio_offset + 0x61260)
Line 3633... Line 3642...
3633
#define _VLV_BLC_HIST_CTL_B (dev_priv->info.display_mmio_offset + 0x61360)
3642
#define _VLV_BLC_HIST_CTL_B (dev_priv->info.display_mmio_offset + 0x61360)
3634
#define VLV_BLC_HIST_CTL(pipe) _MMIO_PIPE(pipe, _VLV_BLC_HIST_CTL_A, \
3643
#define VLV_BLC_HIST_CTL(pipe) _MMIO_PIPE(pipe, _VLV_BLC_HIST_CTL_A, \
3635
				     _VLV_BLC_HIST_CTL_B)
3644
					 _VLV_BLC_HIST_CTL_B)
3636
 
3645
 
Line 5032... Line 5041...
5032
#define DSPSTRIDE(plane)	_MMIO_PIPE2(plane, _DSPASTRIDE)
5041
#define DSPSTRIDE(plane)	_MMIO_PIPE2(plane, _DSPASTRIDE)
5033
#define DSPPOS(plane)		_MMIO_PIPE2(plane, _DSPAPOS)
5042
#define DSPPOS(plane)		_MMIO_PIPE2(plane, _DSPAPOS)
5034
#define DSPSIZE(plane)		_MMIO_PIPE2(plane, _DSPASIZE)
5043
#define DSPSIZE(plane)		_MMIO_PIPE2(plane, _DSPASIZE)
5035
#define DSPSURF(plane)		_MMIO_PIPE2(plane, _DSPASURF)
5044
#define DSPSURF(plane)		_MMIO_PIPE2(plane, _DSPASURF)
5036
#define DSPTILEOFF(plane)	_MMIO_PIPE2(plane, _DSPATILEOFF)
5045
#define DSPTILEOFF(plane)	_MMIO_PIPE2(plane, _DSPATILEOFF)
5037
#define DSPLINOFF(plane) DSPADDR(plane)
5046
#define DSPLINOFF(plane)	DSPADDR(plane)
5038
#define DSPOFFSET(plane)	_MMIO_PIPE2(plane, _DSPAOFFSET)
5047
#define DSPOFFSET(plane)	_MMIO_PIPE2(plane, _DSPAOFFSET)
5039
#define DSPSURFLIVE(plane)	_MMIO_PIPE2(plane, _DSPASURFLIVE)
5048
#define DSPSURFLIVE(plane)	_MMIO_PIPE2(plane, _DSPASURFLIVE)
Line 5040... Line 5049...
5040
 
5049
 
5041
/* CHV pipe B blender and primary plane */
5050
/* CHV pipe B blender and primary plane */
Line 5946... Line 5955...
5946
#define  ILK_VSDPFD_FULL	(1<<21)
5955
#define  ILK_VSDPFD_FULL	(1<<21)
5947
#define FUSE_STRAP			_MMIO(0x42014)
5956
#define FUSE_STRAP			_MMIO(0x42014)
5948
#define  ILK_INTERNAL_GRAPHICS_DISABLE	(1 << 31)
5957
#define  ILK_INTERNAL_GRAPHICS_DISABLE	(1 << 31)
5949
#define  ILK_INTERNAL_DISPLAY_DISABLE	(1 << 30)
5958
#define  ILK_INTERNAL_DISPLAY_DISABLE	(1 << 30)
5950
#define  ILK_DISPLAY_DEBUG_DISABLE	(1 << 29)
5959
#define  ILK_DISPLAY_DEBUG_DISABLE	(1 << 29)
-
 
5960
#define  IVB_PIPE_C_DISABLE		(1 << 28)
5951
#define  ILK_HDCP_DISABLE		(1 << 25)
5961
#define  ILK_HDCP_DISABLE		(1 << 25)
5952
#define  ILK_eDP_A_DISABLE		(1 << 24)
5962
#define  ILK_eDP_A_DISABLE		(1 << 24)
5953
#define  HSW_CDCLK_LIMIT		(1 << 24)
5963
#define  HSW_CDCLK_LIMIT		(1 << 24)
5954
#define  ILK_DESKTOP			(1 << 23)
5964
#define  ILK_DESKTOP			(1 << 23)
Line 5992... Line 6002...
5992
#define SKL_DFSM_CDCLK_LIMIT_MASK	(3 << 23)
6002
#define SKL_DFSM_CDCLK_LIMIT_MASK	(3 << 23)
5993
#define SKL_DFSM_CDCLK_LIMIT_675	(0 << 23)
6003
#define SKL_DFSM_CDCLK_LIMIT_675	(0 << 23)
5994
#define SKL_DFSM_CDCLK_LIMIT_540	(1 << 23)
6004
#define SKL_DFSM_CDCLK_LIMIT_540	(1 << 23)
5995
#define SKL_DFSM_CDCLK_LIMIT_450	(2 << 23)
6005
#define SKL_DFSM_CDCLK_LIMIT_450	(2 << 23)
5996
#define SKL_DFSM_CDCLK_LIMIT_337_5	(3 << 23)
6006
#define SKL_DFSM_CDCLK_LIMIT_337_5	(3 << 23)
-
 
6007
#define SKL_DFSM_PIPE_A_DISABLE		(1 << 30)
-
 
6008
#define SKL_DFSM_PIPE_B_DISABLE		(1 << 21)
-
 
6009
#define SKL_DFSM_PIPE_C_DISABLE		(1 << 28)
-
 
6010
 
-
 
6011
#define GEN7_FF_SLICE_CS_CHICKEN1	_MMIO(0x20e0)
-
 
6012
#define   GEN9_FFSC_PERCTX_PREEMPT_CTRL	(1<<14)
Line 5997... Line 6013...
5997
 
6013
 
5998
#define FF_SLICE_CS_CHICKEN2			_MMIO(0x20e4)
6014
#define FF_SLICE_CS_CHICKEN2			_MMIO(0x20e4)
Line -... Line 6015...
-
 
6015
#define  GEN9_TSG_BARRIER_ACK_DISABLE		(1<<8)
-
 
6016
 
-
 
6017
#define GEN9_CS_DEBUG_MODE1		_MMIO(0x20ec)
5999
#define  GEN9_TSG_BARRIER_ACK_DISABLE		(1<<8)
6018
#define GEN8_CS_CHICKEN1		_MMIO(0x2580)
6000
 
6019
 
6001
/* GEN7 chicken */
6020
/* GEN7 chicken */
6002
#define GEN7_COMMON_SLICE_CHICKEN1		_MMIO(0x7010)
6021
#define GEN7_COMMON_SLICE_CHICKEN1		_MMIO(0x7010)
6003
# define GEN7_CSC1_RHWO_OPT_DISABLE_IN_RCC	((1<<10) | (1<<26))
6022
# define GEN7_CSC1_RHWO_OPT_DISABLE_IN_RCC	((1<<10) | (1<<26))
Line 6041... Line 6060...
6041
#define  HDC_DONOT_FETCH_MEM_WHEN_MASKED	(1<<11)
6060
#define  HDC_DONOT_FETCH_MEM_WHEN_MASKED	(1<<11)
6042
#define  HDC_FORCE_CONTEXT_SAVE_RESTORE_NON_COHERENT	(1<<5)
6061
#define  HDC_FORCE_CONTEXT_SAVE_RESTORE_NON_COHERENT	(1<<5)
6043
#define  HDC_FORCE_NON_COHERENT			(1<<4)
6062
#define  HDC_FORCE_NON_COHERENT			(1<<4)
6044
#define  HDC_BARRIER_PERFORMANCE_DISABLE	(1<<10)
6063
#define  HDC_BARRIER_PERFORMANCE_DISABLE	(1<<10)
Line -... Line 6064...
-
 
6064
 
-
 
6065
#define GEN8_HDC_CHICKEN1			_MMIO(0x7304)
6045
 
6066
 
6046
/* GEN9 chicken */
6067
/* GEN9 chicken */
6047
#define SLICE_ECO_CHICKEN0			_MMIO(0x7308)
6068
#define SLICE_ECO_CHICKEN0			_MMIO(0x7308)
Line 6048... Line 6069...
6048
#define   PIXEL_MASK_CAMMING_DISABLE		(1 << 14)
6069
#define   PIXEL_MASK_CAMMING_DISABLE		(1 << 14)
Line 6377... Line 6398...
6377
#define HSW_TVIDEO_DIP_SPD_DATA(trans, i)	_MMIO_TRANS2(trans, _HSW_VIDEO_DIP_SPD_DATA_A + (i) * 4)
6398
#define HSW_TVIDEO_DIP_SPD_DATA(trans, i)	_MMIO_TRANS2(trans, _HSW_VIDEO_DIP_SPD_DATA_A + (i) * 4)
6378
#define HSW_TVIDEO_DIP_GCP(trans)		_MMIO_TRANS2(trans, _HSW_VIDEO_DIP_GCP_A)
6399
#define HSW_TVIDEO_DIP_GCP(trans)		_MMIO_TRANS2(trans, _HSW_VIDEO_DIP_GCP_A)
6379
#define HSW_TVIDEO_DIP_VSC_DATA(trans, i)	_MMIO_TRANS2(trans, _HSW_VIDEO_DIP_VSC_DATA_A + (i) * 4)
6400
#define HSW_TVIDEO_DIP_VSC_DATA(trans, i)	_MMIO_TRANS2(trans, _HSW_VIDEO_DIP_VSC_DATA_A + (i) * 4)
Line 6380... Line 6401...
6380
 
6401
 
6381
#define _HSW_STEREO_3D_CTL_A		0x70020
6402
#define _HSW_STEREO_3D_CTL_A		0x70020
6382
#define   S3D_ENABLE		(1<<31)
6403
#define   S3D_ENABLE			(1<<31)
Line 6383... Line 6404...
6383
#define _HSW_STEREO_3D_CTL_B		0x71020
6404
#define _HSW_STEREO_3D_CTL_B		0x71020
Line 6384... Line 6405...
6384
 
6405
 
6385
#define HSW_STEREO_3D_CTL(trans)	_MMIO_PIPE2(trans, _HSW_STEREO_3D_CTL_A)
6406
#define HSW_STEREO_3D_CTL(trans)	_MMIO_PIPE2(trans, _HSW_STEREO_3D_CTL_A)
6386
 
6407
 
6387
#define _PCH_TRANS_HTOTAL_B          0xe1000
6408
#define _PCH_TRANS_HTOTAL_B          0xe1000
6388
#define _PCH_TRANS_HBLANK_B          0xe1004
6409
#define _PCH_TRANS_HBLANK_B          0xe1004
6389
#define _PCH_TRANS_HSYNC_B           0xe1008
6410
#define _PCH_TRANS_HSYNC_B           0xe1008
6390
#define _PCH_TRANS_VTOTAL_B          0xe100c
6411
#define _PCH_TRANS_VTOTAL_B          0xe100c
Line 6391... Line 6412...
6391
#define _PCH_TRANS_VBLANK_B          0xe1010
6412
#define _PCH_TRANS_VBLANK_B          0xe1010
6392
#define _PCH_TRANS_VSYNC_B           0xe1014
6413
#define _PCH_TRANS_VSYNC_B           0xe1014
6393
#define _PCH_TRANS_VSYNCSHIFT_B	 0xe1028
6414
#define _PCH_TRANS_VSYNCSHIFT_B 0xe1028
6394
 
6415
 
Line 6465... Line 6486...
6465
#define  FDI_MPHY_IOSFSB_RESET_STATUS	(1<<13)
6486
#define  FDI_MPHY_IOSFSB_RESET_STATUS	(1<<13)
6466
#define  FDI_MPHY_IOSFSB_RESET_CTL	(1<<12)
6487
#define  FDI_MPHY_IOSFSB_RESET_CTL	(1<<12)
6467
#define  LPT_PWM_GRANULARITY		(1<<5)
6488
#define  LPT_PWM_GRANULARITY		(1<<5)
6468
#define  DPLS_EDP_PPS_FIX_DIS		(1<<0)
6489
#define  DPLS_EDP_PPS_FIX_DIS		(1<<0)
Line 6469... Line 6490...
6469
 
6490
 
6470
#define _FDI_RXA_CHICKEN         0xc200c
6491
#define _FDI_RXA_CHICKEN        0xc200c
6471
#define _FDI_RXB_CHICKEN         0xc2010
6492
#define _FDI_RXB_CHICKEN        0xc2010
6472
#define  FDI_RX_PHASE_SYNC_POINTER_OVR	(1<<1)
6493
#define  FDI_RX_PHASE_SYNC_POINTER_OVR	(1<<1)
6473
#define  FDI_RX_PHASE_SYNC_POINTER_EN	(1<<0)
6494
#define  FDI_RX_PHASE_SYNC_POINTER_EN	(1<<0)
Line 6474... Line 6495...
6474
#define FDI_RX_CHICKEN(pipe)	_MMIO_PIPE(pipe, _FDI_RXA_CHICKEN, _FDI_RXB_CHICKEN)
6495
#define FDI_RX_CHICKEN(pipe)	_MMIO_PIPE(pipe, _FDI_RXA_CHICKEN, _FDI_RXB_CHICKEN)
Line 6478... Line 6499...
6478
#define  PCH_DPLSUNIT_CLOCK_GATE_DISABLE (1<<29)
6499
#define  PCH_DPLSUNIT_CLOCK_GATE_DISABLE (1<<29)
6479
#define  PCH_CPUNIT_CLOCK_GATE_DISABLE (1<<14)
6500
#define  PCH_CPUNIT_CLOCK_GATE_DISABLE (1<<14)
6480
#define  PCH_LP_PARTITION_LEVEL_DISABLE  (1<<12)
6501
#define  PCH_LP_PARTITION_LEVEL_DISABLE  (1<<12)
Line 6481... Line 6502...
6481
 
6502
 
6482
/* CPU: FDI_TX */
6503
/* CPU: FDI_TX */
6483
#define _FDI_TXA_CTL             0x60100
6504
#define _FDI_TXA_CTL            0x60100
6484
#define _FDI_TXB_CTL             0x61100
6505
#define _FDI_TXB_CTL            0x61100
6485
#define FDI_TX_CTL(pipe)	_MMIO_PIPE(pipe, _FDI_TXA_CTL, _FDI_TXB_CTL)
6506
#define FDI_TX_CTL(pipe)	_MMIO_PIPE(pipe, _FDI_TXA_CTL, _FDI_TXB_CTL)
6486
#define  FDI_TX_DISABLE         (0<<31)
6507
#define  FDI_TX_DISABLE         (0<<31)
6487
#define  FDI_TX_ENABLE          (1<<31)
6508
#define  FDI_TX_ENABLE          (1<<31)
6488
#define  FDI_LINK_TRAIN_PATTERN_1       (0<<28)
6509
#define  FDI_LINK_TRAIN_PATTERN_1       (0<<28)
Line 6568... Line 6589...
6568
#define  FDI_RX_TP1_TO_TP2_48		(2<<20)
6589
#define  FDI_RX_TP1_TO_TP2_48		(2<<20)
6569
#define  FDI_RX_TP1_TO_TP2_64		(3<<20)
6590
#define  FDI_RX_TP1_TO_TP2_64		(3<<20)
6570
#define  FDI_RX_FDI_DELAY_90		(0x90<<0)
6591
#define  FDI_RX_FDI_DELAY_90		(0x90<<0)
6571
#define FDI_RX_MISC(pipe)	_MMIO_PIPE(pipe, _FDI_RXA_MISC, _FDI_RXB_MISC)
6592
#define FDI_RX_MISC(pipe)	_MMIO_PIPE(pipe, _FDI_RXA_MISC, _FDI_RXB_MISC)
Line 6572... Line 6593...
6572
 
6593
 
6573
#define _FDI_RXA_TUSIZE1         0xf0030
6594
#define _FDI_RXA_TUSIZE1        0xf0030
6574
#define _FDI_RXA_TUSIZE2         0xf0038
6595
#define _FDI_RXA_TUSIZE2        0xf0038
6575
#define _FDI_RXB_TUSIZE1         0xf1030
6596
#define _FDI_RXB_TUSIZE1        0xf1030
6576
#define _FDI_RXB_TUSIZE2         0xf1038
6597
#define _FDI_RXB_TUSIZE2        0xf1038
6577
#define FDI_RX_TUSIZE1(pipe)	_MMIO_PIPE(pipe, _FDI_RXA_TUSIZE1, _FDI_RXB_TUSIZE1)
6598
#define FDI_RX_TUSIZE1(pipe)	_MMIO_PIPE(pipe, _FDI_RXA_TUSIZE1, _FDI_RXB_TUSIZE1)
Line 6578... Line 6599...
6578
#define FDI_RX_TUSIZE2(pipe)	_MMIO_PIPE(pipe, _FDI_RXA_TUSIZE2, _FDI_RXB_TUSIZE2)
6599
#define FDI_RX_TUSIZE2(pipe)	_MMIO_PIPE(pipe, _FDI_RXA_TUSIZE2, _FDI_RXB_TUSIZE2)
6579
 
6600
 
Line 6588... Line 6609...
6588
#define FDI_RX_HDCP_LINK_FAIL           (1<<3)
6609
#define FDI_RX_HDCP_LINK_FAIL           (1<<3)
6589
#define FDI_RX_PIXEL_FIFO_OVERFLOW      (1<<2)
6610
#define FDI_RX_PIXEL_FIFO_OVERFLOW      (1<<2)
6590
#define FDI_RX_CROSS_CLOCK_OVERFLOW     (1<<1)
6611
#define FDI_RX_CROSS_CLOCK_OVERFLOW     (1<<1)
6591
#define FDI_RX_SYMBOL_QUEUE_OVERFLOW    (1<<0)
6612
#define FDI_RX_SYMBOL_QUEUE_OVERFLOW    (1<<0)
Line 6592... Line 6613...
6592
 
6613
 
6593
#define _FDI_RXA_IIR             0xf0014
6614
#define _FDI_RXA_IIR            0xf0014
6594
#define _FDI_RXA_IMR             0xf0018
6615
#define _FDI_RXA_IMR            0xf0018
6595
#define _FDI_RXB_IIR             0xf1014
6616
#define _FDI_RXB_IIR            0xf1014
6596
#define _FDI_RXB_IMR             0xf1018
6617
#define _FDI_RXB_IMR            0xf1018
6597
#define FDI_RX_IIR(pipe)	_MMIO_PIPE(pipe, _FDI_RXA_IIR, _FDI_RXB_IIR)
6618
#define FDI_RX_IIR(pipe)	_MMIO_PIPE(pipe, _FDI_RXA_IIR, _FDI_RXB_IIR)
Line 6598... Line 6619...
6598
#define FDI_RX_IMR(pipe)	_MMIO_PIPE(pipe, _FDI_RXA_IMR, _FDI_RXB_IMR)
6619
#define FDI_RX_IMR(pipe)	_MMIO_PIPE(pipe, _FDI_RXA_IMR, _FDI_RXB_IMR)
6599
 
6620
 
Line 6771... Line 6792...
6771
 
6792
 
Line 6772... Line 6793...
6772
#define  EDP_LINK_TRAIN_VOL_EMP_MASK_IVB	(0x3f<<22)
6793
#define  EDP_LINK_TRAIN_VOL_EMP_MASK_IVB	(0x3f<<22)
Line -... Line 6794...
-
 
6794
 
-
 
6795
#define  VLV_PMWGICZ				_MMIO(0x1300a4)
-
 
6796
 
-
 
6797
#define  RC6_LOCATION				_MMIO(0xD40)
-
 
6798
#define	   RC6_CTX_IN_DRAM			(1 << 0)
-
 
6799
#define  RC6_CTX_BASE				_MMIO(0xD48)
-
 
6800
#define    RC6_CTX_BASE_MASK			0xFFFFFFF0
-
 
6801
#define  PWRCTX_MAXCNT_RCSUNIT			_MMIO(0x2054)
-
 
6802
#define  PWRCTX_MAXCNT_VCSUNIT0			_MMIO(0x12054)
-
 
6803
#define  PWRCTX_MAXCNT_BCSUNIT			_MMIO(0x22054)
6773
 
6804
#define  PWRCTX_MAXCNT_VECSUNIT			_MMIO(0x1A054)
6774
#define  VLV_PMWGICZ				_MMIO(0x1300a4)
6805
#define  PWRCTX_MAXCNT_VCSUNIT1			_MMIO(0x1C054)
6775
 
6806
#define    IDLE_TIME_MASK			0xFFFFF
6776
#define  FORCEWAKE				_MMIO(0xA18C)
6807
#define  FORCEWAKE				_MMIO(0xA18C)
6777
#define  FORCEWAKE_VLV				_MMIO(0x1300b0)
6808
#define  FORCEWAKE_VLV				_MMIO(0x1300b0)
Line 6909... Line 6940...
6909
#define GEN6_RP_IDLE_HYSTERSIS			_MMIO(0xA070)
6940
#define GEN6_RP_IDLE_HYSTERSIS			_MMIO(0xA070)
6910
#define GEN6_RPDEUHWTC				_MMIO(0xA080)
6941
#define GEN6_RPDEUHWTC				_MMIO(0xA080)
6911
#define GEN6_RPDEUC				_MMIO(0xA084)
6942
#define GEN6_RPDEUC				_MMIO(0xA084)
6912
#define GEN6_RPDEUCSW				_MMIO(0xA088)
6943
#define GEN6_RPDEUCSW				_MMIO(0xA088)
6913
#define GEN6_RC_STATE				_MMIO(0xA094)
6944
#define GEN6_RC_STATE				_MMIO(0xA094)
-
 
6945
#define   RC6_STATE				(1 << 18)
6914
#define GEN6_RC1_WAKE_RATE_LIMIT		_MMIO(0xA098)
6946
#define GEN6_RC1_WAKE_RATE_LIMIT		_MMIO(0xA098)
6915
#define GEN6_RC6_WAKE_RATE_LIMIT		_MMIO(0xA09C)
6947
#define GEN6_RC6_WAKE_RATE_LIMIT		_MMIO(0xA09C)
6916
#define GEN6_RC6pp_WAKE_RATE_LIMIT		_MMIO(0xA0A0)
6948
#define GEN6_RC6pp_WAKE_RATE_LIMIT		_MMIO(0xA0A0)
6917
#define GEN6_RC_EVALUATION_INTERVAL		_MMIO(0xA0A8)
6949
#define GEN6_RC_EVALUATION_INTERVAL		_MMIO(0xA0A8)
6918
#define GEN6_RC_IDLE_HYSTERSIS			_MMIO(0xA0AC)
6950
#define GEN6_RC_IDLE_HYSTERSIS			_MMIO(0xA0AC)
Line 7113... Line 7145...
7113
#define G4X_HDMIW_HDMIEDID		_MMIO(0x6210C)
7145
#define G4X_HDMIW_HDMIEDID		_MMIO(0x6210C)
Line 7114... Line 7146...
7114
 
7146
 
7115
#define _IBX_HDMIW_HDMIEDID_A		0xE2050
7147
#define _IBX_HDMIW_HDMIEDID_A		0xE2050
7116
#define _IBX_HDMIW_HDMIEDID_B		0xE2150
7148
#define _IBX_HDMIW_HDMIEDID_B		0xE2150
7117
#define IBX_HDMIW_HDMIEDID(pipe)	_MMIO_PIPE(pipe, _IBX_HDMIW_HDMIEDID_A, \
7149
#define IBX_HDMIW_HDMIEDID(pipe)	_MMIO_PIPE(pipe, _IBX_HDMIW_HDMIEDID_A, \
7118
					_IBX_HDMIW_HDMIEDID_B)
7150
						  _IBX_HDMIW_HDMIEDID_B)
7119
#define _IBX_AUD_CNTL_ST_A		0xE20B4
7151
#define _IBX_AUD_CNTL_ST_A		0xE20B4
7120
#define _IBX_AUD_CNTL_ST_B		0xE21B4
7152
#define _IBX_AUD_CNTL_ST_B		0xE21B4
7121
#define IBX_AUD_CNTL_ST(pipe)		_MMIO_PIPE(pipe, _IBX_AUD_CNTL_ST_A, \
7153
#define IBX_AUD_CNTL_ST(pipe)		_MMIO_PIPE(pipe, _IBX_AUD_CNTL_ST_A, \
7122
					_IBX_AUD_CNTL_ST_B)
7154
						  _IBX_AUD_CNTL_ST_B)
7123
#define   IBX_ELD_BUFFER_SIZE_MASK	(0x1f << 10)
7155
#define   IBX_ELD_BUFFER_SIZE_MASK	(0x1f << 10)
7124
#define   IBX_ELD_ADDRESS_MASK		(0x1f << 5)
7156
#define   IBX_ELD_ADDRESS_MASK		(0x1f << 5)
7125
#define   IBX_ELD_ACK			(1 << 4)
7157
#define   IBX_ELD_ACK			(1 << 4)
7126
#define IBX_AUD_CNTL_ST2		_MMIO(0xE20C0)
7158
#define IBX_AUD_CNTL_ST2		_MMIO(0xE20C0)
Line 7543... Line 7575...
7543
#define  DC_STATE_EN_DC9		(1<<3)
7575
#define  DC_STATE_EN_DC9		(1<<3)
7544
#define  DC_STATE_EN_UPTO_DC6		(2<<0)
7576
#define  DC_STATE_EN_UPTO_DC6		(2<<0)
7545
#define  DC_STATE_EN_UPTO_DC5_DC6_MASK   0x3
7577
#define  DC_STATE_EN_UPTO_DC5_DC6_MASK   0x3
Line 7546... Line 7578...
7546
 
7578
 
-
 
7579
#define  DC_STATE_DEBUG                  _MMIO(0x45520)
7547
#define  DC_STATE_DEBUG                  _MMIO(0x45520)
7580
#define  DC_STATE_DEBUG_MASK_CORES	(1<<0)
Line 7548... Line 7581...
7548
#define  DC_STATE_DEBUG_MASK_MEMORY_UP	(1<<1)
7581
#define  DC_STATE_DEBUG_MASK_MEMORY_UP	(1<<1)
7549
 
7582
 
7550
/* Please see hsw_read_dcomp() and hsw_write_dcomp() before using this register,
7583
/* Please see hsw_read_dcomp() and hsw_write_dcomp() before using this register,
Line 8162... Line 8195...
8162
#define GEN9_MFX0_MOCS(i)	_MMIO(0xc900 + (i) * 4)	/* Media 0 MOCS registers */
8195
#define GEN9_MFX0_MOCS(i)	_MMIO(0xc900 + (i) * 4)	/* Media 0 MOCS registers */
8163
#define GEN9_MFX1_MOCS(i)	_MMIO(0xca00 + (i) * 4)	/* Media 1 MOCS registers */
8196
#define GEN9_MFX1_MOCS(i)	_MMIO(0xca00 + (i) * 4)	/* Media 1 MOCS registers */
8164
#define GEN9_VEBOX_MOCS(i)	_MMIO(0xcb00 + (i) * 4)	/* Video MOCS registers */
8197
#define GEN9_VEBOX_MOCS(i)	_MMIO(0xcb00 + (i) * 4)	/* Video MOCS registers */
8165
#define GEN9_BLT_MOCS(i)	_MMIO(0xcc00 + (i) * 4)	/* Blitter MOCS registers */
8198
#define GEN9_BLT_MOCS(i)	_MMIO(0xcc00 + (i) * 4)	/* Blitter MOCS registers */
Line -... Line 8199...
-
 
8199
 
-
 
8200
/* gamt regs */
-
 
8201
#define GEN8_L3_LRA_1_GPGPU _MMIO(0x4dd4)
-
 
8202
#define   GEN8_L3_LRA_1_GPGPU_DEFAULT_VALUE_BDW  0x67F1427F /* max/min for LRA1/2 */
-
 
8203
#define   GEN8_L3_LRA_1_GPGPU_DEFAULT_VALUE_CHV  0x5FF101FF /* max/min for LRA1/2 */
-
 
8204
#define   GEN9_L3_LRA_1_GPGPU_DEFAULT_VALUE_SKL  0x67F1427F /*    "        " */
-
 
8205
#define   GEN9_L3_LRA_1_GPGPU_DEFAULT_VALUE_BXT  0x5FF101FF /*    "        " */
8166
 
8206