Subversion Repositories Kolibri OS

Rev

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

Rev 2325 Rev 2342
Line 192... Line 192...
192
#define MI_SEMAPHORE_MBOX	MI_INSTR(0x16, 1) /* gen6+ */
192
#define MI_SEMAPHORE_MBOX	MI_INSTR(0x16, 1) /* gen6+ */
193
#define  MI_SEMAPHORE_GLOBAL_GTT    (1<<22)
193
#define  MI_SEMAPHORE_GLOBAL_GTT    (1<<22)
194
#define  MI_SEMAPHORE_UPDATE	    (1<<21)
194
#define  MI_SEMAPHORE_UPDATE	    (1<<21)
195
#define  MI_SEMAPHORE_COMPARE	    (1<<20)
195
#define  MI_SEMAPHORE_COMPARE	    (1<<20)
196
#define  MI_SEMAPHORE_REGISTER	    (1<<18)
196
#define  MI_SEMAPHORE_REGISTER	    (1<<18)
-
 
197
#define  MI_SEMAPHORE_SYNC_RV	    (2<<16)
-
 
198
#define  MI_SEMAPHORE_SYNC_RB	    (0<<16)
-
 
199
#define  MI_SEMAPHORE_SYNC_VR	    (0<<16)
-
 
200
#define  MI_SEMAPHORE_SYNC_VB	    (2<<16)
-
 
201
#define  MI_SEMAPHORE_SYNC_BR	    (2<<16)
-
 
202
#define  MI_SEMAPHORE_SYNC_BV	    (0<<16)
-
 
203
#define  MI_SEMAPHORE_SYNC_INVALID  (1<<0)
197
/*
204
/*
198
 * 3D instructions used by the kernel
205
 * 3D instructions used by the kernel
199
 */
206
 */
200
#define GFX_INSTR(opcode, flags) ((0x3 << 29) | ((opcode) << 24) | (flags))
207
#define GFX_INSTR(opcode, flags) ((0x3 << 29) | ((opcode) << 24) | (flags))
Line 233... Line 240...
233
#define XY_SRC_COPY_BLT_DST_TILED	(1<<11) /* 965+ only */
240
#define XY_SRC_COPY_BLT_DST_TILED	(1<<11) /* 965+ only */
234
#define CMD_OP_DISPLAYBUFFER_INFO ((0x0<<29)|(0x14<<23)|2)
241
#define CMD_OP_DISPLAYBUFFER_INFO ((0x0<<29)|(0x14<<23)|2)
235
#define   ASYNC_FLIP                (1<<22)
242
#define   ASYNC_FLIP                (1<<22)
236
#define   DISPLAY_PLANE_A           (0<<20)
243
#define   DISPLAY_PLANE_A           (0<<20)
237
#define   DISPLAY_PLANE_B           (1<<20)
244
#define   DISPLAY_PLANE_B           (1<<20)
238
#define GFX_OP_PIPE_CONTROL	((0x3<<29)|(0x3<<27)|(0x2<<24)|2)
245
#define GFX_OP_PIPE_CONTROL(len)	((0x3<<29)|(0x3<<27)|(0x2<<24)|(len-2))
-
 
246
#define   PIPE_CONTROL_CS_STALL				(1<<20)
239
#define   PIPE_CONTROL_QW_WRITE	(1<<14)
247
#define   PIPE_CONTROL_QW_WRITE	(1<<14)
240
#define   PIPE_CONTROL_DEPTH_STALL (1<<13)
248
#define   PIPE_CONTROL_DEPTH_STALL (1<<13)
241
#define   PIPE_CONTROL_WC_FLUSH	(1<<12)
249
#define   PIPE_CONTROL_WRITE_FLUSH			(1<<12)
-
 
250
#define   PIPE_CONTROL_RENDER_TARGET_CACHE_FLUSH	(1<<12) /* gen6+ */
242
#define   PIPE_CONTROL_IS_FLUSH	(1<<11) /* MBZ on Ironlake */
251
#define   PIPE_CONTROL_INSTRUCTION_CACHE_INVALIDATE	(1<<11) /* MBZ on Ironlake */
243
#define   PIPE_CONTROL_TC_FLUSH (1<<10) /* GM45+ only */
252
#define   PIPE_CONTROL_TEXTURE_CACHE_INVALIDATE		(1<<10) /* GM45+ only */
244
#define   PIPE_CONTROL_ISP_DIS	(1<<9)
253
#define   PIPE_CONTROL_INDIRECT_STATE_DISABLE		(1<<9)
245
#define   PIPE_CONTROL_NOTIFY	(1<<8)
254
#define   PIPE_CONTROL_NOTIFY	(1<<8)
-
 
255
#define   PIPE_CONTROL_VF_CACHE_INVALIDATE		(1<<4)
-
 
256
#define   PIPE_CONTROL_CONST_CACHE_INVALIDATE		(1<<3)
-
 
257
#define   PIPE_CONTROL_STATE_CACHE_INVALIDATE		(1<<2)
-
 
258
#define   PIPE_CONTROL_STALL_AT_SCOREBOARD		(1<<1)
-
 
259
#define   PIPE_CONTROL_DEPTH_CACHE_FLUSH		(1<<0)
246
#define   PIPE_CONTROL_GLOBAL_GTT (1<<2) /* in addr dword */
260
#define   PIPE_CONTROL_GLOBAL_GTT (1<<2) /* in addr dword */
247
#define   PIPE_CONTROL_STALL_EN	(1<<1) /* in addr word, Ironlake+ only */
-
 
Line 248... Line 261...
248
 
261
 
249
 
262
 
250
/*
263
/*
Line 294... Line 307...
294
#define RING_HEAD(base)		((base)+0x34)
307
#define RING_HEAD(base)		((base)+0x34)
295
#define RING_START(base)	((base)+0x38)
308
#define RING_START(base)	((base)+0x38)
296
#define RING_CTL(base)		((base)+0x3c)
309
#define RING_CTL(base)		((base)+0x3c)
297
#define RING_SYNC_0(base)	((base)+0x40)
310
#define RING_SYNC_0(base)	((base)+0x40)
298
#define RING_SYNC_1(base)	((base)+0x44)
311
#define RING_SYNC_1(base)	((base)+0x44)
-
 
312
#define GEN6_RVSYNC (RING_SYNC_0(RENDER_RING_BASE))
-
 
313
#define GEN6_RBSYNC (RING_SYNC_1(RENDER_RING_BASE))
-
 
314
#define GEN6_VRSYNC (RING_SYNC_1(GEN6_BSD_RING_BASE))
-
 
315
#define GEN6_VBSYNC (RING_SYNC_0(GEN6_BSD_RING_BASE))
-
 
316
#define GEN6_BRSYNC (RING_SYNC_0(BLT_RING_BASE))
-
 
317
#define GEN6_BVSYNC (RING_SYNC_1(BLT_RING_BASE))
299
#define RING_MAX_IDLE(base)	((base)+0x54)
318
#define RING_MAX_IDLE(base)	((base)+0x54)
300
#define RING_HWS_PGA(base)	((base)+0x80)
319
#define RING_HWS_PGA(base)	((base)+0x80)
301
#define RING_HWS_PGA_GEN6(base)	((base)+0x2080)
320
#define RING_HWS_PGA_GEN6(base)	((base)+0x2080)
302
#define RENDER_HWS_PGA_GEN7	(0x04080)
321
#define RENDER_HWS_PGA_GEN7	(0x04080)
303
#define BSD_HWS_PGA_GEN7	(0x04180)
322
#define BSD_HWS_PGA_GEN7	(0x04180)
Line 421... Line 440...
421
#define INSTPM	        0x020c0
440
#define INSTPM	        0x020c0
422
#define   INSTPM_SELF_EN (1<<12) /* 915GM only */
441
#define   INSTPM_SELF_EN (1<<12) /* 915GM only */
423
#define   INSTPM_AGPBUSY_DIS (1<<11) /* gen3: when disabled, pending interrupts
442
#define   INSTPM_AGPBUSY_DIS (1<<11) /* gen3: when disabled, pending interrupts
424
					will not assert AGPBUSY# and will only
