Rev 3031 | Rev 5078 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3031 | Rev 3192 | ||
---|---|---|---|
Line 43... | Line 43... | ||
43 | #define JUNIPER_GB_ADDR_CONFIG_GOLDEN 0x02010002 |
43 | #define JUNIPER_GB_ADDR_CONFIG_GOLDEN 0x02010002 |
44 | #define REDWOOD_GB_ADDR_CONFIG_GOLDEN 0x02010002 |
44 | #define REDWOOD_GB_ADDR_CONFIG_GOLDEN 0x02010002 |
45 | #define TURKS_GB_ADDR_CONFIG_GOLDEN 0x02010002 |
45 | #define TURKS_GB_ADDR_CONFIG_GOLDEN 0x02010002 |
46 | #define CEDAR_GB_ADDR_CONFIG_GOLDEN 0x02010001 |
46 | #define CEDAR_GB_ADDR_CONFIG_GOLDEN 0x02010001 |
47 | #define CAICOS_GB_ADDR_CONFIG_GOLDEN 0x02010001 |
47 | #define CAICOS_GB_ADDR_CONFIG_GOLDEN 0x02010001 |
- | 48 | #define SUMO_GB_ADDR_CONFIG_GOLDEN 0x02010002 |
|
- | 49 | #define SUMO2_GB_ADDR_CONFIG_GOLDEN 0x02010002 |
|
Line 48... | Line 50... | ||
48 | 50 | ||
Line 49... | Line 51... | ||
49 | /* Registers */ |
51 | /* Registers */ |
50 | 52 | ||
Line 353... | Line 355... | ||
353 | # define AFMT_AUDIO_INFO_SOURCE (1 << 6) /* 0 - sound block; 1 - afmt regs */ |
355 | # define AFMT_AUDIO_INFO_SOURCE (1 << 6) /* 0 - sound block; 1 - afmt regs */ |
354 | # define AFMT_AUDIO_INFO_UPDATE (1 << 7) |
356 | # define AFMT_AUDIO_INFO_UPDATE (1 << 7) |
355 | # define AFMT_MPEG_INFO_UPDATE (1 << 10) |
357 | # define AFMT_MPEG_INFO_UPDATE (1 << 10) |
356 | #define AFMT_GENERIC0_7 0x7138 |
358 | #define AFMT_GENERIC0_7 0x7138 |
Line -... | Line 359... | ||
- | 359 | ||
- | 360 | /* DCE4/5 ELD audio interface */ |
|
- | 361 | #define AZ_F0_CODEC_PIN0_CONTROL_AUDIO_DESCRIPTOR0 0x5f84 /* LPCM */ |
|
- | 362 | #define AZ_F0_CODEC_PIN0_CONTROL_AUDIO_DESCRIPTOR1 0x5f88 /* AC3 */ |
|
- | 363 | #define AZ_F0_CODEC_PIN0_CONTROL_AUDIO_DESCRIPTOR2 0x5f8c /* MPEG1 */ |
|
- | 364 | #define AZ_F0_CODEC_PIN0_CONTROL_AUDIO_DESCRIPTOR3 0x5f90 /* MP3 */ |
|
- | 365 | #define AZ_F0_CODEC_PIN0_CONTROL_AUDIO_DESCRIPTOR4 0x5f94 /* MPEG2 */ |
|
- | 366 | #define AZ_F0_CODEC_PIN0_CONTROL_AUDIO_DESCRIPTOR5 0x5f98 /* AAC */ |
|
- | 367 | #define AZ_F0_CODEC_PIN0_CONTROL_AUDIO_DESCRIPTOR6 0x5f9c /* DTS */ |
|
- | 368 | #define AZ_F0_CODEC_PIN0_CONTROL_AUDIO_DESCRIPTOR7 0x5fa0 /* ATRAC */ |
|
- | 369 | #define AZ_F0_CODEC_PIN0_CONTROL_AUDIO_DESCRIPTOR8 0x5fa4 /* one bit audio - leave at 0 (default) */ |
|
- | 370 | #define AZ_F0_CODEC_PIN0_CONTROL_AUDIO_DESCRIPTOR9 0x5fa8 /* Dolby Digital */ |
|
- | 371 | #define AZ_F0_CODEC_PIN0_CONTROL_AUDIO_DESCRIPTOR10 0x5fac /* DTS-HD */ |
|
- | 372 | #define AZ_F0_CODEC_PIN0_CONTROL_AUDIO_DESCRIPTOR11 0x5fb0 /* MAT-MLP */ |
|
- | 373 | #define AZ_F0_CODEC_PIN0_CONTROL_AUDIO_DESCRIPTOR12 0x5fb4 /* DTS */ |
|
- | 374 | #define AZ_F0_CODEC_PIN0_CONTROL_AUDIO_DESCRIPTOR13 0x5fb8 /* WMA Pro */ |
|
- | 375 | # define MAX_CHANNELS(x) (((x) & 0x7) << 0) |
|
- | 376 | /* max channels minus one. 7 = 8 channels */ |
|
- | 377 | # define SUPPORTED_FREQUENCIES(x) (((x) & 0xff) << 8) |
|
- | 378 | # define DESCRIPTOR_BYTE_2(x) (((x) & 0xff) << 16) |
|
- | 379 | # define SUPPORTED_FREQUENCIES_STEREO(x) (((x) & 0xff) << 24) /* LPCM only */ |
|
- | 380 | /* SUPPORTED_FREQUENCIES, SUPPORTED_FREQUENCIES_STEREO |
|
- | 381 | * bit0 = 32 kHz |
|
- | 382 | * bit1 = 44.1 kHz |
|
- | 383 | * bit2 = 48 kHz |
|
- | 384 | * bit3 = 88.2 kHz |
|
- | 385 | * bit4 = 96 kHz |
|
- | 386 | * bit5 = 176.4 kHz |
|
- | 387 | * bit6 = 192 kHz |
|
- | 388 | */ |
|
- | 389 | ||
- | 390 | #define AZ_HOT_PLUG_CONTROL 0x5e78 |
|
- | 391 | # define AZ_FORCE_CODEC_WAKE (1 << 0) |
|
- | 392 | # define PIN0_JACK_DETECTION_ENABLE (1 << 4) |
|
- | 393 | # define PIN1_JACK_DETECTION_ENABLE (1 << 5) |
|
- | 394 | # define PIN2_JACK_DETECTION_ENABLE (1 << 6) |
|
- | 395 | # define PIN3_JACK_DETECTION_ENABLE (1 << 7) |
|
- | 396 | # define PIN0_UNSOLICITED_RESPONSE_ENABLE (1 << 8) |
|
- | 397 | # define PIN1_UNSOLICITED_RESPONSE_ENABLE (1 << 9) |
|
- | 398 | # define PIN2_UNSOLICITED_RESPONSE_ENABLE (1 << 10) |
|
- | 399 | # define PIN3_UNSOLICITED_RESPONSE_ENABLE (1 << 11) |
|
- | 400 | # define CODEC_HOT_PLUG_ENABLE (1 << 12) |
|
- | 401 | # define PIN0_AUDIO_ENABLED (1 << 24) |
|
- | 402 | # define PIN1_AUDIO_ENABLED (1 << 25) |
|
- | 403 | # define PIN2_AUDIO_ENABLED (1 << 26) |
|
- | 404 | # define PIN3_AUDIO_ENABLED (1 << 27) |
|
- | 405 | # define AUDIO_ENABLED (1 << 31) |
|
- | 406 | ||
357 | 407 | ||
358 | #define GC_USER_SHADER_PIPE_CONFIG 0x8954 |
408 | #define GC_USER_SHADER_PIPE_CONFIG 0x8954 |
359 | #define INACTIVE_QD_PIPES(x) ((x) << 8) |
409 | #define INACTIVE_QD_PIPES(x) ((x) << 8) |
360 | #define INACTIVE_QD_PIPES_MASK 0x0000FF00 |
410 | #define INACTIVE_QD_PIPES_MASK 0x0000FF00 |
361 | #define INACTIVE_SIMDS(x) ((x) << 16) |
411 | #define INACTIVE_SIMDS(x) ((x) << 16) |
Line 649... | Line 699... | ||
649 | #define VM_CONTEXT0_CNTL 0x1410 |
699 | #define VM_CONTEXT0_CNTL 0x1410 |
650 | #define ENABLE_CONTEXT (1 << 0) |
700 | #define ENABLE_CONTEXT (1 << 0) |
651 | #define PAGE_TABLE_DEPTH(x) (((x) & 3) << 1) |
701 | #define PAGE_TABLE_DEPTH(x) (((x) & 3) << 1) |
652 | #define RANGE_PROTECTION_FAULT_ENABLE_DEFAULT (1 << 4) |
702 | #define RANGE_PROTECTION_FAULT_ENABLE_DEFAULT (1 << 4) |
653 | #define VM_CONTEXT1_CNTL 0x1414 |
703 | #define VM_CONTEXT1_CNTL 0x1414 |
- | 704 | #define VM_CONTEXT1_CNTL2 0x1434 |
|
654 | #define VM_CONTEXT0_PAGE_TABLE_BASE_ADDR 0x153C |
705 | #define VM_CONTEXT0_PAGE_TABLE_BASE_ADDR 0x153C |
655 | #define VM_CONTEXT0_PAGE_TABLE_END_ADDR 0x157C |
706 | #define VM_CONTEXT0_PAGE_TABLE_END_ADDR 0x157C |
656 | #define VM_CONTEXT0_PAGE_TABLE_START_ADDR 0x155C |
707 | #define VM_CONTEXT0_PAGE_TABLE_START_ADDR 0x155C |
657 | #define VM_CONTEXT0_PROTECTION_FAULT_DEFAULT_ADDR 0x1518 |
708 | #define VM_CONTEXT0_PROTECTION_FAULT_DEFAULT_ADDR 0x1518 |
658 | #define VM_CONTEXT0_REQUEST_RESPONSE 0x1470 |
709 | #define VM_CONTEXT0_REQUEST_RESPONSE 0x1470 |
Line 670... | Line 721... | ||
670 | #define VM_L2_CNTL3 0x1408 |
721 | #define VM_L2_CNTL3 0x1408 |
671 | #define BANK_SELECT(x) ((x) << 0) |
722 | #define BANK_SELECT(x) ((x) << 0) |
672 | #define CACHE_UPDATE_MODE(x) ((x) << 6) |
723 | #define CACHE_UPDATE_MODE(x) ((x) << 6) |
673 | #define VM_L2_STATUS 0x140C |
724 | #define VM_L2_STATUS 0x140C |
674 | #define L2_BUSY (1 << 0) |
725 | #define L2_BUSY (1 << 0) |
- | 726 | #define VM_CONTEXT1_PROTECTION_FAULT_ADDR 0x14FC |
|
- | 727 | #define VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x14DC |
|
Line 675... | Line 728... | ||
675 | 728 | ||
Line 676... | Line 729... | ||
676 | #define WAIT_UNTIL 0x8040 |
729 | #define WAIT_UNTIL 0x8040 |
677 | 730 | ||
Line 687... | Line 740... | ||
687 | #define SOFT_RESET_MC (1 << 11) |
740 | #define SOFT_RESET_MC (1 << 11) |
688 | #define SOFT_RESET_RLC (1 << 13) |
741 | #define SOFT_RESET_RLC (1 << 13) |
689 | #define SOFT_RESET_ROM (1 << 14) |
742 | #define SOFT_RESET_ROM (1 << 14) |
690 | #define SOFT_RESET_SEM (1 << 15) |
743 | #define SOFT_RESET_SEM (1 << 15) |
691 | #define SOFT_RESET_VMC (1 << 17) |
744 | #define SOFT_RESET_VMC (1 << 17) |
- | 745 | #define SOFT_RESET_DMA (1 << 20) |
|
692 | #define SOFT_RESET_TST (1 << 21) |
746 | #define SOFT_RESET_TST (1 << 21) |
693 | #define SOFT_RESET_REGBB (1 << 22) |
747 | #define SOFT_RESET_REGBB (1 << 22) |
694 | #define SOFT_RESET_ORB (1 << 23) |
748 | #define SOFT_RESET_ORB (1 << 23) |
Line 695... | Line 749... | ||
695 | 749 | ||
Line 852... | Line 906... | ||
852 | #define DC_HPD6_CONTROL 0x6060 |
906 | #define DC_HPD6_CONTROL 0x6060 |
853 | # define DC_HPDx_CONNECTION_TIMER(x) ((x) << 0) |
907 | # define DC_HPDx_CONNECTION_TIMER(x) ((x) << 0) |
854 | # define DC_HPDx_RX_INT_TIMER(x) ((x) << 16) |
908 | # define DC_HPDx_RX_INT_TIMER(x) ((x) << 16) |
855 | # define DC_HPDx_EN (1 << 28) |
909 | # define DC_HPDx_EN (1 << 28) |
Line -... | Line 910... | ||
- | 910 | ||
- | 911 | /* ASYNC DMA */ |
|
- | 912 | #define DMA_RB_RPTR 0xd008 |
|
- | 913 | #define DMA_RB_WPTR 0xd00c |
|
- | 914 | ||
- | 915 | #define DMA_CNTL 0xd02c |
|
- | 916 | # define TRAP_ENABLE (1 << 0) |
|
- | 917 | # define SEM_INCOMPLETE_INT_ENABLE (1 << 1) |
|
- | 918 | # define SEM_WAIT_INT_ENABLE (1 << 2) |
|
- | 919 | # define DATA_SWAP_ENABLE (1 << 3) |
|
- | 920 | # define FENCE_SWAP_ENABLE (1 << 4) |
|
- | 921 | # define CTXEMPTY_INT_ENABLE (1 << 28) |
|
- | 922 | #define DMA_TILING_CONFIG 0xD0B8 |
|
- | 923 | ||
- | 924 | #define CAYMAN_DMA1_CNTL 0xd82c |
|
- | 925 | ||
- | 926 | /* async DMA packets */ |
|
- | 927 | #define DMA_PACKET(cmd, t, s, n) ((((cmd) & 0xF) << 28) | \ |
|
- | 928 | (((t) & 0x1) << 23) | \ |
|
- | 929 | (((s) & 0x1) << 22) | \ |
|
- | 930 | (((n) & 0xFFFFF) << 0)) |
|
- | 931 | /* async DMA Packet types */ |
|
- | 932 | #define DMA_PACKET_WRITE 0x2 |
|
- | 933 | #define DMA_PACKET_COPY 0x3 |
|
- | 934 | #define DMA_PACKET_INDIRECT_BUFFER 0x4 |
|
- | 935 | #define DMA_PACKET_SEMAPHORE 0x5 |
|
- | 936 | #define DMA_PACKET_FENCE 0x6 |
|
- | 937 | #define DMA_PACKET_TRAP 0x7 |
|
- | 938 | #define DMA_PACKET_SRBM_WRITE 0x9 |
|
- | 939 | #define DMA_PACKET_CONSTANT_FILL 0xd |
|
- | 940 | #define DMA_PACKET_NOP 0xf |
|
856 | 941 | ||
857 | /* PCIE link stuff */ |
942 | /* PCIE link stuff */ |
858 | #define PCIE_LC_TRAINING_CNTL 0xa1 /* PCIE_P */ |
943 | #define PCIE_LC_TRAINING_CNTL 0xa1 /* PCIE_P */ |
859 | #define PCIE_LC_LINK_WIDTH_CNTL 0xa2 /* PCIE_P */ |
944 | #define PCIE_LC_LINK_WIDTH_CNTL 0xa2 /* PCIE_P */ |
860 | # define LC_LINK_WIDTH_SHIFT 0 |
945 | # define LC_LINK_WIDTH_SHIFT 0 |
Line 949... | Line 1034... | ||
949 | #define PACKET3_MPEG_INDEX 0x3A |
1034 | #define PACKET3_MPEG_INDEX 0x3A |
950 | #define PACKET3_COPY_DW 0x3B |
1035 | #define PACKET3_COPY_DW 0x3B |
951 | #define PACKET3_WAIT_REG_MEM 0x3C |
1036 | #define PACKET3_WAIT_REG_MEM 0x3C |
952 | #define PACKET3_MEM_WRITE 0x3D |
1037 | #define PACKET3_MEM_WRITE 0x3D |
953 | #define PACKET3_INDIRECT_BUFFER 0x32 |
1038 | #define PACKET3_INDIRECT_BUFFER 0x32 |
- | 1039 | #define PACKET3_CP_DMA 0x41 |
|
- | 1040 | /* 1. header |
|
- | 1041 | * 2. SRC_ADDR_LO or DATA [31:0] |
|
- | 1042 | * 3. CP_SYNC [31] | SRC_SEL [30:29] | ENGINE [27] | DST_SEL [21:20] | |
|
- | 1043 | * SRC_ADDR_HI [7:0] |
|
- | 1044 | * 4. DST_ADDR_LO [31:0] |
|
- | 1045 | * 5. DST_ADDR_HI [7:0] |
|
- | 1046 | * 6. COMMAND [29:22] | BYTE_COUNT [20:0] |
|
- | 1047 | */ |
|
- | 1048 | # define PACKET3_CP_DMA_DST_SEL(x) ((x) << 20) |
|
- | 1049 | /* 0 - SRC_ADDR |
|
- | 1050 | * 1 - GDS |
|
- | 1051 | */ |
|
- | 1052 | # define PACKET3_CP_DMA_ENGINE(x) ((x) << 27) |
|
- | 1053 | /* 0 - ME |
|
- | 1054 | * 1 - PFP |
|
- | 1055 | */ |
|
- | 1056 | # define PACKET3_CP_DMA_SRC_SEL(x) ((x) << 29) |
|
- | 1057 | /* 0 - SRC_ADDR |
|
- | 1058 | * 1 - GDS |
|
- | 1059 | * 2 - DATA |
|
- | 1060 | */ |
|
- | 1061 | # define PACKET3_CP_DMA_CP_SYNC (1 << 31) |
|
- | 1062 | /* COMMAND */ |
|
- | 1063 | # define PACKET3_CP_DMA_DIS_WC (1 << 21) |
|
- | 1064 | # define PACKET3_CP_DMA_CMD_SRC_SWAP(x) ((x) << 23) |
|
- | 1065 | /* 0 - none |
|
- | 1066 | * 1 - 8 in 16 |
|
- | 1067 | * 2 - 8 in 32 |
|
- | 1068 | * 3 - 8 in 64 |
|
- | 1069 | */ |
|
- | 1070 | # define PACKET3_CP_DMA_CMD_DST_SWAP(x) ((x) << 24) |
|
- | 1071 | /* 0 - none |
|
- | 1072 | * 1 - 8 in 16 |
|
- | 1073 | * 2 - 8 in 32 |
|
- | 1074 | * 3 - 8 in 64 |
|
- | 1075 | */ |
|
- | 1076 | # define PACKET3_CP_DMA_CMD_SAS (1 << 26) |
|
- | 1077 | /* 0 - memory |
|
- | 1078 | * 1 - register |
|
- | 1079 | */ |
|
- | 1080 | # define PACKET3_CP_DMA_CMD_DAS (1 << 27) |
|
- | 1081 | /* 0 - memory |
|
- | 1082 | * 1 - register |
|
- | 1083 | */ |
|
- | 1084 | # define PACKET3_CP_DMA_CMD_SAIC (1 << 28) |
|
- | 1085 | # define PACKET3_CP_DMA_CMD_DAIC (1 << 29) |
|
954 | #define PACKET3_SURFACE_SYNC 0x43 |
1086 | #define PACKET3_SURFACE_SYNC 0x43 |
955 | # define PACKET3_CB0_DEST_BASE_ENA (1 << 6) |
1087 | # define PACKET3_CB0_DEST_BASE_ENA (1 << 6) |
956 | # define PACKET3_CB1_DEST_BASE_ENA (1 << 7) |
1088 | # define PACKET3_CB1_DEST_BASE_ENA (1 << 7) |
957 | # define PACKET3_CB2_DEST_BASE_ENA (1 << 8) |
1089 | # define PACKET3_CB2_DEST_BASE_ENA (1 << 8) |
958 | # define PACKET3_CB3_DEST_BASE_ENA (1 << 9) |
1090 | # define PACKET3_CB3_DEST_BASE_ENA (1 << 9) |
Line 1894... | Line 2026... | ||
1894 | #define CAYMAN_MSAA_NUM_SAMPLES_MASK 0x7 |
2026 | #define CAYMAN_MSAA_NUM_SAMPLES_MASK 0x7 |
1895 | #define CAYMAN_SX_SCATTER_EXPORT_BASE 0x28358 |
2027 | #define CAYMAN_SX_SCATTER_EXPORT_BASE 0x28358 |
1896 | /* cayman packet3 addition */ |
2028 | /* cayman packet3 addition */ |
1897 | #define CAYMAN_PACKET3_DEALLOC_STATE 0x14 |
2029 | #define CAYMAN_PACKET3_DEALLOC_STATE 0x14 |
Line -... | Line 2030... | ||
- | 2030 | ||
- | 2031 | /* DMA regs common on r6xx/r7xx/evergreen/ni */ |
|
- | 2032 | #define DMA_RB_CNTL 0xd000 |
|
- | 2033 | # define DMA_RB_ENABLE (1 << 0) |
|
- | 2034 | # define DMA_RB_SIZE(x) ((x) << 1) /* log2 */ |
|
- | 2035 | # define DMA_RB_SWAP_ENABLE (1 << 9) /* 8IN32 */ |
|
- | 2036 | # define DMA_RPTR_WRITEBACK_ENABLE (1 << 12) |
|
- | 2037 | # define DMA_RPTR_WRITEBACK_SWAP_ENABLE (1 << 13) /* 8IN32 */ |
|
- | 2038 | # define DMA_RPTR_WRITEBACK_TIMER(x) ((x) << 16) /* log2 */ |
|
- | 2039 | #define DMA_STATUS_REG 0xd034 |
|
- | 2040 | # define DMA_IDLE (1 << 0) |
|
1898 | 2041 |