Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright 2010 Advanced Micro Devices, Inc.
0003  *
0004  * Permission is hereby granted, free of charge, to any person obtaining a
0005  * copy of this software and associated documentation files (the "Software"),
0006  * to deal in the Software without restriction, including without limitation
0007  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
0008  * and/or sell copies of the Software, and to permit persons to whom the
0009  * Software is furnished to do so, subject to the following conditions:
0010  *
0011  * The above copyright notice and this permission notice shall be included in
0012  * all copies or substantial portions of the Software.
0013  *
0014  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
0017  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
0018  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
0019  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0020  * OTHER DEALINGS IN THE SOFTWARE.
0021  *
0022  * Authors: Alex Deucher
0023  */
0024 #ifndef __NI_REG_H__
0025 #define __NI_REG_H__
0026 
0027 /* northern islands - DCE5 */
0028 
0029 #define NI_INPUT_GAMMA_CONTROL                         0x6840
0030 #       define NI_GRPH_INPUT_GAMMA_MODE(x)             (((x) & 0x3) << 0)
0031 #       define NI_INPUT_GAMMA_USE_LUT                  0
0032 #       define NI_INPUT_GAMMA_BYPASS                   1
0033 #       define NI_INPUT_GAMMA_SRGB_24                  2
0034 #       define NI_INPUT_GAMMA_XVYCC_222                3
0035 #       define NI_OVL_INPUT_GAMMA_MODE(x)              (((x) & 0x3) << 4)
0036 
0037 #define NI_PRESCALE_GRPH_CONTROL                       0x68b4
0038 #       define NI_GRPH_PRESCALE_BYPASS                 (1 << 4)
0039 
0040 #define NI_PRESCALE_OVL_CONTROL                        0x68c4
0041 #       define NI_OVL_PRESCALE_BYPASS                  (1 << 4)
0042 
0043 #define NI_INPUT_CSC_CONTROL                           0x68d4
0044 #       define NI_INPUT_CSC_GRPH_MODE(x)               (((x) & 0x3) << 0)
0045 #       define NI_INPUT_CSC_BYPASS                     0
0046 #       define NI_INPUT_CSC_PROG_COEFF                 1
0047 #       define NI_INPUT_CSC_PROG_SHARED_MATRIXA        2
0048 #       define NI_INPUT_CSC_OVL_MODE(x)                (((x) & 0x3) << 4)
0049 
0050 #define NI_OUTPUT_CSC_CONTROL                          0x68f0
0051 #       define NI_OUTPUT_CSC_GRPH_MODE(x)              (((x) & 0x7) << 0)
0052 #       define NI_OUTPUT_CSC_BYPASS                    0
0053 #       define NI_OUTPUT_CSC_TV_RGB                    1
0054 #       define NI_OUTPUT_CSC_YCBCR_601                 2
0055 #       define NI_OUTPUT_CSC_YCBCR_709                 3
0056 #       define NI_OUTPUT_CSC_PROG_COEFF                4
0057 #       define NI_OUTPUT_CSC_PROG_SHARED_MATRIXB       5
0058 #       define NI_OUTPUT_CSC_OVL_MODE(x)               (((x) & 0x7) << 4)
0059 
0060 #define NI_DEGAMMA_CONTROL                             0x6960
0061 #       define NI_GRPH_DEGAMMA_MODE(x)                 (((x) & 0x3) << 0)
0062 #       define NI_DEGAMMA_BYPASS                       0
0063 #       define NI_DEGAMMA_SRGB_24                      1
0064 #       define NI_DEGAMMA_XVYCC_222                    2
0065 #       define NI_OVL_DEGAMMA_MODE(x)                  (((x) & 0x3) << 4)
0066 #       define NI_ICON_DEGAMMA_MODE(x)                 (((x) & 0x3) << 8)
0067 #       define NI_CURSOR_DEGAMMA_MODE(x)               (((x) & 0x3) << 12)
0068 
0069 #define NI_GAMUT_REMAP_CONTROL                         0x6964
0070 #       define NI_GRPH_GAMUT_REMAP_MODE(x)             (((x) & 0x3) << 0)
0071 #       define NI_GAMUT_REMAP_BYPASS                   0
0072 #       define NI_GAMUT_REMAP_PROG_COEFF               1
0073 #       define NI_GAMUT_REMAP_PROG_SHARED_MATRIXA      2
0074 #       define NI_GAMUT_REMAP_PROG_SHARED_MATRIXB      3
0075 #       define NI_OVL_GAMUT_REMAP_MODE(x)              (((x) & 0x3) << 4)
0076 
0077 #define NI_REGAMMA_CONTROL                             0x6a80
0078 #       define NI_GRPH_REGAMMA_MODE(x)                 (((x) & 0x7) << 0)
0079 #       define NI_REGAMMA_BYPASS                       0
0080 #       define NI_REGAMMA_SRGB_24                      1
0081 #       define NI_REGAMMA_XVYCC_222                    2
0082 #       define NI_REGAMMA_PROG_A                       3
0083 #       define NI_REGAMMA_PROG_B                       4
0084 #       define NI_OVL_REGAMMA_MODE(x)                  (((x) & 0x7) << 4)
0085 
0086 #define NI_DP_MSE_LINK_TIMING                          0x73a0
0087 #   define NI_DP_MSE_LINK_FRAME         (((x) & 0x3ff) << 0)
0088 #   define NI_DP_MSE_LINK_LINE                      (((x) & 0x3) << 16)
0089 
0090 #define NI_DP_MSE_MISC_CNTL                            0x736c
0091 #       define NI_DP_MSE_BLANK_CODE                    (((x) & 0x1) << 0)
0092 #       define NI_DP_MSE_TIMESTAMP_MODE                (((x) & 0x1) << 4)
0093 #       define NI_DP_MSE_ZERO_ENCODER                  (((x) & 0x1) << 8)
0094 
0095 #define NI_DP_MSE_RATE_CNTL                            0x7384
0096 #       define NI_DP_MSE_RATE_Y(x)                   (((x) & 0x3ffffff) << 0)
0097 #       define NI_DP_MSE_RATE_X(x)                   (((x) & 0x3f) << 26)
0098 
0099 #define NI_DP_MSE_RATE_UPDATE                          0x738c
0100 
0101 #define NI_DP_MSE_SAT0                                 0x7390
0102 #       define NI_DP_MSE_SAT_SRC0(x)                   (((x) & 0x7) << 0)
0103 #       define NI_DP_MSE_SAT_SLOT_COUNT0(x)            (((x) & 0x3f) << 8)
0104 #       define NI_DP_MSE_SAT_SRC1(x)                   (((x) & 0x7) << 16)
0105 #       define NI_DP_MSE_SAT_SLOT_COUNT1(x)            (((x) & 0x3f) << 24)
0106 
0107 #define NI_DP_MSE_SAT1                                 0x7394
0108 
0109 #define NI_DP_MSE_SAT2                                 0x7398
0110 
0111 #define NI_DP_MSE_SAT_UPDATE                           0x739c
0112 #       define NI_DP_MSE_SAT_UPDATE_MASK               0x3
0113 #       define NI_DP_MSE_16_MTP_KEEPOUT                0x100
0114 
0115 #define NI_DIG_BE_CNTL                                 0x7140
0116 #       define NI_DIG_FE_SOURCE_SELECT(x)              (((x) & 0x7f) << 8)
0117 #       define NI_DIG_FE_DIG_MODE(x)                   (((x) & 0x7) << 16)
0118 #       define NI_DIG_MODE_DP_SST                      0
0119 #       define NI_DIG_MODE_LVDS                        1
0120 #       define NI_DIG_MODE_TMDS_DVI                    2
0121 #       define NI_DIG_MODE_TMDS_HDMI                   3
0122 #       define NI_DIG_MODE_DP_MST                      5
0123 #       define NI_DIG_HPD_SELECT(x)                    (((x) & 0x7) << 28)
0124 
0125 #define NI_DIG_FE_CNTL                                 0x7000
0126 #       define NI_DIG_SOURCE_SELECT(x)                 (((x) & 0x3) << 0)
0127 #       define NI_DIG_STEREOSYNC_SELECT(x)             (((x) & 0x3) << 4)
0128 #       define NI_DIG_STEREOSYNC_GATE_EN(x)            (((x) & 0x1) << 8)
0129 #       define NI_DIG_DUAL_LINK_ENABLE(x)              (((x) & 0x1) << 16)
0130 #       define NI_DIG_SWAP(x)                          (((x) & 0x1) << 18)
0131 #       define NI_DIG_SYMCLK_FE_ON                     (0x1 << 24)
0132 #endif