443
					will not assert AGPBUSY# and will only
425
					be delivered when out of C3. */
444
					be delivered when out of C3. */
-
 
445
#define   INSTPM_FORCE_ORDERING				(1<<7) /* GEN6+ */
426
#define ACTHD	        0x020c8
446
#define ACTHD	        0x020c8
427
#define FW_BLC		0x020d8
447
#define FW_BLC		0x020d8
428
#define FW_BLC2		0x020dc
448
#define FW_BLC2		0x020dc
429
#define FW_BLC_SELF	0x020e0 /* 915+ only */
449
#define FW_BLC_SELF	0x020e0 /* 915+ only */
430
#define   FW_BLC_SELF_EN_MASK      (1<<31)
450
#define   FW_BLC_SELF_EN_MASK      (1<<31)
Line 1532... Line 1552...
1532
 * - pipe enabled
1552
 * - pipe enabled
1533
 * - LVDS/DVOB/DVOC on
1553
 * - LVDS/DVOB/DVOC on
1534
 */
1554
 */
1535
#define   PP_READY		(1 << 30)
1555
#define   PP_READY		(1 << 30)
1536
#define   PP_SEQUENCE_NONE	(0 << 28)
1556
#define   PP_SEQUENCE_NONE	(0 << 28)
1537
#define   PP_SEQUENCE_ON	(1 << 28)
1557
#define   PP_SEQUENCE_POWER_UP	(1 << 28)
1538
#define   PP_SEQUENCE_OFF	(2 << 28)
1558
#define   PP_SEQUENCE_POWER_DOWN (2 << 28)
1539
#define   PP_SEQUENCE_MASK	0x30000000
1559
#define   PP_SEQUENCE_MASK	(3 << 28)
-
 
1560
#define   PP_SEQUENCE_SHIFT	28
1540
#define   PP_CYCLE_DELAY_ACTIVE	(1 << 27)
1561
#define   PP_CYCLE_DELAY_ACTIVE	(1 << 27)
1541
#define   PP_SEQUENCE_STATE_ON_IDLE (1 << 3)
-
 
1542
#define   PP_SEQUENCE_STATE_MASK 0x0000000f
1562
#define   PP_SEQUENCE_STATE_MASK 0x0000000f
-
 
1563
#define   PP_SEQUENCE_STATE_OFF_IDLE	(0x0 << 0)
-
 
1564
#define   PP_SEQUENCE_STATE_OFF_S0_1	(0x1 << 0)
-
 
1565
#define   PP_SEQUENCE_STATE_OFF_S0_2	(0x2 << 0)
-
 
1566
#define   PP_SEQUENCE_STATE_OFF_S0_3	(0x3 << 0)
-
 
1567
#define   PP_SEQUENCE_STATE_ON_IDLE	(0x8 << 0)
-
 
1568
#define   PP_SEQUENCE_STATE_ON_S1_0	(0x9 << 0)
-
 
1569
#define   PP_SEQUENCE_STATE_ON_S1_2	(0xa << 0)
-
 
1570
#define   PP_SEQUENCE_STATE_ON_S1_3	(0xb << 0)
-
 
1571
#define   PP_SEQUENCE_STATE_RESET	(0xf << 0)
1543
#define PP_CONTROL	0x61204
1572
#define PP_CONTROL	0x61204
1544
#define   POWER_TARGET_ON	(1 << 0)
1573
#define   POWER_TARGET_ON	(1 << 0)
1545
#define PP_ON_DELAYS	0x61208
1574
#define PP_ON_DELAYS	0x61208
1546
#define PP_OFF_DELAYS	0x6120c
1575
#define PP_OFF_DELAYS	0x6120c
1547
#define PP_DIVISOR	0x61210
1576
#define PP_DIVISOR	0x61210
Line 2291... Line 2320...
2291
#define   PIPECONF_GAMMA		(1<<24)
2320
#define   PIPECONF_GAMMA		(1<<24)
2292
#define   PIPECONF_FORCE_BORDER	(1<<25)
2321
#define   PIPECONF_FORCE_BORDER	(1<<25)
2293
#define   PIPECONF_PROGRESSIVE	(0 << 21)
2322
#define   PIPECONF_PROGRESSIVE	(0 << 21)
2294
#define   PIPECONF_INTERLACE_W_FIELD_INDICATION	(6 << 21)
2323
#define   PIPECONF_INTERLACE_W_FIELD_INDICATION	(6 << 21)
2295
#define   PIPECONF_INTERLACE_FIELD_0_ONLY		(7 << 21)
2324
#define   PIPECONF_INTERLACE_FIELD_0_ONLY		(7 << 21)
-
 
2325
#define   PIPECONF_INTERLACE_MASK	(7 << 21)
2296
#define   PIPECONF_CXSR_DOWNCLOCK	(1<<16)
2326
#define   PIPECONF_CXSR_DOWNCLOCK	(1<<16)
2297
#define   PIPECONF_BPP_MASK	(0x000000e0)
2327
#define   PIPECONF_BPP_MASK	(0x000000e0)
2298
#define   PIPECONF_BPP_8	(0<<5)
2328
#define   PIPECONF_BPP_8	(0<<5)
2299
#define   PIPECONF_BPP_10	(1<<5)
2329
#define   PIPECONF_BPP_10	(1<<5)
2300
#define   PIPECONF_BPP_6	(2<<5)
2330
#define   PIPECONF_BPP_6	(2<<5)
Line 2414... Line 2444...
2414
#define  WM0_PIPE_SPRITE_MASK	(0x3f<<8)
2444
#define  WM0_PIPE_SPRITE_MASK	(0x3f<<8)
2415
#define  WM0_PIPE_SPRITE_SHIFT	8
2445
#define  WM0_PIPE_SPRITE_SHIFT	8
2416
#define  WM0_PIPE_CURSOR_MASK	(0x1f)
2446
#define  WM0_PIPE_CURSOR_MASK	(0x1f)
Line 2417... Line 2447...
2417
 
