Lines Matching +full:1 +full:x

55 #define 	ENABLE_TC128					(1 << 30)
60 #define BACKEND_DISABLE(x) ((x) << 16) argument
63 #define S_028808_SPECIAL_OP(x) (((x) & 0x7) << 4) argument
64 #define G_028808_SPECIAL_OP(x) (((x) >> 4) & 0x7) argument
83 #define S_028080_SLICE_START(x) (((x) & 0x7FF) << 0) argument
84 #define G_028080_SLICE_START(x) (((x) >> 0) & 0x7FF) argument
86 #define S_028080_SLICE_MAX(x) (((x) & 0x7FF) << 13) argument
87 #define G_028080_SLICE_MAX(x) (((x) >> 13) & 0x7FF) argument
97 #define S_028100_CMASK_BLOCK_MAX(x) (((x) & 0xFFF) << 0) argument
98 #define G_028100_CMASK_BLOCK_MAX(x) (((x) >> 0) & 0xFFF) argument
100 #define S_028100_FMASK_TILE_MAX(x) (((x) & 0xFFFFF) << 12) argument
101 #define G_028100_FMASK_TILE_MAX(x) (((x) >> 12) & 0xFFFFF) argument
111 # define CB_FORMAT(x) ((x) << 2) argument
112 # define CB_ARRAY_MODE(x) ((x) << 8) argument
113 # define CB_SOURCE_FORMAT(x) ((x) << 27) argument
115 # define CB_SF_EXPORT_NORM 1
178 #define S_0086D8_CP_PFP_HALT(x) (((x) & 1)<<26) argument
179 #define C_0086D8_CP_PFP_HALT(x) ((x) & 0xFBFFFFFF) argument
180 #define S_0086D8_CP_ME_HALT(x) (((x) & 1)<<28) argument
181 #define C_0086D8_CP_ME_HALT(x) ((x) & 0xEFFFFFFF) argument
186 #define MEQ_END(x) ((x) << 16) argument
187 #define ROQ_END(x) ((x) << 24) argument
192 #define ROQ_IB1_START(x) ((x) << 0) argument
193 #define ROQ_IB2_START(x) ((x) << 8) argument
196 #define RB_BUFSZ(x) ((x) << 0) argument
197 #define RB_BLKSZ(x) ((x) << 8) argument
198 #define RB_NO_UPDATE (1 << 27)
199 #define RB_RPTR_WR_ENA (1 << 31)
203 #define RB_RPTR_SWAP(x) ((x) << 0) argument
215 #define PREZ_MUST_WAIT_FOR_POSTZ_DONE (1 << 31)
219 #define S_028D24_HTILE_WIDTH(x) (((x) & 0x1) << 0) argument
220 #define G_028D24_HTILE_WIDTH(x) (((x) >> 0) & 0x1) argument
222 #define S_028D24_HTILE_HEIGHT(x) (((x) & 0x1) << 1) argument
223 #define G_028D24_HTILE_HEIGHT(x) (((x) >> 1) & 0x1) argument
225 #define G_028D24_LINEAR(x) (((x) >> 2) & 0x1) argument
227 #define DEPTH_FREE(x) ((x) << 0) argument
228 #define DEPTH_FLUSH(x) ((x) << 5) argument
229 #define DEPTH_PENDING_FREE(x) ((x) << 15) argument
230 #define DEPTH_CACHELINE_FREE(x) ((x) << 20) argument
233 #define PIPE_TILING(x) ((x) << 1) argument
234 #define BANK_TILING(x) ((x) << 4) argument
235 #define GROUP_SIZE(x) ((x) << 6) argument
236 #define ROW_TILING(x) ((x) << 8) argument
237 #define BANK_SWAPS(x) ((x) << 11) argument
238 #define SAMPLE_SPLIT(x) ((x) << 14) argument
239 #define BACKEND_MAP(x) ((x) << 16) argument
242 #define PIPE_TILING__SHIFT 1
246 #define INACTIVE_QD_PIPES(x) ((x) << 8) argument
248 #define INACTIVE_SIMDS(x) ((x) << 16) argument
252 # define VC_ENABLE (1 << 0)
253 # define EXPORT_SRC_C (1 << 1)
254 # define DX9_CONSTS (1 << 2)
255 # define ALU_INST_PREFER_VECTOR (1 << 3)
256 # define DX10_CLAMP (1 << 4)
257 # define CLAUSE_SEQ_PRIO(x) ((x) << 8) argument
258 # define PS_PRIO(x) ((x) << 24) argument
259 # define VS_PRIO(x) ((x) << 26) argument
260 # define GS_PRIO(x) ((x) << 28) argument
261 # define ES_PRIO(x) ((x) << 30) argument
263 # define NUM_PS_GPRS(x) ((x) << 0) argument
264 # define NUM_VS_GPRS(x) ((x) << 16) argument
265 # define NUM_CLAUSE_TEMP_GPRS(x) ((x) << 28) argument
267 # define NUM_GS_GPRS(x) ((x) << 0) argument
268 # define NUM_ES_GPRS(x) ((x) << 16) argument
270 # define NUM_PS_THREADS(x) ((x) << 0) argument
271 # define NUM_VS_THREADS(x) ((x) << 8) argument
272 # define NUM_GS_THREADS(x) ((x) << 16) argument
273 # define NUM_ES_THREADS(x) ((x) << 24) argument
275 # define NUM_PS_STACK_ENTRIES(x) ((x) << 0) argument
276 # define NUM_VS_STACK_ENTRIES(x) ((x) << 16) argument
278 # define NUM_GS_STACK_ENTRIES(x) ((x) << 0) argument
279 # define NUM_ES_STACK_ENTRIES(x) ((x) << 16) argument
290 # define GRBM_READ_TIMEOUT(x) ((x) << 0) argument
293 #define GUI_ACTIVE (1<<31)
296 #define SOFT_RESET_CP (1<<0)
299 #define DIG_THERM_DPM(x) ((x) << 12) argument
303 #define ASIC_T(x) ((x) << 0) argument
307 #define DIG_THERM_INTH(x) ((x) << 8) argument
310 #define DIG_THERM_INTL(x) ((x) << 16) argument
313 #define THERM_INT_MASK_HIGH (1 << 24)
314 #define THERM_INT_MASK_LOW (1 << 25)
332 #define ENABLE_L1_TLB (1 << 0)
333 #define ENABLE_L1_FRAGMENT_PROCESSING (1 << 1)
334 #define ENABLE_L1_STRICT_ORDERING (1 << 2)
338 #define SYSTEM_ACCESS_MODE_USE_SYS_MAP (1 << 6)
342 #define SYSTEM_APERTURE_UNMAPPED_ACCESS_DEFAULT_PAGE (1 << 8)
343 #define ENABLE_SEMAPHORE_MODE (1 << 10)
344 #define ENABLE_WAIT_L2_QUERY (1 << 11)
345 #define EFFECTIVE_L1_TLB_SIZE(x) (((x) & 7) << 12) argument
348 #define EFFECTIVE_L1_QUEUE_SIZE(x) (((x) & 7) << 15) argument
375 #define CLIP_VTX_REORDER_ENA (1 << 0)
376 #define NUM_CLIP_SEQ(x) ((x) << 1) argument
382 #define S0_X(x) ((x) << 0) argument
383 #define S0_Y(x) ((x) << 4) argument
384 #define S1_X(x) ((x) << 8) argument
385 #define S1_Y(x) ((x) << 12) argument
386 #define S2_X(x) ((x) << 16) argument
387 #define S2_Y(x) ((x) << 20) argument
388 #define S3_X(x) ((x) << 24) argument
389 #define S3_Y(x) ((x) << 28) argument
390 #define S4_X(x) ((x) << 0) argument
391 #define S4_Y(x) ((x) << 4) argument
392 #define S5_X(x) ((x) << 8) argument
393 #define S5_Y(x) ((x) << 12) argument
394 #define S6_X(x) ((x) << 16) argument
395 #define S6_Y(x) ((x) << 20) argument
396 #define S7_X(x) ((x) << 24) argument
397 #define S7_Y(x) ((x) << 28) argument
400 #define FORCE_EOV_MAX_CLK_CNT(x) ((x) << 0) argument
401 #define FORCE_EOV_MAX_TILE_CNT(x) ((x) << 12) argument
421 #define NOOFRANK_SHIFT 1
431 #define CHANSIZE_OVERRIDE (1 << 10)
445 #define GPR_WRITE_PRIORITY(x) ((x) << 0) argument
446 #define DISABLE_INTERP_1 (1 << 5)
448 #define VTX_DONE_DELAY(x) ((x) << 0) argument
449 #define INTERP_ONE_PRIM_PER_ROW (1 << 4)
452 #define NUM_INTERP(x) ((x)<<0) argument
453 #define POSITION_ENA (1<<8)
454 #define POSITION_CENTROID (1<<9)
455 #define POSITION_ADDR(x) ((x)<<10) argument
456 #define PARAM_GEN(x) ((x)<<15) argument
457 #define PARAM_GEN_ADDR(x) ((x)<<19) argument
458 #define BARYC_SAMPLE_CNTL(x) ((x)<<26) argument
459 #define PERSP_GRADIENT_ENA (1<<28)
460 #define LINEAR_GRADIENT_ENA (1<<29)
461 #define POSITION_SAMPLE (1<<30)
462 #define BARYC_AT_SAMPLE_ENA (1<<31)
464 #define GEN_INDEX_PIX (1<<0)
465 #define GEN_INDEX_PIX_ADDR(x) ((x)<<1) argument
466 #define FRONT_FACE_ENA (1<<8)
467 #define FRONT_FACE_CHAN(x) ((x)<<9) argument
468 #define FRONT_FACE_ALL_BITS (1<<11)
469 #define FRONT_FACE_ADDR(x) ((x)<<12) argument
470 #define FOG_ADDR(x) ((x)<<17) argument
471 #define FIXED_PT_POSITION_ENA (1<<24)
472 #define FIXED_PT_POSITION_ADDR(x) ((x)<<25) argument
475 #define CACHE_FIFO_SIZE(x) ((x) << 0) argument
476 #define FETCH_FIFO_HIWATER(x) ((x) << 8) argument
477 #define DONE_FIFO_HIWATER(x) ((x) << 16) argument
478 #define ALU_UPDATE_FIFO_HIWATER(x) ((x) << 24) argument
493 # define SQ_VTXC_BASE_ADDR_HI(x) ((x) << 0) argument
494 # define SQ_VTXC_STRIDE(x) ((x) << 8) argument
495 # define SQ_VTXC_ENDIAN_SWAP(x) ((x) << 30) argument
497 # define SQ_ENDIAN_8IN16 1
501 #define S__SQ_VTX_CONSTANT_TYPE(x) (((x) & 3) << 30) argument
502 #define G__SQ_VTX_CONSTANT_TYPE(x) (((x) >> 30) & 3) argument
512 #define SMX_EVENT_RELEASE (1 << 0)
513 #define ENABLE_NEW_SMX_ADDRESS (1 << 16)
516 #define DISABLE_CUBE_WRAP (1 << 0)
517 #define DISABLE_CUBE_ANISO (1 << 1)
518 #define SYNC_GRADIENT (1 << 24)
519 #define SYNC_WALKER (1 << 25)
520 #define SYNC_ALIGNER (1 << 26)
522 #define BILINEAR_PRECISION_8_BIT (1 << 31)
525 #define TC_L2_SIZE(x) ((x)<<5) argument
526 #define L2_DISABLE_LATE_HIT (1<<9)
531 #define CACHE_INVALIDATION(x) ((x)<<0) argument
533 #define TC_ONLY 1
574 #define ENABLE_CONTEXT (1 << 0)
575 #define PAGE_TABLE_DEPTH(x) (((x) & 3) << 1) argument
576 #define RANGE_PROTECTION_FAULT_ENABLE_DEFAULT (1 << 4)
584 #define REQUEST_TYPE(x) (((x) & 0xf) << 0) argument
588 #define ENABLE_L2_CACHE (1 << 0)
589 #define ENABLE_L2_FRAGMENT_PROCESSING (1 << 1)
590 #define ENABLE_L2_PTE_CACHE_LRU_UPDATE_BY_WRITE (1 << 9)
591 #define EFFECTIVE_L2_QUEUE_SIZE(x) (((x) & 7) << 13) argument
593 #define INVALIDATE_ALL_L1_TLBS (1 << 0)
594 #define INVALIDATE_L2_CACHE (1 << 1)
596 #define BANK_SELECT_0(x) (((x) & 0x1f) << 0) argument
597 #define BANK_SELECT_1(x) (((x) & 0x1f) << 5) argument
598 #define L2_CACHE_UPDATE_MODE(x) (((x) & 3) << 10) argument
600 #define L2_BUSY (1 << 0)
603 #define WAIT_CP_DMA_IDLE_bit (1 << 8)
604 #define WAIT_2D_IDLE_bit (1 << 14)
605 #define WAIT_3D_IDLE_bit (1 << 15)
606 #define WAIT_2D_IDLECLEAN_bit (1 << 16)
607 #define WAIT_3D_IDLECLEAN_bit (1 << 17)
614 # define DMA_RB_ENABLE (1 << 0)
615 # define DMA_RB_SIZE(x) ((x) << 1) /* log2 */ argument
616 # define DMA_RB_SWAP_ENABLE (1 << 9) /* 8IN32 */
617 # define DMA_RPTR_WRITEBACK_ENABLE (1 << 12)
618 # define DMA_RPTR_WRITEBACK_SWAP_ENABLE (1 << 13) /* 8IN32 */
619 # define DMA_RPTR_WRITEBACK_TIMER(x) ((x) << 16) /* log2 */ argument
628 # define DMA_IB_ENABLE (1 << 0)
629 # define DMA_IB_SWAP_ENABLE (1 << 4)
632 # define TRAP_ENABLE (1 << 0)
633 # define SEM_INCOMPLETE_INT_ENABLE (1 << 1)
634 # define SEM_WAIT_INT_ENABLE (1 << 2)
635 # define DATA_SWAP_ENABLE (1 << 3)
636 # define FENCE_SWAP_ENABLE (1 << 4)
637 # define CTXEMPTY_INT_ENABLE (1 << 28)
639 # define DMA_IDLE (1 << 0)
660 # define IH_RB_ENABLE (1 << 0)
661 # define IH_RB_SIZE(x) ((x) << 1) /* log2 */ argument
662 # define IH_RB_FULL_DRAIN_ENABLE (1 << 6)
663 # define IH_WPTR_WRITEBACK_ENABLE (1 << 8)
664 # define IH_WPTR_WRITEBACK_TIMER(x) ((x) << 9) /* log2 */ argument
665 # define IH_WPTR_OVERFLOW_ENABLE (1 << 16)
666 # define IH_WPTR_OVERFLOW_CLEAR (1 << 31)
670 # define RB_OVERFLOW (1 << 0)
675 # define ENABLE_INTR (1 << 0)
676 # define IH_MC_SWAP(x) ((x) << 1) argument
678 # define IH_MC_SWAP_16BIT 1
681 # define RPTR_REARM (1 << 4)
682 # define MC_WRREQ_CREDIT(x) ((x) << 15) argument
683 # define MC_WR_CLEAN_CNT(x) ((x) << 20) argument
686 # define RLC_ENABLE (1 << 0)
702 # define SOFT_RESET_BIF (1 << 1)
703 # define SOFT_RESET_DMA (1 << 12)
704 # define SOFT_RESET_RLC (1 << 13)
705 # define SOFT_RESET_UVD (1 << 18)
706 # define RV770_SOFT_RESET_DMA (1 << 20)
711 # define BIOS_ROM_DIS (1 << 1)
712 # define VGA_COHE_SPEC_TIMER_DIS (1 << 9)
715 # define CNTX_BUSY_INT_ENABLE (1 << 19)
716 # define CNTX_EMPTY_INT_ENABLE (1 << 20)
717 # define SCRATCH_INT_ENABLE (1 << 25)
718 # define TIME_STAMP_INT_ENABLE (1 << 26)
719 # define IB2_INT_ENABLE (1 << 29)
720 # define IB1_INT_ENABLE (1 << 30)
721 # define RB_INT_ENABLE (1 << 31)
723 # define SCRATCH_INT_STAT (1 << 25)
724 # define TIME_STAMP_INT_STAT (1 << 26)
725 # define IB2_INT_STAT (1 << 29)
726 # define IB1_INT_STAT (1 << 30)
727 # define RB_INT_STAT (1 << 31)
730 # define RDERR_INT_ENABLE (1 << 0)
731 # define WAIT_COUNT_TIMEOUT_INT_ENABLE (1 << 1)
732 # define GUI_IDLE_INT_ENABLE (1 << 19)
735 # define IH_DUMMY_RD_OVERRIDE (1 << 0)
736 # define IH_DUMMY_RD_EN (1 << 1)
737 # define IH_REQ_NONSNOOP_EN (1 << 3)
738 # define GEN_IH_INT_EN (1 << 8)
743 # define DxMODE_VBLANK_OCCURRED (1 << 0)
744 # define DxMODE_VBLANK_ACK (1 << 4)
745 # define DxMODE_VBLANK_STAT (1 << 12)
746 # define DxMODE_VBLANK_INTERRUPT (1 << 16)
747 # define DxMODE_VBLANK_INTERRUPT_TYPE (1 << 17)
750 # define DxMODE_VLINE_OCCURRED (1 << 0)
751 # define DxMODE_VLINE_ACK (1 << 4)
752 # define DxMODE_VLINE_STAT (1 << 12)
753 # define DxMODE_VLINE_INTERRUPT (1 << 16)
754 # define DxMODE_VLINE_INTERRUPT_TYPE (1 << 17)
756 # define D1MODE_VBLANK_INT_MASK (1 << 0)
757 # define D1MODE_VLINE_INT_MASK (1 << 4)
758 # define D2MODE_VBLANK_INT_MASK (1 << 8)
759 # define D2MODE_VLINE_INT_MASK (1 << 12)
761 # define DC_HPD1_INTERRUPT (1 << 18)
762 # define DC_HPD2_INTERRUPT (1 << 19)
764 # define LB_D1_VLINE_INTERRUPT (1 << 2)
765 # define LB_D2_VLINE_INTERRUPT (1 << 3)
766 # define LB_D1_VBLANK_INTERRUPT (1 << 4)
767 # define LB_D2_VBLANK_INTERRUPT (1 << 5)
768 # define DACA_AUTODETECT_INTERRUPT (1 << 16)
769 # define DACB_AUTODETECT_INTERRUPT (1 << 17)
770 # define DC_HOT_PLUG_DETECT1_INTERRUPT (1 << 18)
771 # define DC_HOT_PLUG_DETECT2_INTERRUPT (1 << 19)
772 # define DC_I2C_SW_DONE_INTERRUPT (1 << 20)
773 # define DC_I2C_HW_DONE_INTERRUPT (1 << 21)
776 # define DC_HPD4_INTERRUPT (1 << 14)
777 # define DC_HPD4_RX_INTERRUPT (1 << 15)
778 # define DC_HPD3_INTERRUPT (1 << 28)
779 # define DC_HPD1_RX_INTERRUPT (1 << 29)
780 # define DC_HPD2_RX_INTERRUPT (1 << 30)
782 # define DC_HPD3_RX_INTERRUPT (1 << 0)
783 # define DIGA_DP_VID_STREAM_DISABLE_INTERRUPT (1 << 1)
784 # define DIGA_DP_STEER_FIFO_OVERFLOW_INTERRUPT (1 << 2)
785 # define DIGB_DP_VID_STREAM_DISABLE_INTERRUPT (1 << 3)
786 # define DIGB_DP_STEER_FIFO_OVERFLOW_INTERRUPT (1 << 4)
787 # define AUX1_SW_DONE_INTERRUPT (1 << 5)
788 # define AUX1_LS_DONE_INTERRUPT (1 << 6)
789 # define AUX2_SW_DONE_INTERRUPT (1 << 7)
790 # define AUX2_LS_DONE_INTERRUPT (1 << 8)
791 # define AUX3_SW_DONE_INTERRUPT (1 << 9)
792 # define AUX3_LS_DONE_INTERRUPT (1 << 10)
793 # define AUX4_SW_DONE_INTERRUPT (1 << 11)
794 # define AUX4_LS_DONE_INTERRUPT (1 << 12)
795 # define DIGA_DP_FAST_TRAINING_COMPLETE_INTERRUPT (1 << 13)
796 # define DIGB_DP_FAST_TRAINING_COMPLETE_INTERRUPT (1 << 14)
798 # define AUX5_SW_DONE_INTERRUPT (1 << 15)
799 # define AUX5_LS_DONE_INTERRUPT (1 << 16)
800 # define AUX6_SW_DONE_INTERRUPT (1 << 17)
801 # define AUX6_LS_DONE_INTERRUPT (1 << 18)
802 # define DC_HPD5_INTERRUPT (1 << 19)
803 # define DC_HPD5_RX_INTERRUPT (1 << 20)
804 # define DC_HPD6_INTERRUPT (1 << 21)
805 # define DC_HPD6_RX_INTERRUPT (1 << 22)
811 # define DACx_AUTODETECT_MODE(x) ((x) << 0) argument
813 # define DACx_AUTODETECT_MODE_CONNECT 1
815 # define DACx_AUTODETECT_FRAME_TIME_COUNTER(x) ((x) << 8) argument
817 # define DACx_AUTODETECT_CHECK_MASK(x) ((x) << 16) argument
823 # define DACx_AUTODETECT_ACK (1 << 0)
824 # define DACx_AUTODETECT_INT_ENABLE (1 << 16)
829 # define DC_HOT_PLUG_DETECTx_EN (1 << 0)
834 # define DC_HOT_PLUG_DETECTx_INT_STATUS (1 << 0)
835 # define DC_HOT_PLUG_DETECTx_SENSE (1 << 1)
845 # define DC_HPDx_INT_STATUS (1 << 0)
846 # define DC_HPDx_SENSE (1 << 1)
847 # define DC_HPDx_RX_INT_STATUS (1 << 8)
852 # define DC_HOT_PLUG_DETECTx_INT_ACK (1 << 0)
853 # define DC_HOT_PLUG_DETECTx_INT_POLARITY (1 << 8)
854 # define DC_HOT_PLUG_DETECTx_INT_EN (1 << 16)
863 # define DC_HPDx_INT_ACK (1 << 0)
864 # define DC_HPDx_INT_POLARITY (1 << 8)
865 # define DC_HPDx_INT_EN (1 << 16)
866 # define DC_HPDx_RX_INT_ACK (1 << 20)
867 # define DC_HPDx_RX_INT_EN (1 << 24)
877 # define DC_HPDx_CONNECTION_TIMER(x) ((x) << 0) argument
878 # define DC_HPDx_RX_INT_TIMER(x) ((x) << 16) argument
880 # define DC_HPDx_EN (1 << 28)
884 # define DxGRPH_PFLIP_INT_OCCURRED (1 << 0)
885 # define DxGRPH_PFLIP_INT_CLEAR (1 << 8)
888 # define DxGRPH_PFLIP_INT_MASK (1 << 0)
889 # define DxGRPH_PFLIP_INT_TYPE (1 << 8)
893 # define LC_POINT_7_PLUS_EN (1 << 6)
898 # define LC_LINK_WIDTH_X1 1
905 # define LC_RECONFIG_ARC_MISSING_ESCAPE (1 << 7)
906 # define LC_RECONFIG_NOW (1 << 8)
907 # define LC_RENEGOTIATION_SUPPORT (1 << 9)
908 # define LC_RENEGOTIATE_EN (1 << 10)
909 # define LC_SHORT_RECONFIG_EN (1 << 11)
910 # define LC_UPCONFIGURE_SUPPORT (1 << 12)
911 # define LC_UPCONFIGURE_DIS (1 << 13)
913 # define LC_GEN2_EN_STRAP (1 << 0)
914 # define LC_TARGET_LINK_SPEED_OVERRIDE_EN (1 << 1)
915 # define LC_FORCE_EN_HW_SPEED_CHANGE (1 << 5)
916 # define LC_FORCE_DIS_HW_SPEED_CHANGE (1 << 6)
919 # define LC_CURRENT_DATA_RATE (1 << 11)
921 # define LC_CLR_FAILED_SPD_CHANGE_CNT (1 << 21)
922 # define LC_OTHER_SIDE_EVER_SENT_GEN2 (1 << 23)
923 # define LC_OTHER_SIDE_SUPPORTS_GEN2 (1 << 24)
925 # define MM_WR_TO_CFG_EN (1 << 3)
928 # define SELECTABLE_DEEMPHASIS (1 << 6)
932 # define AZ_FORCE_CODEC_WAKE (1 << 0)
933 # define JACK_DETECTION_ENABLE (1 << 4)
934 # define UNSOLICITED_RESPONSE_ENABLE (1 << 8)
935 # define CODEC_HOT_PLUG_ENABLE (1 << 12)
936 # define AUDIO_ENABLED (1 << 31)
938 # define PIN0_JACK_DETECTION_ENABLE (1 << 4)
939 # define PIN1_JACK_DETECTION_ENABLE (1 << 5)
940 # define PIN2_JACK_DETECTION_ENABLE (1 << 6)
941 # define PIN3_JACK_DETECTION_ENABLE (1 << 7)
942 # define PIN0_AUDIO_ENABLED (1 << 24)
943 # define PIN1_AUDIO_ENABLED (1 << 25)
944 # define PIN2_AUDIO_ENABLED (1 << 26)
945 # define PIN3_AUDIO_ENABLED (1 << 27)
949 # define AUDIO_DTO_PHASE(x) (((x) & 0xffff) << 0) argument
950 # define AUDIO_DTO_MODULE(x) (((x) & 0xffff) << 16) argument
956 # define DTO_LOAD (1 << 31)
958 # define DCCG_AUDIO_DTO_WALLCLOCK_RATIO(x) (((x) & 7) << 0) argument
971 # define TMDSA_HDMI_EN (1 << 2)
973 # define LVTMA_HDMI_EN (1 << 2)
975 # define DDIA_HDMI_EN (1 << 2)
977 # define DIG_MODE(x) (((x) & 7) << 8) argument
979 # define DIG_MODE_LVDS 1
986 #define SPEAKER_ALLOCATION(x) (((x) & 0x7f) << 0) argument
989 #define HDMI_CONNECTION (1 << 16)
990 #define DP_CONNECTION (1 << 17)
1006 # define MAX_CHANNELS(x) (((x) & 0x7) << 0) argument
1008 # define SUPPORTED_FREQUENCIES(x) (((x) & 0xff) << 8) argument
1009 # define DESCRIPTOR_BYTE_2(x) (((x) & 0xff) << 16) argument
1010 # define SUPPORTED_FREQUENCIES_STEREO(x) (((x) & 0xff) << 24) /* LPCM only */ argument
1030 # define HDMI0_ENABLE (1 << 0)
1031 # define HDMI0_STREAM(x) (((x) & 3) << 2) argument
1033 # define HDMI0_STREAM_LVTMA 1
1037 # define HDMI0_ERROR_ACK (1 << 8)
1038 # define HDMI0_ERROR_MASK (1 << 9)
1040 # define HDMI0_ACTIVE_AVMUTE (1 << 0)
1041 # define HDMI0_AUDIO_ENABLE (1 << 4)
1042 # define HDMI0_AZ_FORMAT_WTRIG (1 << 28)
1043 # define HDMI0_AZ_FORMAT_WTRIG_INT (1 << 29)
1045 # define HDMI0_AUDIO_SAMPLE_SEND (1 << 0)
1046 # define HDMI0_AUDIO_DELAY_EN(x) (((x) & 3) << 4) argument
1048 # define HDMI0_AUDIO_SEND_MAX_PACKETS (1 << 8)
1049 # define HDMI0_AUDIO_TEST_EN (1 << 12)
1050 # define HDMI0_AUDIO_PACKETS_PER_LINE(x) (((x) & 0x1f) << 16) argument
1052 # define HDMI0_AUDIO_CHANNEL_SWAP (1 << 24)
1053 # define HDMI0_60958_CS_UPDATE (1 << 26)
1054 # define HDMI0_AZ_FORMAT_WTRIG_MASK (1 << 28)
1055 # define HDMI0_AZ_FORMAT_WTRIG_ACK (1 << 29)
1057 # define HDMI0_AUDIO_CRC_EN (1 << 0)
1060 # define HDMI0_NULL_SEND (1 << 0)
1061 # define HDMI0_GC_SEND (1 << 4)
1062 # define HDMI0_GC_CONT (1 << 5) /* 0 - once; 1 - every frame */
1064 # define HDMI0_AVI_INFO_SEND (1 << 0)
1065 # define HDMI0_AVI_INFO_CONT (1 << 1)
1066 # define HDMI0_AUDIO_INFO_SEND (1 << 4)
1067 # define HDMI0_AUDIO_INFO_CONT (1 << 5)
1068 # define HDMI0_AUDIO_INFO_SOURCE (1 << 6) /* 0 - sound block; 1 - hdmi regs */
1069 # define HDMI0_AUDIO_INFO_UPDATE (1 << 7)
1070 # define HDMI0_MPEG_INFO_SEND (1 << 8)
1071 # define HDMI0_MPEG_INFO_CONT (1 << 9)
1072 # define HDMI0_MPEG_INFO_UPDATE (1 << 10)
1074 # define HDMI0_AVI_INFO_LINE(x) (((x) & 0x3f) << 0) argument
1076 # define HDMI0_AUDIO_INFO_LINE(x) (((x) & 0x3f) << 8) argument
1078 # define HDMI0_MPEG_INFO_LINE(x) (((x) & 0x3f) << 16) argument
1080 # define HDMI0_GENERIC0_SEND (1 << 0)
1081 # define HDMI0_GENERIC0_CONT (1 << 1)
1082 # define HDMI0_GENERIC0_UPDATE (1 << 2)
1083 # define HDMI0_GENERIC1_SEND (1 << 4)
1084 # define HDMI0_GENERIC1_CONT (1 << 5)
1085 # define HDMI0_GENERIC0_LINE(x) (((x) & 0x3f) << 16) argument
1087 # define HDMI0_GENERIC1_LINE(x) (((x) & 0x3f) << 24) argument
1090 # define HDMI0_GC_AVMUTE (1 << 0)
1092 # define HDMI0_AVI_INFO_CHECKSUM(x) (((x) & 0xff) << 0) argument
1093 # define HDMI0_AVI_INFO_S(x) (((x) & 3) << 8) argument
1094 # define HDMI0_AVI_INFO_B(x) (((x) & 3) << 10) argument
1095 # define HDMI0_AVI_INFO_A(x) (((x) & 1) << 12) argument
1096 # define HDMI0_AVI_INFO_Y(x) (((x) & 3) << 13) argument
1098 # define HDMI0_AVI_INFO_Y_YCBCR422 1
1100 # define HDMI0_AVI_INFO_Y_A_B_S(x) (((x) & 0xff) << 8) argument
1101 # define HDMI0_AVI_INFO_R(x) (((x) & 0xf) << 16) argument
1102 # define HDMI0_AVI_INFO_M(x) (((x) & 0x3) << 20) argument
1103 # define HDMI0_AVI_INFO_C(x) (((x) & 0x3) << 22) argument
1104 # define HDMI0_AVI_INFO_C_M_R(x) (((x) & 0xff) << 16) argument
1105 # define HDMI0_AVI_INFO_SC(x) (((x) & 0x3) << 24) argument
1106 # define HDMI0_AVI_INFO_ITC_EC_Q_SC(x) (((x) & 0xff) << 24) argument
1108 # define HDMI0_AVI_INFO_VIC(x) (((x) & 0x7f) << 0) /* don't use avi infoframe v1 */ argument
1109 # define HDMI0_AVI_INFO_PR(x) (((x) & 0xf) << 8) /* don't use avi infoframe v1 */ argument
1110 # define HDMI0_AVI_INFO_TOP(x) (((x) & 0xffff) << 16) argument
1112 # define HDMI0_AVI_INFO_BOTTOM(x) (((x) & 0xffff) << 0) argument
1113 # define HDMI0_AVI_INFO_LEFT(x) (((x) & 0xffff) << 16) argument
1115 # define HDMI0_AVI_INFO_RIGHT(x) (((x) & 0xffff) << 0) argument
1116 # define HDMI0_AVI_INFO_VERSION(x) (((x) & 3) << 24) argument
1118 # define HDMI0_MPEG_INFO_CHECKSUM(x) (((x) & 0xff) << 0) argument
1119 # define HDMI0_MPEG_INFO_MB0(x) (((x) & 0xff) << 8) argument
1120 # define HDMI0_MPEG_INFO_MB1(x) (((x) & 0xff) << 16) argument
1121 # define HDMI0_MPEG_INFO_MB2(x) (((x) & 0xff) << 24) argument
1123 # define HDMI0_MPEG_INFO_MB3(x) (((x) & 0xff) << 0) argument
1124 # define HDMI0_MPEG_INFO_MF(x) (((x) & 3) << 8) argument
1125 # define HDMI0_MPEG_INFO_FR(x) (((x) & 1) << 12) argument
1143 # define HDMI0_ACR_CTS_32(x) (((x) & 0xfffff) << 12) argument
1146 # define HDMI0_ACR_N_32(x) (((x) & 0xfffff) << 0) argument
1149 # define HDMI0_ACR_CTS_44(x) (((x) & 0xfffff) << 12) argument
1152 # define HDMI0_ACR_N_44(x) (((x) & 0xfffff) << 0) argument
1155 # define HDMI0_ACR_CTS_48(x) (((x) & 0xfffff) << 12) argument
1158 # define HDMI0_ACR_N_48(x) (((x) & 0xfffff) << 0) argument
1163 # define HDMI0_AUDIO_INFO_CHECKSUM(x) (((x) & 0xff) << 0) argument
1164 # define HDMI0_AUDIO_INFO_CC(x) (((x) & 7) << 8) argument
1166 # define HDMI0_AUDIO_INFO_CA(x) (((x) & 0xff) << 0) argument
1167 # define HDMI0_AUDIO_INFO_LSV(x) (((x) & 0xf) << 11) argument
1168 # define HDMI0_AUDIO_INFO_DM_INH(x) (((x) & 1) << 15) argument
1169 # define HDMI0_AUDIO_INFO_DM_INH_LSV(x) (((x) & 0xff) << 8) argument
1171 # define HDMI0_60958_CS_A(x) (((x) & 1) << 0) argument
1172 # define HDMI0_60958_CS_B(x) (((x) & 1) << 1) argument
1173 # define HDMI0_60958_CS_C(x) (((x) & 1) << 2) argument
1174 # define HDMI0_60958_CS_D(x) (((x) & 3) << 3) argument
1175 # define HDMI0_60958_CS_MODE(x) (((x) & 3) << 6) argument
1176 # define HDMI0_60958_CS_CATEGORY_CODE(x) (((x) & 0xff) << 8) argument
1177 # define HDMI0_60958_CS_SOURCE_NUMBER(x) (((x) & 0xf) << 16) argument
1178 # define HDMI0_60958_CS_CHANNEL_NUMBER_L(x) (((x) & 0xf) << 20) argument
1180 # define HDMI0_60958_CS_SAMPLING_FREQUENCY(x) (((x) & 0xf) << 24) argument
1181 # define HDMI0_60958_CS_CLOCK_ACCURACY(x) (((x) & 3) << 28) argument
1184 # define HDMI0_60958_CS_WORD_LENGTH(x) (((x) & 0xf) << 0) argument
1185 # define HDMI0_60958_CS_ORIGINAL_SAMPLING_FREQUENCY(x) (((x) & 0xf) << 4) argument
1186 # define HDMI0_60958_CS_VALID_L(x) (((x) & 1) << 16) argument
1187 # define HDMI0_60958_CS_VALID_R(x) (((x) & 1) << 18) argument
1188 # define HDMI0_60958_CS_CHANNEL_NUMBER_R(x) (((x) & 0xf) << 20) argument
1191 # define HDMI0_ACR_SEND (1 << 0)
1192 # define HDMI0_ACR_CONT (1 << 1)
1193 # define HDMI0_ACR_SELECT(x) (((x) & 3) << 4) argument
1195 # define HDMI0_ACR_32 1
1198 # define HDMI0_ACR_SOURCE (1 << 8) /* 0 - hw; 1 - cts value */
1199 # define HDMI0_ACR_AUTO_SEND (1 << 12)
1202 # define HDMI0_RAMP_MAX_COUNT(x) (((x) & 0xffffff) << 0) argument
1204 # define HDMI0_RAMP_MIN_COUNT(x) (((x) & 0xffffff) << 0) argument
1206 # define HDMI0_RAMP_INC_COUNT(x) (((x) & 0xffffff) << 0) argument
1208 # define HDMI0_RAMP_DEC_COUNT(x) (((x) & 0xffffff) << 0) argument
1211 # define HDMI0_60958_CS_CHANNEL_NUMBER_2(x) (((x) & 0xf) << 0) argument
1212 # define HDMI0_60958_CS_CHANNEL_NUMBER_3(x) (((x) & 0xf) << 4) argument
1213 # define HDMI0_60958_CS_CHANNEL_NUMBER_4(x) (((x) & 0xf) << 8) argument
1214 # define HDMI0_60958_CS_CHANNEL_NUMBER_5(x) (((x) & 0xf) << 12) argument
1215 # define HDMI0_60958_CS_CHANNEL_NUMBER_6(x) (((x) & 0xf) << 16) argument
1216 # define HDMI0_60958_CS_CHANNEL_NUMBER_7(x) (((x) & 0xf) << 20) argument
1227 # define AFMT_AUDIO_ENABLE (1 << 4)
1228 # define AFMT_AZ_FORMAT_WTRIG (1 << 28)
1229 # define AFMT_AZ_FORMAT_WTRIG_INT (1 << 29)
1230 # define AFMT_AZ_AUDIO_ENABLE_CHG (1 << 30)
1232 # define AFMT_AUDIO_SAMPLE_SEND (1 << 0)
1233 # define AFMT_AUDIO_TEST_EN (1 << 12)
1234 # define AFMT_AUDIO_CHANNEL_SWAP (1 << 24)
1235 # define AFMT_60958_CS_UPDATE (1 << 26)
1236 # define AFMT_AZ_AUDIO_ENABLE_CHG_MASK (1 << 27)
1237 # define AFMT_AZ_FORMAT_WTRIG_MASK (1 << 28)
1238 # define AFMT_AZ_FORMAT_WTRIG_ACK (1 << 29)
1239 # define AFMT_AZ_AUDIO_ENABLE_CHG_ACK (1 << 30)
1243 # define FMT_PIXEL_ENCODING (1 << 16)
1244 /* 0 = RGB 4:4:4 or YCbCr 4:4:4, 1 = YCbCr 4:2:2 */
1246 # define FMT_TRUNCATE_EN (1 << 0)
1247 # define FMT_TRUNCATE_DEPTH (1 << 4)
1248 # define FMT_SPATIAL_DITHER_EN (1 << 8)
1249 # define FMT_SPATIAL_DITHER_MODE(x) ((x) << 9) argument
1250 # define FMT_SPATIAL_DITHER_DEPTH (1 << 12)
1251 # define FMT_FRAME_RANDOM_ENABLE (1 << 13)
1252 # define FMT_RGB_RANDOM_ENABLE (1 << 14)
1253 # define FMT_HIGHPASS_RANDOM_ENABLE (1 << 15)
1254 # define FMT_TEMPORAL_DITHER_EN (1 << 16)
1255 # define FMT_TEMPORAL_DITHER_DEPTH (1 << 20)
1256 # define FMT_TEMPORAL_DITHER_OFFSET(x) ((x) << 21) argument
1257 # define FMT_TEMPORAL_LEVEL (1 << 24)
1258 # define FMT_TEMPORAL_DITHER_RESET (1 << 25)
1259 # define FMT_25FRC_SEL(x) ((x) << 26) argument
1260 # define FMT_50FRC_SEL(x) ((x) << 28) argument
1261 # define FMT_75FRC_SEL(x) ((x) << 30) argument
1263 # define FMT_CLAMP_DATA_EN (1 << 0)
1264 # define FMT_CLAMP_COLOR_FORMAT(x) ((x) << 16) argument
1266 # define FMT_CLAMP_8BPC 1
1271 # define SPLL_RESET (1 << 0)
1272 # define SPLL_SLEEP (1 << 1)
1273 # define SPLL_REF_DIV(x) ((x) << 2) argument
1275 # define SPLL_FB_DIV(x) ((x) << 5) argument
1277 # define SPLL_PULSEEN (1 << 13)
1278 # define SPLL_PULSENUM(x) ((x) << 14) argument
1280 # define SPLL_SW_HILEN(x) ((x) << 16) argument
1282 # define SPLL_SW_LOLEN(x) ((x) << 20) argument
1284 # define SPLL_DIVEN (1 << 24)
1285 # define SPLL_BYPASS_EN (1 << 25)
1286 # define SPLL_CHG_STATUS (1 << 29)
1287 # define SPLL_CTLREQ (1 << 30)
1288 # define SPLL_CTLACK (1 << 31)
1291 # define GLOBAL_PWRMGT_EN (1 << 0)
1292 # define STATIC_PM_EN (1 << 1)
1293 # define MOBILE_SU (1 << 2)
1294 # define THERMAL_PROTECTION_DIS (1 << 3)
1295 # define THERMAL_PROTECTION_TYPE (1 << 4)
1296 # define ENABLE_GEN2PCIE (1 << 5)
1297 # define SW_GPIO_INDEX(x) ((x) << 6) argument
1299 # define LOW_VOLT_D2_ACPI (1 << 8)
1300 # define LOW_VOLT_D3_ACPI (1 << 9)
1301 # define VOLT_PWRMGT_EN (1 << 10)
1303 # define TPCC(x) ((x) << 0) argument
1305 # define TPU(x) ((x) << 23) argument
1308 # define SCLK_PWRMGT_OFF (1 << 0)
1309 # define SCLK_TURNOFF (1 << 1)
1310 # define SPLL_TURNOFF (1 << 2)
1311 # define SU_SCLK_USE_BCLK (1 << 3)
1312 # define DYNAMIC_GFX_ISLAND_PWR_DOWN (1 << 4)
1313 # define DYNAMIC_GFX_ISLAND_PWR_LP (1 << 5)
1314 # define CLK_TURN_ON_STAGGER (1 << 6)
1315 # define CLK_TURN_OFF_STAGGER (1 << 7)
1316 # define FIR_FORCE_TREND_SEL (1 << 8)
1317 # define FIR_TREND_MODE (1 << 9)
1318 # define DYN_GFX_CLK_OFF_EN (1 << 10)
1319 # define VDDC3D_TURNOFF_D1 (1 << 11)
1320 # define VDDC3D_TURNOFF_D2 (1 << 12)
1321 # define VDDC3D_TURNOFF_D3 (1 << 13)
1322 # define SPLL_TURNOFF_D2 (1 << 14)
1323 # define SCLK_LOW_D1 (1 << 15)
1324 # define DYN_GFX_CLK_OFF_MC_EN (1 << 16)
1326 # define MPLL_PWRMGT_OFF (1 << 0)
1327 # define YCLK_TURNOFF (1 << 1)
1328 # define MPLL_TURNOFF (1 << 2)
1329 # define SU_MCLK_USE_BCLK (1 << 3)
1330 # define DLL_READY (1 << 4)
1331 # define MC_BUSY (1 << 5)
1332 # define MC_INT_CNTL (1 << 7)
1333 # define MRDCKA_SLEEP (1 << 8)
1334 # define MRDCKB_SLEEP (1 << 9)
1335 # define MRDCKC_SLEEP (1 << 10)
1336 # define MRDCKD_SLEEP (1 << 11)
1337 # define MRDCKE_SLEEP (1 << 12)
1338 # define MRDCKF_SLEEP (1 << 13)
1339 # define MRDCKG_SLEEP (1 << 14)
1340 # define MRDCKH_SLEEP (1 << 15)
1341 # define MRDCKA_RESET (1 << 16)
1342 # define MRDCKB_RESET (1 << 17)
1343 # define MRDCKC_RESET (1 << 18)
1344 # define MRDCKD_RESET (1 << 19)
1345 # define MRDCKE_RESET (1 << 20)
1346 # define MRDCKF_RESET (1 << 21)
1347 # define MRDCKG_RESET (1 << 22)
1348 # define MRDCKH_RESET (1 << 23)
1349 # define DLL_READY_READ (1 << 24)
1350 # define USE_DISPLAY_GAP (1 << 25)
1351 # define USE_DISPLAY_URGENT_NORMAL (1 << 26)
1352 # define USE_DISPLAY_GAP_CTXSW (1 << 27)
1353 # define MPLL_TURNOFF_D2 (1 << 28)
1354 # define USE_DISPLAY_URGENT_CTXSW (1 << 29)
1357 # define MPLL_LOCK_TIME(x) ((x) << 0) argument
1359 # define MPLL_RESET_TIME(x) ((x) << 16) argument
1363 # define STEP_0_SPLL_POST_DIV(x) ((x) << 0) argument
1365 # define STEP_0_SPLL_FB_DIV(x) ((x) << 8) argument
1367 # define STEP_0_SPLL_REF_DIV(x) ((x) << 16) argument
1369 # define STEP_0_SPLL_STEP_TIME(x) ((x) << 19) argument
1372 # define STEP_0_PULSE_HIGH_CNT(x) ((x) << 0) argument
1374 # define STEP_0_POST_DIV_EN (1 << 9)
1375 # define STEP_0_SPLL_STEP_ENABLE (1 << 30)
1376 # define STEP_0_SPLL_ENTRY_VALID (1 << 31)
1379 # define VID_CRT(x) ((x) << 0) argument
1381 # define VID_CRTU(x) ((x) << 13) argument
1383 # define SSTU(x) ((x) << 16) argument
1386 # define CTXSW_FREQ_VIDS_CFG_INDEX(x) ((x) << 0) argument
1389 # define CTXSW_FREQ_MCLK_CFG_INDEX(x) ((x) << 2) argument
1392 # define CTXSW_FREQ_SCLK_CFG_INDEX(x) ((x) << 4) argument
1395 # define CTXSW_FREQ_STATE_SPLL_RESET_EN (1 << 9)
1396 # define CTXSW_FREQ_STATE_ENABLE (1 << 10)
1397 # define CTXSW_FREQ_DISPLAY_WATERMARK (1 << 11)
1398 # define CTXSW_FREQ_GEN2PCIE_VOLT (1 << 12)
1405 # define DYN_PWR_ENTER_INDEX(x) ((x) << 4) argument
1421 # define PHC(x) ((x) << 0) argument
1423 # define SDC(x) ((x) << 9) argument
1426 # define SU(x) ((x) << 23) argument
1430 # define UTC_0(x) ((x) << 0) argument
1432 # define DTC_0(x) ((x) << 10) argument
1436 # define BSP(x) ((x) << 0) argument
1438 # define BSU(x) ((x) << 16) argument
1441 # define FLS(x) ((x) << 0) argument
1443 # define FMS(x) ((x) << 16) argument
1446 # define FHS(x) ((x) << 0) argument
1449 # define CG_GICST(x) ((x) << 0) argument
1451 # define CG_GIPOT(x) ((x) << 16) argument
1455 # define CG_SST(x) ((x) << 0) argument
1457 # define CG_SSTU(x) ((x) << 16) argument
1467 # define FC_T(x) ((x) << 0) argument
1469 # define FC_TU(x) ((x) << 16) argument
1524 #define RBC_SOFT_RESET (1<<0)
1525 #define LBSI_SOFT_RESET (1<<1)
1526 #define LMI_SOFT_RESET (1<<2)
1527 #define VCPU_SOFT_RESET (1<<3)
1528 #define CSM_SOFT_RESET (1<<5)
1529 #define CXW_SOFT_RESET (1<<6)
1530 #define TAP_SOFT_RESET (1<<7)
1531 #define LMI_UMC_SOFT_RESET (1<<13)
1553 #define SPLL_BYPASS_CNTL (1 << 0)
1554 #define UPLL_BYPASS_CNTL (1 << 1)
1561 # define UPLL_FB_DIV(x) ((x) << 4) argument
1563 # define UPLL_REF_DIV(x) ((x) << 16) argument
1569 # define UPLL_SW_HILEN(x) ((x) << 0) argument
1570 # define UPLL_SW_LOLEN(x) ((x) << 4) argument
1571 # define UPLL_SW_HILEN2(x) ((x) << 8) argument
1572 # define UPLL_SW_LOLEN2(x) ((x) << 12) argument
1576 # define VCLK_SRC_SEL(x) ((x) << 20) argument
1578 # define DCLK_SRC_SEL(x) ((x) << 25) argument
1619 /* 1. header
1626 # define PACKET3_CP_DMA_CP_SYNC (1 << 31)
1628 # define PACKET3_CP_DMA_CMD_SRC_SWAP(x) ((x) << 22) argument
1630 * 1 - 8 in 16
1634 # define PACKET3_CP_DMA_CMD_DST_SWAP(x) ((x) << 24) argument
1636 * 1 - 8 in 16
1640 # define PACKET3_CP_DMA_CMD_SAS (1 << 26)
1642 * 1 - register
1644 # define PACKET3_CP_DMA_CMD_DAS (1 << 27)
1646 * 1 - register
1648 # define PACKET3_CP_DMA_CMD_SAIC (1 << 28)
1649 # define PACKET3_CP_DMA_CMD_DAIC (1 << 29)
1652 # define PACKET3_CB0_DEST_BASE_ENA (1 << 6)
1653 # define PACKET3_FULL_CACHE_ENA (1 << 20) /* r7xx+ only */
1654 # define PACKET3_TC_ACTION_ENA (1 << 23)
1655 # define PACKET3_VC_ACTION_ENA (1 << 24)
1656 # define PACKET3_CB_ACTION_ENA (1 << 25)
1657 # define PACKET3_DB_ACTION_ENA (1 << 26)
1658 # define PACKET3_SH_ACTION_ENA (1 << 27)
1659 # define PACKET3_SMX_ACTION_ENA (1 << 28)
1661 #define PACKET3_ME_INITIALIZE_DEVICE_ID(x) ((x) << 16) argument
1664 #define EVENT_TYPE(x) ((x) << 0) argument
1665 #define EVENT_INDEX(x) ((x) << 8) argument
1667 * 1 - ZPASS_DONE
1674 #define DATA_SEL(x) ((x) << 29) argument
1676 * 1 - send low 32bit data
1680 #define INT_SEL(x) ((x) << 24) argument
1682 * 1 - interrupt only (DATA_SEL = 0)
1715 #define G_000012_K8_ADDR_EXT(x) (((x) >> 0) & 0xFF) argument
1717 #define S_0028F8_MC_IND_ADDR(x) (((x) & 0x1FF) << 0) argument
1719 #define S_0028F8_MC_IND_WR_EN(x) (((x) & 0x1) << 9) argument
1723 #define S_008020_SOFT_RESET_CP(x) (((x) & 1) << 0) argument
1724 #define S_008020_SOFT_RESET_CB(x) (((x) & 1) << 1) argument
1725 #define S_008020_SOFT_RESET_CR(x) (((x) & 1) << 2) argument
1726 #define S_008020_SOFT_RESET_DB(x) (((x) & 1) << 3) argument
1727 #define S_008020_SOFT_RESET_PA(x) (((x) & 1) << 5) argument
1728 #define S_008020_SOFT_RESET_SC(x) (((x) & 1) << 6) argument
1729 #define S_008020_SOFT_RESET_SMX(x) (((x) & 1) << 7) argument
1730 #define S_008020_SOFT_RESET_SPI(x) (((x) & 1) << 8) argument
1731 #define S_008020_SOFT_RESET_SH(x) (((x) & 1) << 9) argument
1732 #define S_008020_SOFT_RESET_SX(x) (((x) & 1) << 10) argument
1733 #define S_008020_SOFT_RESET_TC(x) (((x) & 1) << 11) argument
1734 #define S_008020_SOFT_RESET_TA(x) (((x) & 1) << 12) argument
1735 #define S_008020_SOFT_RESET_VC(x) (((x) & 1) << 13) argument
1736 #define S_008020_SOFT_RESET_VGT(x) (((x) & 1) << 14) argument
1738 #define S_008010_CMDFIFO_AVAIL(x) (((x) & 0x1F) << 0) argument
1739 #define S_008010_CP_RQ_PENDING(x) (((x) & 1) << 6) argument
1740 #define S_008010_CF_RQ_PENDING(x) (((x) & 1) << 7) argument
1741 #define S_008010_PF_RQ_PENDING(x) (((x) & 1) << 8) argument
1742 #define S_008010_GRBM_EE_BUSY(x) (((x) & 1) << 10) argument
1743 #define S_008010_VC_BUSY(x) (((x) & 1) << 11) argument
1744 #define S_008010_DB03_CLEAN(x) (((x) & 1) << 12) argument
1745 #define S_008010_CB03_CLEAN(x) (((x) & 1) << 13) argument
1746 #define S_008010_VGT_BUSY_NO_DMA(x) (((x) & 1) << 16) argument
1747 #define S_008010_VGT_BUSY(x) (((x) & 1) << 17) argument
1748 #define S_008010_TA03_BUSY(x) (((x) & 1) << 18) argument
1749 #define S_008010_TC_BUSY(x) (((x) & 1) << 19) argument
1750 #define S_008010_SX_BUSY(x) (((x) & 1) << 20) argument
1751 #define S_008010_SH_BUSY(x) (((x) & 1) << 21) argument
1752 #define S_008010_SPI03_BUSY(x) (((x) & 1) << 22) argument
1753 #define S_008010_SMX_BUSY(x) (((x) & 1) << 23) argument
1754 #define S_008010_SC_BUSY(x) (((x) & 1) << 24) argument
1755 #define S_008010_PA_BUSY(x) (((x) & 1) << 25) argument
1756 #define S_008010_DB03_BUSY(x) (((x) & 1) << 26) argument
1757 #define S_008010_CR_BUSY(x) (((x) & 1) << 27) argument
1758 #define S_008010_CP_COHERENCY_BUSY(x) (((x) & 1) << 28) argument
1759 #define S_008010_CP_BUSY(x) (((x) & 1) << 29) argument
1760 #define S_008010_CB03_BUSY(x) (((x) & 1) << 30) argument
1761 #define S_008010_GUI_ACTIVE(x) (((x) & 1) << 31) argument
1762 #define G_008010_CMDFIFO_AVAIL(x) (((x) >> 0) & 0x1F) argument
1763 #define G_008010_CP_RQ_PENDING(x) (((x) >> 6) & 1) argument
1764 #define G_008010_CF_RQ_PENDING(x) (((x) >> 7) & 1) argument
1765 #define G_008010_PF_RQ_PENDING(x) (((x) >> 8) & 1) argument
1766 #define G_008010_GRBM_EE_BUSY(x) (((x) >> 10) & 1) argument
1767 #define G_008010_VC_BUSY(x) (((x) >> 11) & 1) argument
1768 #define G_008010_DB03_CLEAN(x) (((x) >> 12) & 1) argument
1769 #define G_008010_CB03_CLEAN(x) (((x) >> 13) & 1) argument
1770 #define G_008010_TA_BUSY(x) (((x) >> 14) & 1) argument
1771 #define G_008010_VGT_BUSY_NO_DMA(x) (((x) >> 16) & 1) argument
1772 #define G_008010_VGT_BUSY(x) (((x) >> 17) & 1) argument
1773 #define G_008010_TA03_BUSY(x) (((x) >> 18) & 1) argument
1774 #define G_008010_TC_BUSY(x) (((x) >> 19) & 1) argument
1775 #define G_008010_SX_BUSY(x) (((x) >> 20) & 1) argument
1776 #define G_008010_SH_BUSY(x) (((x) >> 21) & 1) argument
1777 #define G_008010_SPI03_BUSY(x) (((x) >> 22) & 1) argument
1778 #define G_008010_SMX_BUSY(x) (((x) >> 23) & 1) argument
1779 #define G_008010_SC_BUSY(x) (((x) >> 24) & 1) argument
1780 #define G_008010_PA_BUSY(x) (((x) >> 25) & 1) argument
1781 #define G_008010_DB03_BUSY(x) (((x) >> 26) & 1) argument
1782 #define G_008010_CR_BUSY(x) (((x) >> 27) & 1) argument
1783 #define G_008010_CP_COHERENCY_BUSY(x) (((x) >> 28) & 1) argument
1784 #define G_008010_CP_BUSY(x) (((x) >> 29) & 1) argument
1785 #define G_008010_CB03_BUSY(x) (((x) >> 30) & 1) argument
1786 #define G_008010_GUI_ACTIVE(x) (((x) >> 31) & 1) argument
1788 #define S_008014_CR_CLEAN(x) (((x) & 1) << 0) argument
1789 #define S_008014_SMX_CLEAN(x) (((x) & 1) << 1) argument
1790 #define S_008014_SPI0_BUSY(x) (((x) & 1) << 8) argument
1791 #define S_008014_SPI1_BUSY(x) (((x) & 1) << 9) argument
1792 #define S_008014_SPI2_BUSY(x) (((x) & 1) << 10) argument
1793 #define S_008014_SPI3_BUSY(x) (((x) & 1) << 11) argument
1794 #define S_008014_TA0_BUSY(x) (((x) & 1) << 12) argument
1795 #define S_008014_TA1_BUSY(x) (((x) & 1) << 13) argument
1796 #define S_008014_TA2_BUSY(x) (((x) & 1) << 14) argument
1797 #define S_008014_TA3_BUSY(x) (((x) & 1) << 15) argument
1798 #define S_008014_DB0_BUSY(x) (((x) & 1) << 16) argument
1799 #define S_008014_DB1_BUSY(x) (((x) & 1) << 17) argument
1800 #define S_008014_DB2_BUSY(x) (((x) & 1) << 18) argument
1801 #define S_008014_DB3_BUSY(x) (((x) & 1) << 19) argument
1802 #define S_008014_CB0_BUSY(x) (((x) & 1) << 20) argument
1803 #define S_008014_CB1_BUSY(x) (((x) & 1) << 21) argument
1804 #define S_008014_CB2_BUSY(x) (((x) & 1) << 22) argument
1805 #define S_008014_CB3_BUSY(x) (((x) & 1) << 23) argument
1806 #define G_008014_CR_CLEAN(x) (((x) >> 0) & 1) argument
1807 #define G_008014_SMX_CLEAN(x) (((x) >> 1) & 1) argument
1808 #define G_008014_SPI0_BUSY(x) (((x) >> 8) & 1) argument
1809 #define G_008014_SPI1_BUSY(x) (((x) >> 9) & 1) argument
1810 #define G_008014_SPI2_BUSY(x) (((x) >> 10) & 1) argument
1811 #define G_008014_SPI3_BUSY(x) (((x) >> 11) & 1) argument
1812 #define G_008014_TA0_BUSY(x) (((x) >> 12) & 1) argument
1813 #define G_008014_TA1_BUSY(x) (((x) >> 13) & 1) argument
1814 #define G_008014_TA2_BUSY(x) (((x) >> 14) & 1) argument
1815 #define G_008014_TA3_BUSY(x) (((x) >> 15) & 1) argument
1816 #define G_008014_DB0_BUSY(x) (((x) >> 16) & 1) argument
1817 #define G_008014_DB1_BUSY(x) (((x) >> 17) & 1) argument
1818 #define G_008014_DB2_BUSY(x) (((x) >> 18) & 1) argument
1819 #define G_008014_DB3_BUSY(x) (((x) >> 19) & 1) argument
1820 #define G_008014_CB0_BUSY(x) (((x) >> 20) & 1) argument
1821 #define G_008014_CB1_BUSY(x) (((x) >> 21) & 1) argument
1822 #define G_008014_CB2_BUSY(x) (((x) >> 22) & 1) argument
1823 #define G_008014_CB3_BUSY(x) (((x) >> 23) & 1) argument
1825 #define G_000E50_RLC_RQ_PENDING(x) (((x) >> 3) & 1) argument
1826 #define G_000E50_RCU_RQ_PENDING(x) (((x) >> 4) & 1) argument
1827 #define G_000E50_GRBM_RQ_PENDING(x) (((x) >> 5) & 1) argument
1828 #define G_000E50_HI_RQ_PENDING(x) (((x) >> 6) & 1) argument
1829 #define G_000E50_IO_EXTERN_SIGNAL(x) (((x) >> 7) & 1) argument
1830 #define G_000E50_VMC_BUSY(x) (((x) >> 8) & 1) argument
1831 #define G_000E50_MCB_BUSY(x) (((x) >> 9) & 1) argument
1832 #define G_000E50_MCDZ_BUSY(x) (((x) >> 10) & 1) argument
1833 #define G_000E50_MCDY_BUSY(x) (((x) >> 11) & 1) argument
1834 #define G_000E50_MCDX_BUSY(x) (((x) >> 12) & 1) argument
1835 #define G_000E50_MCDW_BUSY(x) (((x) >> 13) & 1) argument
1836 #define G_000E50_SEM_BUSY(x) (((x) >> 14) & 1) argument
1837 #define G_000E50_RLC_BUSY(x) (((x) >> 15) & 1) argument
1838 #define G_000E50_IH_BUSY(x) (((x) >> 17) & 1) argument
1839 #define G_000E50_BIF_BUSY(x) (((x) >> 29) & 1) argument
1841 #define S_000E60_SOFT_RESET_BIF(x) (((x) & 1) << 1) argument
1842 #define S_000E60_SOFT_RESET_CG(x) (((x) & 1) << 2) argument
1843 #define S_000E60_SOFT_RESET_CMC(x) (((x) & 1) << 3) argument
1844 #define S_000E60_SOFT_RESET_CSC(x) (((x) & 1) << 4) argument
1845 #define S_000E60_SOFT_RESET_DC(x) (((x) & 1) << 5) argument
1846 #define S_000E60_SOFT_RESET_GRBM(x) (((x) & 1) << 8) argument
1847 #define S_000E60_SOFT_RESET_HDP(x) (((x) & 1) << 9) argument
1848 #define S_000E60_SOFT_RESET_IH(x) (((x) & 1) << 10) argument
1849 #define S_000E60_SOFT_RESET_MC(x) (((x) & 1) << 11) argument
1850 #define S_000E60_SOFT_RESET_RLC(x) (((x) & 1) << 13) argument
1851 #define S_000E60_SOFT_RESET_ROM(x) (((x) & 1) << 14) argument
1852 #define S_000E60_SOFT_RESET_SEM(x) (((x) & 1) << 15) argument
1853 #define S_000E60_SOFT_RESET_TSC(x) (((x) & 1) << 16) argument
1854 #define S_000E60_SOFT_RESET_VMC(x) (((x) & 1) << 17) argument
1859 #define S_028C04_MSAA_NUM_SAMPLES(x) (((x) & 0x3) << 0) argument
1860 #define G_028C04_MSAA_NUM_SAMPLES(x) (((x) >> 0) & 0x3) argument
1862 #define S_028C04_AA_MASK_CENTROID_DTMN(x) (((x) & 0x1) << 4) argument
1863 #define G_028C04_AA_MASK_CENTROID_DTMN(x) (((x) >> 4) & 0x1) argument
1865 #define S_028C04_MAX_SAMPLE_DIST(x) (((x) & 0xF) << 13) argument
1866 #define G_028C04_MAX_SAMPLE_DIST(x) (((x) >> 13) & 0xF) argument
1869 #define S_0280E0_BASE_256B(x) (((x) & 0xFFFFFFFF) << 0) argument
1870 #define G_0280E0_BASE_256B(x) (((x) >> 0) & 0xFFFFFFFF) argument
1880 #define S_0280C0_BASE_256B(x) (((x) & 0xFFFFFFFF) << 0) argument
1881 #define G_0280C0_BASE_256B(x) (((x) >> 0) & 0xFFFFFFFF) argument
1891 #define S_0280A0_ENDIAN(x) (((x) & 0x3) << 0) argument
1892 #define G_0280A0_ENDIAN(x) (((x) >> 0) & 0x3) argument
1894 #define S_0280A0_FORMAT(x) (((x) & 0x3F) << 2) argument
1895 #define G_0280A0_FORMAT(x) (((x) >> 2) & 0x3F) argument
1931 #define S_0280A0_ARRAY_MODE(x) (((x) & 0xF) << 8) argument
1932 #define G_0280A0_ARRAY_MODE(x) (((x) >> 8) & 0xF) argument
1938 #define S_0280A0_NUMBER_TYPE(x) (((x) & 0x7) << 12) argument
1939 #define G_0280A0_NUMBER_TYPE(x) (((x) >> 12) & 0x7) argument
1941 #define S_0280A0_READ_SIZE(x) (((x) & 0x1) << 15) argument
1942 #define G_0280A0_READ_SIZE(x) (((x) >> 15) & 0x1) argument
1944 #define S_0280A0_COMP_SWAP(x) (((x) & 0x3) << 16) argument
1945 #define G_0280A0_COMP_SWAP(x) (((x) >> 16) & 0x3) argument
1947 #define S_0280A0_TILE_MODE(x) (((x) & 0x3) << 18) argument
1948 #define G_0280A0_TILE_MODE(x) (((x) >> 18) & 0x3) argument
1951 #define V_0280A0_CLEAR_ENABLE 1
1953 #define S_0280A0_BLEND_CLAMP(x) (((x) & 0x1) << 20) argument
1954 #define G_0280A0_BLEND_CLAMP(x) (((x) >> 20) & 0x1) argument
1956 #define S_0280A0_CLEAR_COLOR(x) (((x) & 0x1) << 21) argument
1957 #define G_0280A0_CLEAR_COLOR(x) (((x) >> 21) & 0x1) argument
1959 #define S_0280A0_BLEND_BYPASS(x) (((x) & 0x1) << 22) argument
1960 #define G_0280A0_BLEND_BYPASS(x) (((x) >> 22) & 0x1) argument
1962 #define S_0280A0_BLEND_FLOAT32(x) (((x) & 0x1) << 23) argument
1963 #define G_0280A0_BLEND_FLOAT32(x) (((x) >> 23) & 0x1) argument
1965 #define S_0280A0_SIMPLE_FLOAT(x) (((x) & 0x1) << 24) argument
1966 #define G_0280A0_SIMPLE_FLOAT(x) (((x) >> 24) & 0x1) argument
1968 #define S_0280A0_ROUND_MODE(x) (((x) & 0x1) << 25) argument
1969 #define G_0280A0_ROUND_MODE(x) (((x) >> 25) & 0x1) argument
1971 #define S_0280A0_TILE_COMPACT(x) (((x) & 0x1) << 26) argument
1972 #define G_0280A0_TILE_COMPACT(x) (((x) >> 26) & 0x1) argument
1974 #define S_0280A0_SOURCE_FORMAT(x) (((x) & 0x1) << 27) argument
1975 #define G_0280A0_SOURCE_FORMAT(x) (((x) >> 27) & 0x1) argument
1985 #define S_028060_PITCH_TILE_MAX(x) (((x) & 0x3FF) << 0) argument
1986 #define G_028060_PITCH_TILE_MAX(x) (((x) >> 0) & 0x3FF) argument
1988 #define S_028060_SLICE_TILE_MAX(x) (((x) & 0xFFFFF) << 10) argument
1989 #define G_028060_SLICE_TILE_MAX(x) (((x) >> 10) & 0xFFFFF) argument
1999 #define S_028238_TARGET0_ENABLE(x) (((x) & 0xF) << 0) argument
2000 #define G_028238_TARGET0_ENABLE(x) (((x) >> 0) & 0xF) argument
2002 #define S_028238_TARGET1_ENABLE(x) (((x) & 0xF) << 4) argument
2003 #define G_028238_TARGET1_ENABLE(x) (((x) >> 4) & 0xF) argument
2005 #define S_028238_TARGET2_ENABLE(x) (((x) & 0xF) << 8) argument
2006 #define G_028238_TARGET2_ENABLE(x) (((x) >> 8) & 0xF) argument
2008 #define S_028238_TARGET3_ENABLE(x) (((x) & 0xF) << 12) argument
2009 #define G_028238_TARGET3_ENABLE(x) (((x) >> 12) & 0xF) argument
2011 #define S_028238_TARGET4_ENABLE(x) (((x) & 0xF) << 16) argument
2012 #define G_028238_TARGET4_ENABLE(x) (((x) >> 16) & 0xF) argument
2014 #define S_028238_TARGET5_ENABLE(x) (((x) & 0xF) << 20) argument
2015 #define G_028238_TARGET5_ENABLE(x) (((x) >> 20) & 0xF) argument
2017 #define S_028238_TARGET6_ENABLE(x) (((x) & 0xF) << 24) argument
2018 #define G_028238_TARGET6_ENABLE(x) (((x) >> 24) & 0xF) argument
2020 #define S_028238_TARGET7_ENABLE(x) (((x) & 0xF) << 28) argument
2021 #define G_028238_TARGET7_ENABLE(x) (((x) >> 28) & 0xF) argument
2024 #define S_02823C_OUTPUT0_ENABLE(x) (((x) & 0xF) << 0) argument
2025 #define G_02823C_OUTPUT0_ENABLE(x) (((x) >> 0) & 0xF) argument
2027 #define S_02823C_OUTPUT1_ENABLE(x) (((x) & 0xF) << 4) argument
2028 #define G_02823C_OUTPUT1_ENABLE(x) (((x) >> 4) & 0xF) argument
2030 #define S_02823C_OUTPUT2_ENABLE(x) (((x) & 0xF) << 8) argument
2031 #define G_02823C_OUTPUT2_ENABLE(x) (((x) >> 8) & 0xF) argument
2033 #define S_02823C_OUTPUT3_ENABLE(x) (((x) & 0xF) << 12) argument
2034 #define G_02823C_OUTPUT3_ENABLE(x) (((x) >> 12) & 0xF) argument
2036 #define S_02823C_OUTPUT4_ENABLE(x) (((x) & 0xF) << 16) argument
2037 #define G_02823C_OUTPUT4_ENABLE(x) (((x) >> 16) & 0xF) argument
2039 #define S_02823C_OUTPUT5_ENABLE(x) (((x) & 0xF) << 20) argument
2040 #define G_02823C_OUTPUT5_ENABLE(x) (((x) >> 20) & 0xF) argument
2042 #define S_02823C_OUTPUT6_ENABLE(x) (((x) & 0xF) << 24) argument
2043 #define G_02823C_OUTPUT6_ENABLE(x) (((x) >> 24) & 0xF) argument
2045 #define S_02823C_OUTPUT7_ENABLE(x) (((x) & 0xF) << 28) argument
2046 #define G_02823C_OUTPUT7_ENABLE(x) (((x) >> 28) & 0xF) argument
2049 #define S_028AB0_STREAMOUT(x) (((x) & 0x1) << 0) argument
2050 #define G_028AB0_STREAMOUT(x) (((x) >> 0) & 0x1) argument
2053 #define S_028B20_BUFFER_0_EN(x) (((x) & 0x1) << 0) argument
2054 #define G_028B20_BUFFER_0_EN(x) (((x) >> 0) & 0x1) argument
2056 #define S_028B20_BUFFER_1_EN(x) (((x) & 0x1) << 1) argument
2057 #define G_028B20_BUFFER_1_EN(x) (((x) >> 1) & 0x1) argument
2059 #define S_028B20_BUFFER_2_EN(x) (((x) & 0x1) << 2) argument
2060 #define G_028B20_BUFFER_2_EN(x) (((x) >> 2) & 0x1) argument
2062 #define S_028B20_BUFFER_3_EN(x) (((x) & 0x1) << 3) argument
2063 #define G_028B20_BUFFER_3_EN(x) (((x) >> 3) & 0x1) argument
2065 #define S_028B20_SIZE(x) (((x) & 0xFFFFFFFF) << 0) argument
2066 #define G_028B20_SIZE(x) (((x) >> 0) & 0xFFFFFFFF) argument
2069 #define S_038000_DIM(x) (((x) & 0x7) << 0) argument
2070 #define G_038000_DIM(x) (((x) >> 0) & 0x7) argument
2080 #define S_038000_TILE_MODE(x) (((x) & 0xF) << 3) argument
2081 #define G_038000_TILE_MODE(x) (((x) >> 3) & 0xF) argument
2087 #define S_038000_TILE_TYPE(x) (((x) & 0x1) << 7) argument
2088 #define G_038000_TILE_TYPE(x) (((x) >> 7) & 0x1) argument
2090 #define S_038000_PITCH(x) (((x) & 0x7FF) << 8) argument
2091 #define G_038000_PITCH(x) (((x) >> 8) & 0x7FF) argument
2093 #define S_038000_TEX_WIDTH(x) (((x) & 0x1FFF) << 19) argument
2094 #define G_038000_TEX_WIDTH(x) (((x) >> 19) & 0x1FFF) argument
2097 #define S_038004_TEX_HEIGHT(x) (((x) & 0x1FFF) << 0) argument
2098 #define G_038004_TEX_HEIGHT(x) (((x) >> 0) & 0x1FFF) argument
2100 #define S_038004_TEX_DEPTH(x) (((x) & 0x1FFF) << 13) argument
2101 #define G_038004_TEX_DEPTH(x) (((x) >> 13) & 0x1FFF) argument
2103 #define S_038004_DATA_FORMAT(x) (((x) & 0x3F) << 26) argument
2104 #define G_038004_DATA_FORMAT(x) (((x) >> 26) & 0x3F) argument
2160 #define S_038010_FORMAT_COMP_X(x) (((x) & 0x3) << 0) argument
2161 #define G_038010_FORMAT_COMP_X(x) (((x) >> 0) & 0x3) argument
2163 #define S_038010_FORMAT_COMP_Y(x) (((x) & 0x3) << 2) argument
2164 #define G_038010_FORMAT_COMP_Y(x) (((x) >> 2) & 0x3) argument
2166 #define S_038010_FORMAT_COMP_Z(x) (((x) & 0x3) << 4) argument
2167 #define G_038010_FORMAT_COMP_Z(x) (((x) >> 4) & 0x3) argument
2169 #define S_038010_FORMAT_COMP_W(x) (((x) & 0x3) << 6) argument
2170 #define G_038010_FORMAT_COMP_W(x) (((x) >> 6) & 0x3) argument
2172 #define S_038010_NUM_FORMAT_ALL(x) (((x) & 0x3) << 8) argument
2173 #define G_038010_NUM_FORMAT_ALL(x) (((x) >> 8) & 0x3) argument
2175 #define S_038010_SRF_MODE_ALL(x) (((x) & 0x1) << 10) argument
2176 #define G_038010_SRF_MODE_ALL(x) (((x) >> 10) & 0x1) argument
2178 #define S_038010_FORCE_DEGAMMA(x) (((x) & 0x1) << 11) argument
2179 #define G_038010_FORCE_DEGAMMA(x) (((x) >> 11) & 0x1) argument
2181 #define S_038010_ENDIAN_SWAP(x) (((x) & 0x3) << 12) argument
2182 #define G_038010_ENDIAN_SWAP(x) (((x) >> 12) & 0x3) argument
2184 #define S_038010_REQUEST_SIZE(x) (((x) & 0x3) << 14) argument
2185 #define G_038010_REQUEST_SIZE(x) (((x) >> 14) & 0x3) argument
2187 #define S_038010_DST_SEL_X(x) (((x) & 0x7) << 16) argument
2188 #define G_038010_DST_SEL_X(x) (((x) >> 16) & 0x7) argument
2190 #define S_038010_DST_SEL_Y(x) (((x) & 0x7) << 19) argument
2191 #define G_038010_DST_SEL_Y(x) (((x) >> 19) & 0x7) argument
2193 #define S_038010_DST_SEL_Z(x) (((x) & 0x7) << 22) argument
2194 #define G_038010_DST_SEL_Z(x) (((x) >> 22) & 0x7) argument
2196 #define S_038010_DST_SEL_W(x) (((x) & 0x7) << 25) argument
2197 #define G_038010_DST_SEL_W(x) (((x) >> 25) & 0x7) argument
2200 # define SQ_SEL_Y 1
2205 #define S_038010_BASE_LEVEL(x) (((x) & 0xF) << 28) argument
2206 #define G_038010_BASE_LEVEL(x) (((x) >> 28) & 0xF) argument
2209 #define S_038014_LAST_LEVEL(x) (((x) & 0xF) << 0) argument
2210 #define G_038014_LAST_LEVEL(x) (((x) >> 0) & 0xF) argument
2212 #define S_038014_BASE_ARRAY(x) (((x) & 0x1FFF) << 4) argument
2213 #define G_038014_BASE_ARRAY(x) (((x) >> 4) & 0x1FFF) argument
2215 #define S_038014_LAST_ARRAY(x) (((x) & 0x1FFF) << 17) argument
2216 #define G_038014_LAST_ARRAY(x) (((x) >> 17) & 0x1FFF) argument
2219 #define S_0288A8_ITEMSIZE(x) (((x) & 0x7FFF) << 0) argument
2220 #define G_0288A8_ITEMSIZE(x) (((x) >> 0) & 0x7FFF) argument
2223 #define S_008C44_MEM_SIZE(x) (((x) & 0xFFFFFFFF) << 0) argument
2224 #define G_008C44_MEM_SIZE(x) (((x) >> 0) & 0xFFFFFFFF) argument
2227 #define S_0288B0_ITEMSIZE(x) (((x) & 0x7FFF) << 0) argument
2228 #define G_0288B0_ITEMSIZE(x) (((x) >> 0) & 0x7FFF) argument
2231 #define S_008C54_MEM_SIZE(x) (((x) & 0xFFFFFFFF) << 0) argument
2232 #define G_008C54_MEM_SIZE(x) (((x) >> 0) & 0xFFFFFFFF) argument
2235 #define S_0288C0_ITEMSIZE(x) (((x) & 0x7FFF) << 0) argument
2236 #define G_0288C0_ITEMSIZE(x) (((x) >> 0) & 0x7FFF) argument
2239 #define S_008C74_MEM_SIZE(x) (((x) & 0xFFFFFFFF) << 0) argument
2240 #define G_008C74_MEM_SIZE(x) (((x) >> 0) & 0xFFFFFFFF) argument
2243 #define S_0288B4_ITEMSIZE(x) (((x) & 0x7FFF) << 0) argument
2244 #define G_0288B4_ITEMSIZE(x) (((x) >> 0) & 0x7FFF) argument
2247 #define S_008C5C_MEM_SIZE(x) (((x) & 0xFFFFFFFF) << 0) argument
2248 #define G_008C5C_MEM_SIZE(x) (((x) >> 0) & 0xFFFFFFFF) argument
2251 #define S_0288AC_ITEMSIZE(x) (((x) & 0x7FFF) << 0) argument
2252 #define G_0288AC_ITEMSIZE(x) (((x) >> 0) & 0x7FFF) argument
2255 #define S_008C4C_MEM_SIZE(x) (((x) & 0xFFFFFFFF) << 0) argument
2256 #define G_008C4C_MEM_SIZE(x) (((x) >> 0) & 0xFFFFFFFF) argument
2259 #define S_0288BC_ITEMSIZE(x) (((x) & 0x7FFF) << 0) argument
2260 #define G_0288BC_ITEMSIZE(x) (((x) >> 0) & 0x7FFF) argument
2263 #define S_008C6C_MEM_SIZE(x) (((x) & 0xFFFFFFFF) << 0) argument
2264 #define G_008C6C_MEM_SIZE(x) (((x) >> 0) & 0xFFFFFFFF) argument
2267 #define S_0288C4_ITEMSIZE(x) (((x) & 0x7FFF) << 0) argument
2268 #define G_0288C4_ITEMSIZE(x) (((x) >> 0) & 0x7FFF) argument
2271 #define S_008C7C_MEM_SIZE(x) (((x) & 0xFFFFFFFF) << 0) argument
2272 #define G_008C7C_MEM_SIZE(x) (((x) >> 0) & 0xFFFFFFFF) argument
2275 #define S_0288B8_ITEMSIZE(x) (((x) & 0x7FFF) << 0) argument
2276 #define G_0288B8_ITEMSIZE(x) (((x) >> 0) & 0x7FFF) argument
2279 #define S_008C64_MEM_SIZE(x) (((x) & 0xFFFFFFFF) << 0) argument
2280 #define G_008C64_MEM_SIZE(x) (((x) >> 0) & 0xFFFFFFFF) argument
2283 #define S_0288C8_ITEMSIZE(x) (((x) & 0x7FFF) << 0) argument
2284 #define G_0288C8_ITEMSIZE(x) (((x) >> 0) & 0x7FFF) argument
2287 #define S_028010_FORMAT(x) (((x) & 0x7) << 0) argument
2288 #define G_028010_FORMAT(x) (((x) >> 0) & 0x7) argument
2298 #define S_028010_READ_SIZE(x) (((x) & 0x1) << 3) argument
2299 #define G_028010_READ_SIZE(x) (((x) >> 3) & 0x1) argument
2301 #define S_028010_ARRAY_MODE(x) (((x) & 0xF) << 15) argument
2302 #define G_028010_ARRAY_MODE(x) (((x) >> 15) & 0xF) argument
2306 #define S_028010_TILE_SURFACE_ENABLE(x) (((x) & 0x1) << 25) argument
2307 #define G_028010_TILE_SURFACE_ENABLE(x) (((x) >> 25) & 0x1) argument
2309 #define S_028010_TILE_COMPACT(x) (((x) & 0x1) << 26) argument
2310 #define G_028010_TILE_COMPACT(x) (((x) >> 26) & 0x1) argument
2312 #define S_028010_ZRANGE_PRECISION(x) (((x) & 0x1) << 31) argument
2313 #define G_028010_ZRANGE_PRECISION(x) (((x) >> 31) & 0x1) argument
2316 #define S_028000_PITCH_TILE_MAX(x) (((x) & 0x3FF) << 0) argument
2317 #define G_028000_PITCH_TILE_MAX(x) (((x) >> 0) & 0x3FF) argument
2319 #define S_028000_SLICE_TILE_MAX(x) (((x) & 0xFFFFF) << 10) argument
2320 #define G_028000_SLICE_TILE_MAX(x) (((x) >> 10) & 0xFFFFF) argument
2323 #define S_028004_SLICE_START(x) (((x) & 0x7FF) << 0) argument
2324 #define G_028004_SLICE_START(x) (((x) >> 0) & 0x7FF) argument
2326 #define S_028004_SLICE_MAX(x) (((x) & 0x7FF) << 13) argument
2327 #define G_028004_SLICE_MAX(x) (((x) >> 13) & 0x7FF) argument
2330 #define S_028800_STENCIL_ENABLE(x) (((x) & 0x1) << 0) argument
2331 #define G_028800_STENCIL_ENABLE(x) (((x) >> 0) & 0x1) argument
2333 #define S_028800_Z_ENABLE(x) (((x) & 0x1) << 1) argument
2334 #define G_028800_Z_ENABLE(x) (((x) >> 1) & 0x1) argument
2336 #define S_028800_Z_WRITE_ENABLE(x) (((x) & 0x1) << 2) argument
2337 #define G_028800_Z_WRITE_ENABLE(x) (((x) >> 2) & 0x1) argument
2339 #define S_028800_ZFUNC(x) (((x) & 0x7) << 4) argument
2340 #define G_028800_ZFUNC(x) (((x) >> 4) & 0x7) argument
2342 #define S_028800_BACKFACE_ENABLE(x) (((x) & 0x1) << 7) argument
2343 #define G_028800_BACKFACE_ENABLE(x) (((x) >> 7) & 0x1) argument
2345 #define S_028800_STENCILFUNC(x) (((x) & 0x7) << 8) argument
2346 #define G_028800_STENCILFUNC(x) (((x) >> 8) & 0x7) argument
2348 #define S_028800_STENCILFAIL(x) (((x) & 0x7) << 11) argument
2349 #define G_028800_STENCILFAIL(x) (((x) >> 11) & 0x7) argument
2351 #define S_028800_STENCILZPASS(x) (((x) & 0x7) << 14) argument
2352 #define G_028800_STENCILZPASS(x) (((x) >> 14) & 0x7) argument
2354 #define S_028800_STENCILZFAIL(x) (((x) & 0x7) << 17) argument
2355 #define G_028800_STENCILZFAIL(x) (((x) >> 17) & 0x7) argument
2357 #define S_028800_STENCILFUNC_BF(x) (((x) & 0x7) << 20) argument
2358 #define G_028800_STENCILFUNC_BF(x) (((x) >> 20) & 0x7) argument
2360 #define S_028800_STENCILFAIL_BF(x) (((x) & 0x7) << 23) argument
2361 #define G_028800_STENCILFAIL_BF(x) (((x) >> 23) & 0x7) argument
2363 #define S_028800_STENCILZPASS_BF(x) (((x) & 0x7) << 26) argument
2364 #define G_028800_STENCILZPASS_BF(x) (((x) >> 26) & 0x7) argument
2366 #define S_028800_STENCILZFAIL_BF(x) (((x) & 0x7) << 29) argument
2367 #define G_028800_STENCILZFAIL_BF(x) (((x) >> 29) & 0x7) argument