2447
 
-
 
2448
#define WM0_PIPEB_ILK		0x45104
2418
#define WM0_PIPEB_ILK		0x45104
2449
#define WM0_PIPEC_IVB		0x45200
2419
#define WM1_LP_ILK		0x45108
2450
#define WM1_LP_ILK		0x45108
2420
#define  WM1_LP_SR_EN		(1<<31)
2451
#define  WM1_LP_SR_EN		(1<<31)
2421
#define  WM1_LP_LATENCY_SHIFT	24
2452
#define  WM1_LP_LATENCY_SHIFT	24
2422
#define  WM1_LP_LATENCY_MASK	(0x7f<<24)
2453
#define  WM1_LP_LATENCY_MASK	(0x7f<<24)
Line 2428... Line 2459...
2428
#define WM2_LP_ILK		0x4510c
2459
#define WM2_LP_ILK		0x4510c
2429
#define  WM2_LP_EN		(1<<31)
2460
#define  WM2_LP_EN		(1<<31)
2430
#define WM3_LP_ILK		0x45110
2461
#define WM3_LP_ILK		0x45110
2431
#define  WM3_LP_EN		(1<<31)
2462
#define  WM3_LP_EN		(1<<31)
2432
#define WM1S_LP_ILK		0x45120
2463
#define WM1S_LP_ILK		0x45120
-
 
2464
#define WM2S_LP_IVB		0x45124
-
 
2465
#define WM3S_LP_IVB		0x45128
2433
#define  WM1S_LP_EN		(1<<31)
2466
#define  WM1S_LP_EN		(1<<31)
Line 2434... Line 2467...
2434
 
2467
 
2435
/* Memory latency timer register */
2468
/* Memory latency timer register */
2436
#define MLTR_ILK		0x11222
2469
#define MLTR_ILK		0x11222
Line 2552... Line 2585...
2552
#define CURSIZE			0x700a0
2585
#define CURSIZE			0x700a0
2553
#define _CURBCNTR		0x700c0
2586
#define _CURBCNTR		0x700c0
2554
#define _CURBBASE		0x700c4
2587
#define _CURBBASE		0x700c4
2555
#define _CURBPOS			0x700c8
2588
#define _CURBPOS			0x700c8
Line -... Line 2589...
-
 
2589
 
-
 
2590
#define _CURBCNTR_IVB		0x71080
-
 
2591
#define _CURBBASE_IVB		0x71084
-
 
2592
#define _CURBPOS_IVB		0x71088
2556
 
2593
 
2557
#define CURCNTR(pipe) _PIPE(pipe, _CURACNTR, _CURBCNTR)
2594
#define CURCNTR(pipe) _PIPE(pipe, _CURACNTR, _CURBCNTR)
2558
#define CURBASE(pipe) _PIPE(pipe, _CURABASE, _CURBBASE)
2595
#define CURBASE(pipe) _PIPE(pipe, _CURABASE, _CURBBASE)
Line -... Line 2596...
-
 
2596
#define CURPOS(pipe) _PIPE(pipe, _CURAPOS, _CURBPOS)
-
 
2597
 
-
 
2598
#define CURCNTR_IVB(pipe) _PIPE(pipe, _CURACNTR, _CURBCNTR_IVB)
-
 
2599
#define CURBASE_IVB(pipe) _PIPE(pipe, _CURABASE, _CURBBASE_IVB)
2559
#define CURPOS(pipe) _PIPE(pipe, _CURAPOS, _CURBPOS)
2600
#define CURPOS_IVB(pipe) _PIPE(pipe, _CURAPOS, _CURBPOS_IVB)
2560
 
2601
 
2561
/* Display A control */
2602
/* Display A control */
2562
#define _DSPACNTR                0x70180
2603
#define _DSPACNTR                0x70180
2563
#define   DISPLAY_PLANE_ENABLE			(1<<31)
2604
#define   DISPLAY_PLANE_ENABLE			(1<<31)
Line 2636... Line 2677...
2636
#define _DSPBPOS			0x7118C
2677
#define _DSPBPOS			0x7118C
2637
#define _DSPBSIZE		0x71190
2678
#define _DSPBSIZE		0x71190
2638
#define _DSPBSURF		0x7119C
2679
#define _DSPBSURF		0x7119C
2639
#define _DSPBTILEOFF		0x711A4
2680
#define _DSPBTILEOFF		0x711A4
Line -... Line 2681...
-
 
2681
 
-
 
2682
/* Sprite A control */
-
 
2683
#define _DVSACNTR		0x72180
-
 
2684
#define   DVS_ENABLE		(1<<31)
-
 
2685
#define   DVS_GAMMA_ENABLE	(1<<30)
-
 
2686
#define   DVS_PIXFORMAT_MASK	(3<<25)
-
 
2687
#define   DVS_FORMAT_YUV422	(0<<25)
-
 
2688
#define   DVS_FORMAT_RGBX101010	(1<<25)
-
 
2689
#define   DVS_FORMAT_RGBX888	(2<<25)
-
 
2690
#define   DVS_FORMAT_RGBX161616	(3<<25)
-
 
2691
#define   DVS_SOURCE_KEY	(1<<22)
-
 
2692
#define   DVS_RGB_ORDER_RGBX	(1<<20)
-
 
2693
#define   DVS_YUV_BYTE_ORDER_MASK (3<<16)
-
 
2694
#define   DVS_YUV_ORDER_YUYV	(0<<16)
-
 
2695
#define   DVS_YUV_ORDER_UYVY	(1<<16)
-
 
2696
#define   DVS_YUV_ORDER_YVYU	(2<<16)
-
 
2697
#define   DVS_YUV_ORDER_VYUY	(3<<16)
-
 
2698
#define   DVS_DEST_KEY		(1<<2)
-
 
2699
#define   DVS_TRICKLE_FEED_DISABLE (1<<14)
-
 
2700
#define   DVS_TILED		(1<<10)
-
 
2701
#define _DVSALINOFF		0x72184
-
 
2702
#define _DVSASTRIDE		0x72188
-
 
2703
#define _DVSAPOS		0x7218c
-
 
2704
#define _DVSASIZE		0x72190
-
 
2705
#define _DVSAKEYVAL		0x72194
-
 
2706
#define _DVSAKEYMSK		0x72198
-
 
2707
#define _DVSASURF		0x7219c
-
 
2708
#define _DVSAKEYMAXVAL		0x721a0
-
 
2709
#define _DVSATILEOFF		0x721a4
-
 
2710
#define _DVSASURFLIVE		0x721ac
-
 
2711
#define _DVSASCALE		0x72204
-
 
2712
#define   DVS_SCALE_ENABLE	(1<<31)
-
 
2713
#define   DVS_FILTER_MASK	(3<<29)
-
 
2714
#define   DVS_FILTER_MEDIUM	(0<<29)
-
 
2715
#define   DVS_FILTER_ENHANCING	(1<<29)
-
 
2716
#define   DVS_FILTER_SOFTENING	(2<<29)
-
 
2717
#define   DVS_VERTICAL_OFFSET_HALF (1<<28) /* must be enabled below */
-
 
2718
#define   DVS_VERTICAL_OFFSET_ENABLE (1<<27)
-
 
2719
#define _DVSAGAMC		0x72300
-
 
2720
 
-
 
2721
#define _DVSBCNTR		0x73180
-
 
2722
#define _DVSBLINOFF		0x73184
-
 
2723
#define _DVSBSTRIDE		0x73188
-
 
2724
#define _DVSBPOS		0x7318c
-
 
2725
#define _DVSBSIZE		0x73190
-
 
2726
#define _DVSBKEYVAL		0x73194
-
 
2727
#define _DVSBKEYMSK		0x73198
-
 
2728
#define _DVSBSURF		0x7319c
-
 
2729
#define _DVSBKEYMAXVAL		0x731a0
-
 
2730
#define _DVSBTILEOFF		0x731a4
-
 
2731
#define _DVSBSURFLIVE		0x731ac
-
 
2732
#define _DVSBSCALE		0x73204
-
 
2733
#define _DVSBGAMC		0x73300
-
 
2734
 
-
 
2735
#define DVSCNTR(pipe) _PIPE(pipe, _DVSACNTR, _DVSBCNTR)
-
 
2736
#define DVSLINOFF(pipe) _PIPE(pipe, _DVSALINOFF, _DVSBLINOFF)
-
 
2737
#define DVSSTRIDE(pipe) _PIPE(pipe, _DVSASTRIDE, _DVSBSTRIDE)
-
 
2738
#define DVSPOS(pipe) _PIPE(pipe, _DVSAPOS, _DVSBPOS)
-
 
2739
#define DVSSURF(pipe) _PIPE(pipe, _DVSASURF, _DVSBSURF)
-
 
2740
#define DVSKEYMAX(pipe) _PIPE(pipe, _DVSAKEYMAXVAL, _DVSBKEYMAXVAL)
-
 
2741
#define DVSSIZE(pipe) _PIPE(pipe, _DVSASIZE, _DVSBSIZE)
-
 
2742
#define DVSSCALE(pipe) _PIPE(pipe, _DVSASCALE, _DVSBSCALE)
-
 
2743
#define DVSTILEOFF(pipe) _PIPE(pipe, _DVSATILEOFF, _DVSBTILEOFF)
-
 
2744
#define DVSKEYVAL(pipe) _PIPE(pipe, _DVSAKEYVAL, _DVSBKEYVAL)
-
 
2745
#define DVSKEYMSK(pipe) _PIPE(pipe, _DVSAKEYMSK, _DVSBKEYMSK)
-
 
2746
 
-
 
2747
#define _SPRA_CTL		0x70280
-
 
2748
#define   SPRITE_ENABLE			(1<<31)
-
 
2749
#define   SPRITE_GAMMA_ENABLE		(1<<30)
-
 
2750
#define   SPRITE_PIXFORMAT_MASK		(7<<25)
-
 
2751
#define   SPRITE_FORMAT_YUV422		(0<<25)
-
 
2752
#define   SPRITE_FORMAT_RGBX101010	(1<<25)
-
 
2753
#define   SPRITE_FORMAT_RGBX888		(2<<25)
-
 
2754
#define   SPRITE_FORMAT_RGBX161616	(3<<25)
-
 
2755
#define   SPRITE_FORMAT_YUV444		(4<<25)
-
 
2756
#define   SPRITE_FORMAT_XR_BGR101010	(5<<25) /* Extended range */
-
 
2757
#define   SPRITE_CSC_ENABLE		(1<<24)
-
 
2758
#define   SPRITE_SOURCE_KEY		(1<<22)
-
 
2759
#define   SPRITE_RGB_ORDER_RGBX		(1<<20) /* only for 888 and 161616 */
-
 
2760
#define   SPRITE_YUV_TO_RGB_CSC_DISABLE	(1<<19)
-
 
2761
#define   SPRITE_YUV_CSC_FORMAT_BT709	(1<<18) /* 0 is BT601 */
-
 
2762
#define   SPRITE_YUV_BYTE_ORDER_MASK	(3<<16)
-
 
2763
#define   SPRITE_YUV_ORDER_YUYV		(0<<16)
-
 
2764
#define   SPRITE_YUV_ORDER_UYVY		(1<<16)
-
 
2765
#define   SPRITE_YUV_ORDER_YVYU		(2<<16)
-
 
2766
#define   SPRITE_YUV_ORDER_VYUY		(3<<16)
-
 
2767
#define   SPRITE_TRICKLE_FEED_DISABLE	(1<<14)
-
 
2768
#define   SPRITE_INT_GAMMA_ENABLE	(1<<13)
-
 
2769
#define   SPRITE_TILED			(1<<10)
-
 
2770
#define   SPRITE_DEST_KEY		(1<<2)
-
 
2771
#define _SPRA_LINOFF		0x70284
-
 
2772
#define _SPRA_STRIDE		0x70288
-
 
2773
#define _SPRA_POS		0x7028c
-
 
2774
#define _SPRA_SIZE		0x70290
-
 
2775
#define _SPRA_KEYVAL		0x70294
-
 
2776
#define _SPRA_KEYMSK		0x70298
-
 
2777
#define _SPRA_SURF		0x7029c
-
 
2778
#define _SPRA_KEYMAX		0x702a0
-
 
2779
#define _SPRA_TILEOFF		0x702a4
-
 
2780
#define _SPRA_SCALE		0x70304
-
 
2781
#define   SPRITE_SCALE_ENABLE	(1<<31)
-
 
2782
#define   SPRITE_FILTER_MASK	(3<<29)
-
 
2783
#define   SPRITE_FILTER_MEDIUM	(0<<29)
-
 
2784
#define   SPRITE_FILTER_ENHANCING	(1<<29)
-
 
2785
#define   SPRITE_FILTER_SOFTENING	(2<<29)
-
 
2786
#define   SPRITE_VERTICAL_OFFSET_HALF	(1<<28) /* must be enabled below */
-
 
2787
#define   SPRITE_VERTICAL_OFFSET_ENABLE	(1<<27)
-
 
2788
#define _SPRA_GAMC		0x70400
-
 
2789
 
-
 
2790
#define _SPRB_CTL		0x71280
-
 
2791
#define _SPRB_LINOFF		0x71284
-
 
2792
#define _SPRB_STRIDE		0x71288
-
 
2793
#define _SPRB_POS		0x7128c
-
 
2794
#define _SPRB_SIZE		0x71290
-
 
2795
#define _SPRB_KEYVAL		0x71294
-
 
2796
#define _SPRB_KEYMSK		0x71298
-
 
2797
#define _SPRB_SURF		0x7129c
-
 
2798
#define _SPRB_KEYMAX		0x712a0
-
 
2799
#define _SPRB_TILEOFF		0x712a4
-
 
2800
#define _SPRB_SCALE		0x71304
-
 
2801
#define _SPRB_GAMC		0x71400
-
 
2802
 
-
 
2803
#define SPRCTL(pipe) _PIPE(pipe, _SPRA_CTL, _SPRB_CTL)
-
 
2804
#define SPRLINOFF(pipe) _PIPE(pipe, _SPRA_LINOFF, _SPRB_LINOFF)
-
 
2805
#define SPRSTRIDE(pipe) _PIPE(pipe, _SPRA_STRIDE, _SPRB_STRIDE)
-
 
2806
#define SPRPOS(pipe) _PIPE(pipe, _SPRA_POS, _SPRB_POS)
-
 
2807
#define SPRSIZE(pipe) _PIPE(pipe, _SPRA_SIZE, _SPRB_SIZE)
-
 
2808
#define SPRKEYVAL(pipe) _PIPE(pipe, _SPRA_KEYVAL, _SPRB_KEYVAL)
-
 
2809
#define SPRKEYMSK(pipe) _PIPE(pipe, _SPRA_KEYMSK, _SPRB_KEYMSK)
-
 
2810
#define SPRSURF(pipe) _PIPE(pipe, _SPRA_SURF, _SPRB_SURF)
-
 
2811
#define SPRKEYMAX(pipe) _PIPE(pipe, _SPRA_KEYMAX, _SPRB_KEYMAX)
-
 
2812
#define SPRTILEOFF(pipe) _PIPE(pipe, _SPRA_TILEOFF, _SPRB_TILEOFF)
-
 
2813
#define SPRSCALE(pipe) _PIPE(pipe, _SPRA_SCALE, _SPRB_SCALE)
-
 
2814
#define SPRGAMC(pipe) _PIPE(pipe, _SPRA_GAMC, _SPRB_GAMC)
2640
 
2815
 
2641
/* VBIOS regs */
2816
/* VBIOS regs */
2642
#define VGACNTRL		0x71400
2817
#define VGACNTRL		0x71400
2643
# define VGA_DISP_DISABLE			(1 << 31)
2818
# define VGA_DISP_DISABLE			(1 << 31)
2644
# define VGA_2X_MODE				(1 << 30)
2819
# define VGA_2X_MODE				(1 << 30)
Line 2843... Line 3018...
2843
/* According to spec this bit 7/8/9 of 0x42020 should be set to enable FBC */
3018
/* According to spec this bit 7/8/9 of 0x42020 should be set to enable FBC */
2844
#define   ILK_CLK_FBC		(1<<7)
3019
#define   ILK_CLK_FBC		(1<<7)
2845
#define   ILK_DPFC_DIS1		(1<<8)
3020
#define   ILK_DPFC_DIS1		(1<<8)
2846
#define   ILK_DPFC_DIS2		(1<<9)
3021
#define   ILK_DPFC_DIS2		(1<<9)
Line -... Line 3022...
-
 
3022
 
-
 
3023
#define IVB_CHICKEN3	0x4200c
-
 
3024
# define CHICKEN3_DGMG_REQ_OUT_FIX_DISABLE	(1 << 5)
-
 
3025
# define CHICKEN3_DGMG_DONE_FIX_DISABLE		(1 << 2)
2847
 
3026
 
2848
#define DISP_ARB_CTL	0x45000
3027
#define DISP_ARB_CTL	0x45000
2849
#define  DISP_TILE_SURFACE_SWIZZLING	(1<<13)
3028
#define  DISP_TILE_SURFACE_SWIZZLING	(1<<13)
Line 2850... Line 3029...
2850
#define  DISP_FBC_WM_DIS		(1<<15)
3029
#define  DISP_FBC_WM_DIS		(1<<15)
Line 2901... Line 3080...
2901
#define SDEIMR  0xc4004
3080
#define SDEIMR  0xc4004
2902
#define SDEIIR  0xc4008
3081
#define SDEIIR  0xc4008
2903
#define SDEIER  0xc400c
3082
#define SDEIER  0xc400c
Line 2904... Line 3083...
2904
 
3083
 
2905
/* digital port hotplug */
3084
/* digital port hotplug */
2906
#define PCH_PORT_HOTPLUG        0xc4030
3085
#define PCH_PORT_HOTPLUG        0xc4030		/* SHOTPLUG_CTL */
2907
#define PORTD_HOTPLUG_ENABLE            (1 << 20)
3086
#define PORTD_HOTPLUG_ENABLE            (1 << 20)
2908
#define PORTD_PULSE_DURATION_2ms        (0)
3087
#define PORTD_PULSE_DURATION_2ms        (0)
2909
#define PORTD_PULSE_DURATION_4_5ms      (1 << 18)
3088
#define PORTD_PULSE_DURATION_4_5ms      (1 << 18)
2910
#define PORTD_PULSE_DURATION_6ms        (2 << 18)
3089
#define PORTD_PULSE_DURATION_6ms        (2 << 18)
-
 
3090
#define PORTD_PULSE_DURATION_100ms      (3 << 18)
2911
#define PORTD_PULSE_DURATION_100ms      (3 << 18)
3091
#define PORTD_PULSE_DURATION_MASK	(3 << 18)
2912
#define PORTD_HOTPLUG_NO_DETECT         (0)
3092
#define PORTD_HOTPLUG_NO_DETECT         (0)
2913
#define PORTD_HOTPLUG_SHORT_DETECT      (1 << 16)
3093
#define PORTD_HOTPLUG_SHORT_DETECT      (1 << 16)
2914
#define PORTD_HOTPLUG_LONG_DETECT       (1 << 17)
3094
#define PORTD_HOTPLUG_LONG_DETECT       (1 << 17)
2915
#define PORTC_HOTPLUG_ENABLE            (1 << 12)
3095
#define PORTC_HOTPLUG_ENABLE            (1 << 12)
2916
#define PORTC_PULSE_DURATION_2ms        (0)
3096
#define PORTC_PULSE_DURATION_2ms        (0)
2917
#define PORTC_PULSE_DURATION_4_5ms      (1 << 10)
3097
#define PORTC_PULSE_DURATION_4_5ms      (1 << 10)
2918
#define PORTC_PULSE_DURATION_6ms        (2 << 10)
3098
#define PORTC_PULSE_DURATION_6ms        (2 << 10)
-
 
3099
#define PORTC_PULSE_DURATION_100ms      (3 << 10)
2919
#define PORTC_PULSE_DURATION_100ms      (3 << 10)
3100
#define PORTC_PULSE_DURATION_MASK	(3 << 10)
2920
#define PORTC_HOTPLUG_NO_DETECT         (0)
3101
#define PORTC_HOTPLUG_NO_DETECT         (0)
2921
#define PORTC_HOTPLUG_SHORT_DETECT      (1 << 8)
3102
#define PORTC_HOTPLUG_SHORT_DETECT      (1 << 8)
2922
#define PORTC_HOTPLUG_LONG_DETECT       (1 << 9)
3103
#define PORTC_HOTPLUG_LONG_DETECT       (1 << 9)
2923
#define PORTB_HOTPLUG_ENABLE            (1 << 4)
3104
#define PORTB_HOTPLUG_ENABLE            (1 << 4)
2924
#define PORTB_PULSE_DURATION_2ms        (0)
3105
#define PORTB_PULSE_DURATION_2ms        (0)
2925
#define PORTB_PULSE_DURATION_4_5ms      (1 << 2)
3106
#define PORTB_PULSE_DURATION_4_5ms      (1 << 2)
2926
#define PORTB_PULSE_DURATION_6ms        (2 << 2)
3107
#define PORTB_PULSE_DURATION_6ms        (2 << 2)
-
 
3108
#define PORTB_PULSE_DURATION_100ms      (3 << 2)
2927
#define PORTB_PULSE_DURATION_100ms      (3 << 2)
3109
#define PORTB_PULSE_DURATION_MASK	(3 << 2)
2928
#define PORTB_HOTPLUG_NO_DETECT         (0)
3110
#define PORTB_HOTPLUG_NO_DETECT         (0)
2929
#define PORTB_HOTPLUG_SHORT_DETECT      (1 << 0)
3111
#define PORTB_HOTPLUG_SHORT_DETECT      (1 << 0)
Line 2930... Line 3112...
2930
#define PORTB_HOTPLUG_LONG_DETECT       (1 << 1)
3112
#define PORTB_HOTPLUG_LONG_DETECT       (1 << 1)
Line 2943... Line 3125...
2943
#define PCH_GMBUS4		0xc5110
3125
#define PCH_GMBUS4		0xc5110
2944
#define PCH_GMBUS5		0xc5120
3126
#define PCH_GMBUS5		0xc5120
Line 2945... Line 3127...
2945
 
3127
 
2946
#define _PCH_DPLL_A              0xc6014
3128
#define _PCH_DPLL_A              0xc6014
2947
#define _PCH_DPLL_B              0xc6018
3129
#define _PCH_DPLL_B              0xc6018
Line 2948... Line 3130...
2948
#define PCH_DPLL(pipe) _PIPE(pipe, _PCH_DPLL_A, _PCH_DPLL_B)
3130
#define PCH_DPLL(pipe) (pipe == 0 ?  _PCH_DPLL_A : _PCH_DPLL_B)
2949
 
3131
 
2950
#define _PCH_FPA0                0xc6040
3132
#define _PCH_FPA0                0xc6040
2951
#define  FP_CB_TUNE		(0x3<<22)
3133
#define  FP_CB_TUNE		(0x3<<22)
2952
#define _PCH_FPA1                0xc6044
3134
#define _PCH_FPA1                0xc6044
2953
#define _PCH_FPB0                0xc6048
3135
#define _PCH_FPB0                0xc6048
2954
#define _PCH_FPB1                0xc604c
3136
#define _PCH_FPB1                0xc604c
Line 2955... Line 3137...
2955
#define PCH_FP0(pipe) _PIPE(pipe, _PCH_FPA0, _PCH_FPB0)
3137
#define PCH_FP0(pipe) (pipe == 0 ? _PCH_FPA0 : _PCH_FPB0)
Line 2956... Line 3138...
2956
#define PCH_FP1(pipe) _PIPE(pipe, _PCH_FPA1, _PCH_FPB1)
3138
#define PCH_FP1(pipe) (pipe == 0 ? _PCH_FPA1 : _PCH_FPB1)
2957
 
3139
 
Line 3165... Line 3347...
3165
#define  FDI_LINK_TRAIN_PATTERN_2_IVB       (1<<8)
3347
#define  FDI_LINK_TRAIN_PATTERN_2_IVB       (1<<8)
3166
#define  FDI_LINK_TRAIN_PATTERN_IDLE_IVB    (2<<8)
3348
#define  FDI_LINK_TRAIN_PATTERN_IDLE_IVB    (2<<8)
3167
#define  FDI_LINK_TRAIN_NONE_IVB            (3<<8)
3349
#define  FDI_LINK_TRAIN_NONE_IVB            (3<<8)
Line 3168... Line 3350...
3168
 
3350
 
-
 
3351
/* both Tx and Rx */
3169
/* both Tx and Rx */
3352
#define  FDI_COMPOSITE_SYNC		(1<<11)
3170
#define  FDI_LINK_TRAIN_AUTO		(1<<10)
3353
#define  FDI_LINK_TRAIN_AUTO		(1<<10)
3171
#define  FDI_SCRAMBLING_ENABLE          (0<<7)
3354
#define  FDI_SCRAMBLING_ENABLE          (0<<7)
Line 3172... Line 3355...
3172
#define  FDI_SCRAMBLING_DISABLE         (1<<7)
3355
#define  FDI_SCRAMBLING_DISABLE         (1<<7)
Line 3260... Line 3443...
3260
#define  ADPA_CRT_HOTPLUG_FORCE_TRIGGER (1<<16)
3443
#define  ADPA_CRT_HOTPLUG_FORCE_TRIGGER (1<<16)
Line 3261... Line 3444...
3261
 
3444
 
3262
/* or SDVOB */
3445
/* or SDVOB */
3263
#define HDMIB   0xe1140
3446
#define HDMIB   0xe1140
3264
#define  PORT_ENABLE    (1 << 31)
-
 
3265
#define  TRANSCODER_A   (0)
-
 
3266
#define  TRANSCODER_B   (1 << 30)
3447
#define  PORT_ENABLE    (1 << 31)
-
 
3448
#define  TRANSCODER(pipe)	((pipe) << 30)
3267
#define  TRANSCODER(pipe)	((pipe) << 30)
3449
#define  TRANSCODER_CPT(pipe)   ((pipe) << 29)
-
 
3450
#define  TRANSCODER_MASK   (1 << 30)
3268
#define  TRANSCODER_MASK   (1 << 30)
3451
#define  TRANSCODER_MASK_CPT    (3 << 29)
3269
#define  COLOR_FORMAT_8bpc      (0)
3452
#define  COLOR_FORMAT_8bpc      (0)
3270
#define  COLOR_FORMAT_12bpc     (3 << 26)
3453
#define  COLOR_FORMAT_12bpc     (3 << 26)
3271
#define  SDVOB_HOTPLUG_ENABLE   (1 << 23)
3454
#define  SDVOB_HOTPLUG_ENABLE   (1 << 23)
3272
#define  SDVO_ENCODING          (0)
3455
#define  SDVO_ENCODING          (0)
Line 3306... Line 3489...
3306
#define BLC_PWM_PCH_CTL2	0xc8254
3489
#define BLC_PWM_PCH_CTL2	0xc8254
Line 3307... Line 3490...
3307
 
3490
 
3308
#define PCH_PP_STATUS		0xc7200
3491
#define PCH_PP_STATUS		0xc7200
3309
#define PCH_PP_CONTROL		0xc7204
3492
#define PCH_PP_CONTROL		0xc7204
-
 
3493
#define  PANEL_UNLOCK_REGS	(0xabcd << 16)
3310
#define  PANEL_UNLOCK_REGS	(0xabcd << 16)
3494
#define  PANEL_UNLOCK_MASK	(0xffff << 16)
3311
#define  EDP_FORCE_VDD		(1 << 3)
3495
#define  EDP_FORCE_VDD		(1 << 3)
3312
#define  EDP_BLC_ENABLE		(1 << 2)
3496
#define  EDP_BLC_ENABLE		(1 << 2)
3313
#define  PANEL_POWER_RESET	(1 << 1)
3497
#define  PANEL_POWER_RESET	(1 << 1)
3314
#define  PANEL_POWER_OFF	(0 << 0)
3498
#define  PANEL_POWER_OFF	(0 << 0)
3315
#define  PANEL_POWER_ON		(1 << 0)
3499
#define  PANEL_POWER_ON		(1 << 0)
-
 
3500
#define PCH_PP_ON_DELAYS	0xc7208
-
 
3501
#define  PANEL_PORT_SELECT_MASK	(3 << 30)
-
 
3502
#define  PANEL_PORT_SELECT_LVDS	(0 << 30)
3316
#define PCH_PP_ON_DELAYS	0xc7208
3503
#define  PANEL_PORT_SELECT_DPA	(1 << 30)
-
 
3504
#define  EDP_PANEL		(1 << 30)
-
 
3505
#define  PANEL_PORT_SELECT_DPC	(2 << 30)
-
 
3506
#define  PANEL_PORT_SELECT_DPD	(3 << 30)
-
 
3507
#define  PANEL_POWER_UP_DELAY_MASK	(0x1fff0000)
-
 
3508
#define  PANEL_POWER_UP_DELAY_SHIFT	16
-
 
3509
#define  PANEL_LIGHT_ON_DELAY_MASK	(0x1fff)
-
 
3510
#define  PANEL_LIGHT_ON_DELAY_SHIFT	0
3317
#define  EDP_PANEL		(1 << 30)
3511
 
-
 
3512
#define PCH_PP_OFF_DELAYS	0xc720c
-
 
3513
#define  PANEL_POWER_DOWN_DELAY_MASK	(0x1fff0000)
-
 
3514
#define  PANEL_POWER_DOWN_DELAY_SHIFT	16
-
 
3515
#define  PANEL_LIGHT_OFF_DELAY_MASK	(0x1fff)
-
 
3516
#define  PANEL_LIGHT_OFF_DELAY_SHIFT	0
3318
#define PCH_PP_OFF_DELAYS	0xc720c
3517
 
-
 
3518
#define PCH_PP_DIVISOR		0xc7210
-
 
3519
#define  PP_REFERENCE_DIVIDER_MASK	(0xffffff00)
-
 
3520
#define  PP_REFERENCE_DIVIDER_SHIFT	8
-
 
3521
#define  PANEL_POWER_CYCLE_DELAY_MASK	(0x1f)
Line 3319... Line 3522...
3319
#define PCH_PP_DIVISOR		0xc7210
3522
#define  PANEL_POWER_CYCLE_DELAY_SHIFT	0
3320
 
3523
 
3321
#define PCH_DP_B		0xe4100
3524
#define PCH_DP_B		0xe4100
3322
#define PCH_DPB_AUX_CH_CTL	0xe4110
3525
#define PCH_DPB_AUX_CH_CTL	0xe4110
Line 3384... Line 3587...
3384
#define  EDP_LINK_TRAIN_400_600MV_6DB_SNB_B	(0x3a<<22)
3587
#define  EDP_LINK_TRAIN_400_600MV_6DB_SNB_B	(0x3a<<22)
3385
#define  EDP_LINK_TRAIN_600_800MV_3_5DB_SNB_B	(0x39<<22)
3588
#define  EDP_LINK_TRAIN_600_800MV_3_5DB_SNB_B	(0x39<<22)
3386
#define  EDP_LINK_TRAIN_800_1200MV_0DB_SNB_B	(0x38<<22)
3589
#define  EDP_LINK_TRAIN_800_1200MV_0DB_SNB_B	(0x38<<22)
3387
#define  EDP_LINK_TRAIN_VOL_EMP_MASK_SNB	(0x3f<<22)
3590
#define  EDP_LINK_TRAIN_VOL_EMP_MASK_SNB	(0x3f<<22)
Line -... Line 3591...
-
 
3591
 
-
 
3592
/* IVB */
-
 
3593
#define EDP_LINK_TRAIN_400MV_0DB_IVB		(0x24 <<22)
-
 
3594
#define EDP_LINK_TRAIN_400MV_3_5DB_IVB		(0x2a <<22)
-
 
3595
#define EDP_LINK_TRAIN_400MV_6DB_IVB		(0x2f <<22)
-
 
3596
#define EDP_LINK_TRAIN_600MV_0DB_IVB		(0x30 <<22)
-
 
3597
#define EDP_LINK_TRAIN_600MV_3_5DB_IVB		(0x36 <<22)
-
 
3598
#define EDP_LINK_TRAIN_800MV_0DB_IVB		(0x38 <<22)
-
 
3599
#define EDP_LINK_TRAIN_800MV_3_5DB_IVB		(0x33 <<22)
-
 
3600
 
-
 
3601
/* legacy values */
-
 
3602
#define EDP_LINK_TRAIN_500MV_0DB_IVB		(0x00 <<22)
-
 
3603
#define EDP_LINK_TRAIN_1000MV_0DB_IVB		(0x20 <<22)
-
 
3604
#define EDP_LINK_TRAIN_500MV_3_5DB_IVB		(0x02 <<22)
-
 
3605
#define EDP_LINK_TRAIN_1000MV_3_5DB_IVB		(0x22 <<22)
-
 
3606
#define EDP_LINK_TRAIN_1000MV_6DB_IVB		(0x23 <<22)
-
 
3607
 
-
 
3608
#define  EDP_LINK_TRAIN_VOL_EMP_MASK_IVB	(0x3f<<22)
3388
 
3609
 
3389
#define  FORCEWAKE				0xA18C
3610
#define  FORCEWAKE				0xA18C
-
 
3611
#define  FORCEWAKE_ACK				0x130090
-
 
3612
#define  FORCEWAKE_MT				0xa188 /* multi-threaded */
-
 
3613
#define  FORCEWAKE_MT_ACK			0x130040
-
 
3614
#define  ECOBUS					0xa180
Line 3390... Line 3615...
3390
#define  FORCEWAKE_ACK				0x130090
3615
#define    FORCEWAKE_MT_ENABLE			(1<<5)
3391
 
3616
 
Line -... Line 3617...
-
 
3617
#define  GT_FIFO_FREE_ENTRIES			0x120008
-
 
3618
#define    GT_FIFO_NUM_RESERVED_ENTRIES		20
-
 
3619
 
-
 
3620
#define GEN6_UCGCTL2				0x9404
3392
#define  GT_FIFO_FREE_ENTRIES			0x120008
3621
# define GEN6_RCPBUNIT_CLOCK_GATE_DISABLE		(1 << 12)
3393
#define    GT_FIFO_NUM_RESERVED_ENTRIES		20
3622
# define GEN6_RCCUNIT_CLOCK_GATE_DISABLE		(1 << 11)
3394
 
3623
 
3395
#define GEN6_RPNSWREQ				0xA008
3624
#define GEN6_RPNSWREQ				0xA008
3396
#define   GEN6_TURBO_DISABLE			(1<<31)
3625
#define   GEN6_TURBO_DISABLE			(1<<31)
Line 3411... Line 3640...
3411
#define GEN6_RPSTAT1				0xA01C
3640
#define GEN6_RPSTAT1				0xA01C
3412
#define   GEN6_CAGF_SHIFT			8
3641
#define   GEN6_CAGF_SHIFT			8
3413
#define   GEN6_CAGF_MASK			(0x7f << GEN6_CAGF_SHIFT)
3642
#define   GEN6_CAGF_MASK			(0x7f << GEN6_CAGF_SHIFT)
3414
#define GEN6_RP_CONTROL				0xA024
3643
#define GEN6_RP_CONTROL				0xA024
3415
#define   GEN6_RP_MEDIA_TURBO			(1<<11)
3644
#define   GEN6_RP_MEDIA_TURBO			(1<<11)
-
 
3645
#define   GEN6_RP_MEDIA_MODE_MASK		(3<<9)
-
 
3646
#define   GEN6_RP_MEDIA_HW_TURBO_MODE		(3<<9)
3416
#define   GEN6_RP_USE_NORMAL_FREQ		(1<<9)
3647
#define   GEN6_RP_MEDIA_HW_NORMAL_MODE		(2<<9)
-
 
3648
#define   GEN6_RP_MEDIA_HW_MODE			(1<<9)
-
 
3649
#define   GEN6_RP_MEDIA_SW_MODE			(0<<9)
3417
#define   GEN6_RP_MEDIA_IS_GFX			(1<<8)
3650
#define   GEN6_RP_MEDIA_IS_GFX			(1<<8)
3418
#define   GEN6_RP_ENABLE			(1<<7)
3651
#define   GEN6_RP_ENABLE			(1<<7)
3419
#define   GEN6_RP_UP_IDLE_MIN			(0x1<<3)
3652
#define   GEN6_RP_UP_IDLE_MIN			(0x1<<3)
3420
#define   GEN6_RP_UP_BUSY_AVG			(0x2<<3)
3653
#define   GEN6_RP_UP_BUSY_AVG			(0x2<<3)
3421
#define   GEN6_RP_UP_BUSY_CONT			(0x4<<3)
3654
#define   GEN6_RP_UP_BUSY_CONT			(0x4<<3)
Line 3468... Line 3701...
3468
#define   GEN6_PCODE_WRITE_MIN_FREQ_TABLE	0x8
3701
#define   GEN6_PCODE_WRITE_MIN_FREQ_TABLE	0x8
3469
#define   GEN6_PCODE_READ_MIN_FREQ_TABLE	0x9
3702
#define   GEN6_PCODE_READ_MIN_FREQ_TABLE	0x9
3470
#define GEN6_PCODE_DATA				0x138128
3703
#define GEN6_PCODE_DATA				0x138128
3471
#define   GEN6_PCODE_FREQ_IA_RATIO_SHIFT	8
3704
#define   GEN6_PCODE_FREQ_IA_RATIO_SHIFT	8
Line -... Line 3705...
-
 
3705
 
-
 
3706
#define GEN6_GT_CORE_STATUS		0x138060
-
 
3707
#define   GEN6_CORE_CPD_STATE_MASK	(7<<4)
-
 
3708
#define   GEN6_RCn_MASK			7
-
 
3709
#define   GEN6_RC0			0
-
 
3710
#define   GEN6_RC3			2
-
 
3711
#define   GEN6_RC6			3
-
 
3712
#define   GEN6_RC7			4
-
 
3713
 
-
 
3714
#define G4X_AUD_VID_DID			0x62020
-
 
3715
#define INTEL_AUDIO_DEVCL		0x808629FB
-
 
3716
#define INTEL_AUDIO_DEVBLC		0x80862801
-
 
3717
#define INTEL_AUDIO_DEVCTG		0x80862802
-
 
3718
 
-
 
3719
#define G4X_AUD_CNTL_ST			0x620B4
-
 
3720
#define G4X_ELDV_DEVCL_DEVBLC		(1 << 13)
-
 
3721
#define G4X_ELDV_DEVCTG			(1 << 14)
-
 
3722
#define G4X_ELD_ADDR			(0xf << 5)
-
 
3723
#define G4X_ELD_ACK			(1 << 4)
-
 
3724
#define G4X_HDMIW_HDMIEDID		0x6210C
-
 
3725
 
-
 
3726
#define IBX_HDMIW_HDMIEDID_A		0xE2050
-
 
3727
#define IBX_AUD_CNTL_ST_A		0xE20B4
-
 
3728
#define IBX_ELD_BUFFER_SIZE		(0x1f << 10)
-
 
3729
#define IBX_ELD_ADDRESS			(0x1f << 5)
-
 
3730
#define IBX_ELD_ACK			(1 << 4)
-
 
3731
#define IBX_AUD_CNTL_ST2		0xE20C0
-
 
3732
#define IBX_ELD_VALIDB			(1 << 0)
-
 
3733
#define IBX_CP_READYB			(1 << 1)
-
 
3734
 
-
 
3735
#define CPT_HDMIW_HDMIEDID_A		0xE5050
-
 
3736
#define CPT_AUD_CNTL_ST_A		0xE50B4
-
 
3737
#define CPT_AUD_CNTRL_ST2		0xE50C0
-
 
3738
 
-
 
3739
/* These are the 4 32-bit write offset registers for each stream
-
 
3740
 * output buffer.  It determines the offset from the
-
 
3741
 * 3DSTATE_SO_BUFFERs that the next streamed vertex output goes to.
-
 
3742
 */
-
 
3743
#define GEN7_SO_WRITE_OFFSET(n)		(0x5280 + (n) * 4)
3472
 
3744