18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * Copyright 2008 Advanced Micro Devices, Inc.
38c2ecf20Sopenharmony_ci * Copyright 2008 Red Hat Inc.
48c2ecf20Sopenharmony_ci * Copyright 2009 Jerome Glisse.
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * Permission is hereby granted, free of charge, to any person obtaining a
78c2ecf20Sopenharmony_ci * copy of this software and associated documentation files (the "Software"),
88c2ecf20Sopenharmony_ci * to deal in the Software without restriction, including without limitation
98c2ecf20Sopenharmony_ci * the rights to use, copy, modify, merge, publish, distribute, sublicense,
108c2ecf20Sopenharmony_ci * and/or sell copies of the Software, and to permit persons to whom the
118c2ecf20Sopenharmony_ci * Software is furnished to do so, subject to the following conditions:
128c2ecf20Sopenharmony_ci *
138c2ecf20Sopenharmony_ci * The above copyright notice and this permission notice shall be included in
148c2ecf20Sopenharmony_ci * all copies or substantial portions of the Software.
158c2ecf20Sopenharmony_ci *
168c2ecf20Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
178c2ecf20Sopenharmony_ci * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
188c2ecf20Sopenharmony_ci * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
198c2ecf20Sopenharmony_ci * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
208c2ecf20Sopenharmony_ci * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
218c2ecf20Sopenharmony_ci * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
228c2ecf20Sopenharmony_ci * OTHER DEALINGS IN THE SOFTWARE.
238c2ecf20Sopenharmony_ci *
248c2ecf20Sopenharmony_ci * Authors: Dave Airlie
258c2ecf20Sopenharmony_ci *          Alex Deucher
268c2ecf20Sopenharmony_ci *          Jerome Glisse
278c2ecf20Sopenharmony_ci */
288c2ecf20Sopenharmony_ci#ifndef R420D_H
298c2ecf20Sopenharmony_ci#define R420D_H
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci#define R_0001F8_MC_IND_INDEX                        0x0001F8
328c2ecf20Sopenharmony_ci#define   S_0001F8_MC_IND_ADDR(x)                      (((x) & 0x7F) << 0)
338c2ecf20Sopenharmony_ci#define   G_0001F8_MC_IND_ADDR(x)                      (((x) >> 0) & 0x7F)
348c2ecf20Sopenharmony_ci#define   C_0001F8_MC_IND_ADDR                         0xFFFFFF80
358c2ecf20Sopenharmony_ci#define   S_0001F8_MC_IND_WR_EN(x)                     (((x) & 0x1) << 8)
368c2ecf20Sopenharmony_ci#define   G_0001F8_MC_IND_WR_EN(x)                     (((x) >> 8) & 0x1)
378c2ecf20Sopenharmony_ci#define   C_0001F8_MC_IND_WR_EN                        0xFFFFFEFF
388c2ecf20Sopenharmony_ci#define R_0001FC_MC_IND_DATA                         0x0001FC
398c2ecf20Sopenharmony_ci#define   S_0001FC_MC_IND_DATA(x)                      (((x) & 0xFFFFFFFF) << 0)
408c2ecf20Sopenharmony_ci#define   G_0001FC_MC_IND_DATA(x)                      (((x) >> 0) & 0xFFFFFFFF)
418c2ecf20Sopenharmony_ci#define   C_0001FC_MC_IND_DATA                         0x00000000
428c2ecf20Sopenharmony_ci#define R_0007C0_CP_STAT                             0x0007C0
438c2ecf20Sopenharmony_ci#define   S_0007C0_MRU_BUSY(x)                         (((x) & 0x1) << 0)
448c2ecf20Sopenharmony_ci#define   G_0007C0_MRU_BUSY(x)                         (((x) >> 0) & 0x1)
458c2ecf20Sopenharmony_ci#define   C_0007C0_MRU_BUSY                            0xFFFFFFFE
468c2ecf20Sopenharmony_ci#define   S_0007C0_MWU_BUSY(x)                         (((x) & 0x1) << 1)
478c2ecf20Sopenharmony_ci#define   G_0007C0_MWU_BUSY(x)                         (((x) >> 1) & 0x1)
488c2ecf20Sopenharmony_ci#define   C_0007C0_MWU_BUSY                            0xFFFFFFFD
498c2ecf20Sopenharmony_ci#define   S_0007C0_RSIU_BUSY(x)                        (((x) & 0x1) << 2)
508c2ecf20Sopenharmony_ci#define   G_0007C0_RSIU_BUSY(x)                        (((x) >> 2) & 0x1)
518c2ecf20Sopenharmony_ci#define   C_0007C0_RSIU_BUSY                           0xFFFFFFFB
528c2ecf20Sopenharmony_ci#define   S_0007C0_RCIU_BUSY(x)                        (((x) & 0x1) << 3)
538c2ecf20Sopenharmony_ci#define   G_0007C0_RCIU_BUSY(x)                        (((x) >> 3) & 0x1)
548c2ecf20Sopenharmony_ci#define   C_0007C0_RCIU_BUSY                           0xFFFFFFF7
558c2ecf20Sopenharmony_ci#define   S_0007C0_CSF_PRIMARY_BUSY(x)                 (((x) & 0x1) << 9)
568c2ecf20Sopenharmony_ci#define   G_0007C0_CSF_PRIMARY_BUSY(x)                 (((x) >> 9) & 0x1)
578c2ecf20Sopenharmony_ci#define   C_0007C0_CSF_PRIMARY_BUSY                    0xFFFFFDFF
588c2ecf20Sopenharmony_ci#define   S_0007C0_CSF_INDIRECT_BUSY(x)                (((x) & 0x1) << 10)
598c2ecf20Sopenharmony_ci#define   G_0007C0_CSF_INDIRECT_BUSY(x)                (((x) >> 10) & 0x1)
608c2ecf20Sopenharmony_ci#define   C_0007C0_CSF_INDIRECT_BUSY                   0xFFFFFBFF
618c2ecf20Sopenharmony_ci#define   S_0007C0_CSQ_PRIMARY_BUSY(x)                 (((x) & 0x1) << 11)
628c2ecf20Sopenharmony_ci#define   G_0007C0_CSQ_PRIMARY_BUSY(x)                 (((x) >> 11) & 0x1)
638c2ecf20Sopenharmony_ci#define   C_0007C0_CSQ_PRIMARY_BUSY                    0xFFFFF7FF
648c2ecf20Sopenharmony_ci#define   S_0007C0_CSQ_INDIRECT_BUSY(x)                (((x) & 0x1) << 12)
658c2ecf20Sopenharmony_ci#define   G_0007C0_CSQ_INDIRECT_BUSY(x)                (((x) >> 12) & 0x1)
668c2ecf20Sopenharmony_ci#define   C_0007C0_CSQ_INDIRECT_BUSY                   0xFFFFEFFF
678c2ecf20Sopenharmony_ci#define   S_0007C0_CSI_BUSY(x)                         (((x) & 0x1) << 13)
688c2ecf20Sopenharmony_ci#define   G_0007C0_CSI_BUSY(x)                         (((x) >> 13) & 0x1)
698c2ecf20Sopenharmony_ci#define   C_0007C0_CSI_BUSY                            0xFFFFDFFF
708c2ecf20Sopenharmony_ci#define   S_0007C0_CSF_INDIRECT2_BUSY(x)               (((x) & 0x1) << 14)
718c2ecf20Sopenharmony_ci#define   G_0007C0_CSF_INDIRECT2_BUSY(x)               (((x) >> 14) & 0x1)
728c2ecf20Sopenharmony_ci#define   C_0007C0_CSF_INDIRECT2_BUSY                  0xFFFFBFFF
738c2ecf20Sopenharmony_ci#define   S_0007C0_CSQ_INDIRECT2_BUSY(x)               (((x) & 0x1) << 15)
748c2ecf20Sopenharmony_ci#define   G_0007C0_CSQ_INDIRECT2_BUSY(x)               (((x) >> 15) & 0x1)
758c2ecf20Sopenharmony_ci#define   C_0007C0_CSQ_INDIRECT2_BUSY                  0xFFFF7FFF
768c2ecf20Sopenharmony_ci#define   S_0007C0_GUIDMA_BUSY(x)                      (((x) & 0x1) << 28)
778c2ecf20Sopenharmony_ci#define   G_0007C0_GUIDMA_BUSY(x)                      (((x) >> 28) & 0x1)
788c2ecf20Sopenharmony_ci#define   C_0007C0_GUIDMA_BUSY                         0xEFFFFFFF
798c2ecf20Sopenharmony_ci#define   S_0007C0_VIDDMA_BUSY(x)                      (((x) & 0x1) << 29)
808c2ecf20Sopenharmony_ci#define   G_0007C0_VIDDMA_BUSY(x)                      (((x) >> 29) & 0x1)
818c2ecf20Sopenharmony_ci#define   C_0007C0_VIDDMA_BUSY                         0xDFFFFFFF
828c2ecf20Sopenharmony_ci#define   S_0007C0_CMDSTRM_BUSY(x)                     (((x) & 0x1) << 30)
838c2ecf20Sopenharmony_ci#define   G_0007C0_CMDSTRM_BUSY(x)                     (((x) >> 30) & 0x1)
848c2ecf20Sopenharmony_ci#define   C_0007C0_CMDSTRM_BUSY                        0xBFFFFFFF
858c2ecf20Sopenharmony_ci#define   S_0007C0_CP_BUSY(x)                          (((x) & 0x1) << 31)
868c2ecf20Sopenharmony_ci#define   G_0007C0_CP_BUSY(x)                          (((x) >> 31) & 0x1)
878c2ecf20Sopenharmony_ci#define   C_0007C0_CP_BUSY                             0x7FFFFFFF
888c2ecf20Sopenharmony_ci#define R_000E40_RBBM_STATUS                         0x000E40
898c2ecf20Sopenharmony_ci#define   S_000E40_CMDFIFO_AVAIL(x)                    (((x) & 0x7F) << 0)
908c2ecf20Sopenharmony_ci#define   G_000E40_CMDFIFO_AVAIL(x)                    (((x) >> 0) & 0x7F)
918c2ecf20Sopenharmony_ci#define   C_000E40_CMDFIFO_AVAIL                       0xFFFFFF80
928c2ecf20Sopenharmony_ci#define   S_000E40_HIRQ_ON_RBB(x)                      (((x) & 0x1) << 8)
938c2ecf20Sopenharmony_ci#define   G_000E40_HIRQ_ON_RBB(x)                      (((x) >> 8) & 0x1)
948c2ecf20Sopenharmony_ci#define   C_000E40_HIRQ_ON_RBB                         0xFFFFFEFF
958c2ecf20Sopenharmony_ci#define   S_000E40_CPRQ_ON_RBB(x)                      (((x) & 0x1) << 9)
968c2ecf20Sopenharmony_ci#define   G_000E40_CPRQ_ON_RBB(x)                      (((x) >> 9) & 0x1)
978c2ecf20Sopenharmony_ci#define   C_000E40_CPRQ_ON_RBB                         0xFFFFFDFF
988c2ecf20Sopenharmony_ci#define   S_000E40_CFRQ_ON_RBB(x)                      (((x) & 0x1) << 10)
998c2ecf20Sopenharmony_ci#define   G_000E40_CFRQ_ON_RBB(x)                      (((x) >> 10) & 0x1)
1008c2ecf20Sopenharmony_ci#define   C_000E40_CFRQ_ON_RBB                         0xFFFFFBFF
1018c2ecf20Sopenharmony_ci#define   S_000E40_HIRQ_IN_RTBUF(x)                    (((x) & 0x1) << 11)
1028c2ecf20Sopenharmony_ci#define   G_000E40_HIRQ_IN_RTBUF(x)                    (((x) >> 11) & 0x1)
1038c2ecf20Sopenharmony_ci#define   C_000E40_HIRQ_IN_RTBUF                       0xFFFFF7FF
1048c2ecf20Sopenharmony_ci#define   S_000E40_CPRQ_IN_RTBUF(x)                    (((x) & 0x1) << 12)
1058c2ecf20Sopenharmony_ci#define   G_000E40_CPRQ_IN_RTBUF(x)                    (((x) >> 12) & 0x1)
1068c2ecf20Sopenharmony_ci#define   C_000E40_CPRQ_IN_RTBUF                       0xFFFFEFFF
1078c2ecf20Sopenharmony_ci#define   S_000E40_CFRQ_IN_RTBUF(x)                    (((x) & 0x1) << 13)
1088c2ecf20Sopenharmony_ci#define   G_000E40_CFRQ_IN_RTBUF(x)                    (((x) >> 13) & 0x1)
1098c2ecf20Sopenharmony_ci#define   C_000E40_CFRQ_IN_RTBUF                       0xFFFFDFFF
1108c2ecf20Sopenharmony_ci#define   S_000E40_CF_PIPE_BUSY(x)                     (((x) & 0x1) << 14)
1118c2ecf20Sopenharmony_ci#define   G_000E40_CF_PIPE_BUSY(x)                     (((x) >> 14) & 0x1)
1128c2ecf20Sopenharmony_ci#define   C_000E40_CF_PIPE_BUSY                        0xFFFFBFFF
1138c2ecf20Sopenharmony_ci#define   S_000E40_ENG_EV_BUSY(x)                      (((x) & 0x1) << 15)
1148c2ecf20Sopenharmony_ci#define   G_000E40_ENG_EV_BUSY(x)                      (((x) >> 15) & 0x1)
1158c2ecf20Sopenharmony_ci#define   C_000E40_ENG_EV_BUSY                         0xFFFF7FFF
1168c2ecf20Sopenharmony_ci#define   S_000E40_CP_CMDSTRM_BUSY(x)                  (((x) & 0x1) << 16)
1178c2ecf20Sopenharmony_ci#define   G_000E40_CP_CMDSTRM_BUSY(x)                  (((x) >> 16) & 0x1)
1188c2ecf20Sopenharmony_ci#define   C_000E40_CP_CMDSTRM_BUSY                     0xFFFEFFFF
1198c2ecf20Sopenharmony_ci#define   S_000E40_E2_BUSY(x)                          (((x) & 0x1) << 17)
1208c2ecf20Sopenharmony_ci#define   G_000E40_E2_BUSY(x)                          (((x) >> 17) & 0x1)
1218c2ecf20Sopenharmony_ci#define   C_000E40_E2_BUSY                             0xFFFDFFFF
1228c2ecf20Sopenharmony_ci#define   S_000E40_RB2D_BUSY(x)                        (((x) & 0x1) << 18)
1238c2ecf20Sopenharmony_ci#define   G_000E40_RB2D_BUSY(x)                        (((x) >> 18) & 0x1)
1248c2ecf20Sopenharmony_ci#define   C_000E40_RB2D_BUSY                           0xFFFBFFFF
1258c2ecf20Sopenharmony_ci#define   S_000E40_RB3D_BUSY(x)                        (((x) & 0x1) << 19)
1268c2ecf20Sopenharmony_ci#define   G_000E40_RB3D_BUSY(x)                        (((x) >> 19) & 0x1)
1278c2ecf20Sopenharmony_ci#define   C_000E40_RB3D_BUSY                           0xFFF7FFFF
1288c2ecf20Sopenharmony_ci#define   S_000E40_VAP_BUSY(x)                         (((x) & 0x1) << 20)
1298c2ecf20Sopenharmony_ci#define   G_000E40_VAP_BUSY(x)                         (((x) >> 20) & 0x1)
1308c2ecf20Sopenharmony_ci#define   C_000E40_VAP_BUSY                            0xFFEFFFFF
1318c2ecf20Sopenharmony_ci#define   S_000E40_RE_BUSY(x)                          (((x) & 0x1) << 21)
1328c2ecf20Sopenharmony_ci#define   G_000E40_RE_BUSY(x)                          (((x) >> 21) & 0x1)
1338c2ecf20Sopenharmony_ci#define   C_000E40_RE_BUSY                             0xFFDFFFFF
1348c2ecf20Sopenharmony_ci#define   S_000E40_TAM_BUSY(x)                         (((x) & 0x1) << 22)
1358c2ecf20Sopenharmony_ci#define   G_000E40_TAM_BUSY(x)                         (((x) >> 22) & 0x1)
1368c2ecf20Sopenharmony_ci#define   C_000E40_TAM_BUSY                            0xFFBFFFFF
1378c2ecf20Sopenharmony_ci#define   S_000E40_TDM_BUSY(x)                         (((x) & 0x1) << 23)
1388c2ecf20Sopenharmony_ci#define   G_000E40_TDM_BUSY(x)                         (((x) >> 23) & 0x1)
1398c2ecf20Sopenharmony_ci#define   C_000E40_TDM_BUSY                            0xFF7FFFFF
1408c2ecf20Sopenharmony_ci#define   S_000E40_PB_BUSY(x)                          (((x) & 0x1) << 24)
1418c2ecf20Sopenharmony_ci#define   G_000E40_PB_BUSY(x)                          (((x) >> 24) & 0x1)
1428c2ecf20Sopenharmony_ci#define   C_000E40_PB_BUSY                             0xFEFFFFFF
1438c2ecf20Sopenharmony_ci#define   S_000E40_TIM_BUSY(x)                         (((x) & 0x1) << 25)
1448c2ecf20Sopenharmony_ci#define   G_000E40_TIM_BUSY(x)                         (((x) >> 25) & 0x1)
1458c2ecf20Sopenharmony_ci#define   C_000E40_TIM_BUSY                            0xFDFFFFFF
1468c2ecf20Sopenharmony_ci#define   S_000E40_GA_BUSY(x)                          (((x) & 0x1) << 26)
1478c2ecf20Sopenharmony_ci#define   G_000E40_GA_BUSY(x)                          (((x) >> 26) & 0x1)
1488c2ecf20Sopenharmony_ci#define   C_000E40_GA_BUSY                             0xFBFFFFFF
1498c2ecf20Sopenharmony_ci#define   S_000E40_CBA2D_BUSY(x)                       (((x) & 0x1) << 27)
1508c2ecf20Sopenharmony_ci#define   G_000E40_CBA2D_BUSY(x)                       (((x) >> 27) & 0x1)
1518c2ecf20Sopenharmony_ci#define   C_000E40_CBA2D_BUSY                          0xF7FFFFFF
1528c2ecf20Sopenharmony_ci#define   S_000E40_GUI_ACTIVE(x)                       (((x) & 0x1) << 31)
1538c2ecf20Sopenharmony_ci#define   G_000E40_GUI_ACTIVE(x)                       (((x) >> 31) & 0x1)
1548c2ecf20Sopenharmony_ci#define   C_000E40_GUI_ACTIVE                          0x7FFFFFFF
1558c2ecf20Sopenharmony_ci
1568c2ecf20Sopenharmony_ci/* CLK registers */
1578c2ecf20Sopenharmony_ci#define R_00000D_SCLK_CNTL                           0x00000D
1588c2ecf20Sopenharmony_ci#define   S_00000D_SCLK_SRC_SEL(x)                     (((x) & 0x7) << 0)
1598c2ecf20Sopenharmony_ci#define   G_00000D_SCLK_SRC_SEL(x)                     (((x) >> 0) & 0x7)
1608c2ecf20Sopenharmony_ci#define   C_00000D_SCLK_SRC_SEL                        0xFFFFFFF8
1618c2ecf20Sopenharmony_ci#define   S_00000D_CP_MAX_DYN_STOP_LAT(x)              (((x) & 0x1) << 3)
1628c2ecf20Sopenharmony_ci#define   G_00000D_CP_MAX_DYN_STOP_LAT(x)              (((x) >> 3) & 0x1)
1638c2ecf20Sopenharmony_ci#define   C_00000D_CP_MAX_DYN_STOP_LAT                 0xFFFFFFF7
1648c2ecf20Sopenharmony_ci#define   S_00000D_HDP_MAX_DYN_STOP_LAT(x)             (((x) & 0x1) << 4)
1658c2ecf20Sopenharmony_ci#define   G_00000D_HDP_MAX_DYN_STOP_LAT(x)             (((x) >> 4) & 0x1)
1668c2ecf20Sopenharmony_ci#define   C_00000D_HDP_MAX_DYN_STOP_LAT                0xFFFFFFEF
1678c2ecf20Sopenharmony_ci#define   S_00000D_TV_MAX_DYN_STOP_LAT(x)              (((x) & 0x1) << 5)
1688c2ecf20Sopenharmony_ci#define   G_00000D_TV_MAX_DYN_STOP_LAT(x)              (((x) >> 5) & 0x1)
1698c2ecf20Sopenharmony_ci#define   C_00000D_TV_MAX_DYN_STOP_LAT                 0xFFFFFFDF
1708c2ecf20Sopenharmony_ci#define   S_00000D_E2_MAX_DYN_STOP_LAT(x)              (((x) & 0x1) << 6)
1718c2ecf20Sopenharmony_ci#define   G_00000D_E2_MAX_DYN_STOP_LAT(x)              (((x) >> 6) & 0x1)
1728c2ecf20Sopenharmony_ci#define   C_00000D_E2_MAX_DYN_STOP_LAT                 0xFFFFFFBF
1738c2ecf20Sopenharmony_ci#define   S_00000D_SE_MAX_DYN_STOP_LAT(x)              (((x) & 0x1) << 7)
1748c2ecf20Sopenharmony_ci#define   G_00000D_SE_MAX_DYN_STOP_LAT(x)              (((x) >> 7) & 0x1)
1758c2ecf20Sopenharmony_ci#define   C_00000D_SE_MAX_DYN_STOP_LAT                 0xFFFFFF7F
1768c2ecf20Sopenharmony_ci#define   S_00000D_IDCT_MAX_DYN_STOP_LAT(x)            (((x) & 0x1) << 8)
1778c2ecf20Sopenharmony_ci#define   G_00000D_IDCT_MAX_DYN_STOP_LAT(x)            (((x) >> 8) & 0x1)
1788c2ecf20Sopenharmony_ci#define   C_00000D_IDCT_MAX_DYN_STOP_LAT               0xFFFFFEFF
1798c2ecf20Sopenharmony_ci#define   S_00000D_VIP_MAX_DYN_STOP_LAT(x)             (((x) & 0x1) << 9)
1808c2ecf20Sopenharmony_ci#define   G_00000D_VIP_MAX_DYN_STOP_LAT(x)             (((x) >> 9) & 0x1)
1818c2ecf20Sopenharmony_ci#define   C_00000D_VIP_MAX_DYN_STOP_LAT                0xFFFFFDFF
1828c2ecf20Sopenharmony_ci#define   S_00000D_RE_MAX_DYN_STOP_LAT(x)              (((x) & 0x1) << 10)
1838c2ecf20Sopenharmony_ci#define   G_00000D_RE_MAX_DYN_STOP_LAT(x)              (((x) >> 10) & 0x1)
1848c2ecf20Sopenharmony_ci#define   C_00000D_RE_MAX_DYN_STOP_LAT                 0xFFFFFBFF
1858c2ecf20Sopenharmony_ci#define   S_00000D_PB_MAX_DYN_STOP_LAT(x)              (((x) & 0x1) << 11)
1868c2ecf20Sopenharmony_ci#define   G_00000D_PB_MAX_DYN_STOP_LAT(x)              (((x) >> 11) & 0x1)
1878c2ecf20Sopenharmony_ci#define   C_00000D_PB_MAX_DYN_STOP_LAT                 0xFFFFF7FF
1888c2ecf20Sopenharmony_ci#define   S_00000D_TAM_MAX_DYN_STOP_LAT(x)             (((x) & 0x1) << 12)
1898c2ecf20Sopenharmony_ci#define   G_00000D_TAM_MAX_DYN_STOP_LAT(x)             (((x) >> 12) & 0x1)
1908c2ecf20Sopenharmony_ci#define   C_00000D_TAM_MAX_DYN_STOP_LAT                0xFFFFEFFF
1918c2ecf20Sopenharmony_ci#define   S_00000D_TDM_MAX_DYN_STOP_LAT(x)             (((x) & 0x1) << 13)
1928c2ecf20Sopenharmony_ci#define   G_00000D_TDM_MAX_DYN_STOP_LAT(x)             (((x) >> 13) & 0x1)
1938c2ecf20Sopenharmony_ci#define   C_00000D_TDM_MAX_DYN_STOP_LAT                0xFFFFDFFF
1948c2ecf20Sopenharmony_ci#define   S_00000D_RB_MAX_DYN_STOP_LAT(x)              (((x) & 0x1) << 14)
1958c2ecf20Sopenharmony_ci#define   G_00000D_RB_MAX_DYN_STOP_LAT(x)              (((x) >> 14) & 0x1)
1968c2ecf20Sopenharmony_ci#define   C_00000D_RB_MAX_DYN_STOP_LAT                 0xFFFFBFFF
1978c2ecf20Sopenharmony_ci#define   S_00000D_FORCE_DISP2(x)                      (((x) & 0x1) << 15)
1988c2ecf20Sopenharmony_ci#define   G_00000D_FORCE_DISP2(x)                      (((x) >> 15) & 0x1)
1998c2ecf20Sopenharmony_ci#define   C_00000D_FORCE_DISP2                         0xFFFF7FFF
2008c2ecf20Sopenharmony_ci#define   S_00000D_FORCE_CP(x)                         (((x) & 0x1) << 16)
2018c2ecf20Sopenharmony_ci#define   G_00000D_FORCE_CP(x)                         (((x) >> 16) & 0x1)
2028c2ecf20Sopenharmony_ci#define   C_00000D_FORCE_CP                            0xFFFEFFFF
2038c2ecf20Sopenharmony_ci#define   S_00000D_FORCE_HDP(x)                        (((x) & 0x1) << 17)
2048c2ecf20Sopenharmony_ci#define   G_00000D_FORCE_HDP(x)                        (((x) >> 17) & 0x1)
2058c2ecf20Sopenharmony_ci#define   C_00000D_FORCE_HDP                           0xFFFDFFFF
2068c2ecf20Sopenharmony_ci#define   S_00000D_FORCE_DISP1(x)                      (((x) & 0x1) << 18)
2078c2ecf20Sopenharmony_ci#define   G_00000D_FORCE_DISP1(x)                      (((x) >> 18) & 0x1)
2088c2ecf20Sopenharmony_ci#define   C_00000D_FORCE_DISP1                         0xFFFBFFFF
2098c2ecf20Sopenharmony_ci#define   S_00000D_FORCE_TOP(x)                        (((x) & 0x1) << 19)
2108c2ecf20Sopenharmony_ci#define   G_00000D_FORCE_TOP(x)                        (((x) >> 19) & 0x1)
2118c2ecf20Sopenharmony_ci#define   C_00000D_FORCE_TOP                           0xFFF7FFFF
2128c2ecf20Sopenharmony_ci#define   S_00000D_FORCE_E2(x)                         (((x) & 0x1) << 20)
2138c2ecf20Sopenharmony_ci#define   G_00000D_FORCE_E2(x)                         (((x) >> 20) & 0x1)
2148c2ecf20Sopenharmony_ci#define   C_00000D_FORCE_E2                            0xFFEFFFFF
2158c2ecf20Sopenharmony_ci#define   S_00000D_FORCE_VAP(x)                        (((x) & 0x1) << 21)
2168c2ecf20Sopenharmony_ci#define   G_00000D_FORCE_VAP(x)                        (((x) >> 21) & 0x1)
2178c2ecf20Sopenharmony_ci#define   C_00000D_FORCE_VAP                           0xFFDFFFFF
2188c2ecf20Sopenharmony_ci#define   S_00000D_FORCE_IDCT(x)                       (((x) & 0x1) << 22)
2198c2ecf20Sopenharmony_ci#define   G_00000D_FORCE_IDCT(x)                       (((x) >> 22) & 0x1)
2208c2ecf20Sopenharmony_ci#define   C_00000D_FORCE_IDCT                          0xFFBFFFFF
2218c2ecf20Sopenharmony_ci#define   S_00000D_FORCE_VIP(x)                        (((x) & 0x1) << 23)
2228c2ecf20Sopenharmony_ci#define   G_00000D_FORCE_VIP(x)                        (((x) >> 23) & 0x1)
2238c2ecf20Sopenharmony_ci#define   C_00000D_FORCE_VIP                           0xFF7FFFFF
2248c2ecf20Sopenharmony_ci#define   S_00000D_FORCE_RE(x)                         (((x) & 0x1) << 24)
2258c2ecf20Sopenharmony_ci#define   G_00000D_FORCE_RE(x)                         (((x) >> 24) & 0x1)
2268c2ecf20Sopenharmony_ci#define   C_00000D_FORCE_RE                            0xFEFFFFFF
2278c2ecf20Sopenharmony_ci#define   S_00000D_FORCE_SR(x)                         (((x) & 0x1) << 25)
2288c2ecf20Sopenharmony_ci#define   G_00000D_FORCE_SR(x)                         (((x) >> 25) & 0x1)
2298c2ecf20Sopenharmony_ci#define   C_00000D_FORCE_SR                            0xFDFFFFFF
2308c2ecf20Sopenharmony_ci#define   S_00000D_FORCE_PX(x)                         (((x) & 0x1) << 26)
2318c2ecf20Sopenharmony_ci#define   G_00000D_FORCE_PX(x)                         (((x) >> 26) & 0x1)
2328c2ecf20Sopenharmony_ci#define   C_00000D_FORCE_PX                            0xFBFFFFFF
2338c2ecf20Sopenharmony_ci#define   S_00000D_FORCE_TX(x)                         (((x) & 0x1) << 27)
2348c2ecf20Sopenharmony_ci#define   G_00000D_FORCE_TX(x)                         (((x) >> 27) & 0x1)
2358c2ecf20Sopenharmony_ci#define   C_00000D_FORCE_TX                            0xF7FFFFFF
2368c2ecf20Sopenharmony_ci#define   S_00000D_FORCE_US(x)                         (((x) & 0x1) << 28)
2378c2ecf20Sopenharmony_ci#define   G_00000D_FORCE_US(x)                         (((x) >> 28) & 0x1)
2388c2ecf20Sopenharmony_ci#define   C_00000D_FORCE_US                            0xEFFFFFFF
2398c2ecf20Sopenharmony_ci#define   S_00000D_FORCE_TV_SCLK(x)                    (((x) & 0x1) << 29)
2408c2ecf20Sopenharmony_ci#define   G_00000D_FORCE_TV_SCLK(x)                    (((x) >> 29) & 0x1)
2418c2ecf20Sopenharmony_ci#define   C_00000D_FORCE_TV_SCLK                       0xDFFFFFFF
2428c2ecf20Sopenharmony_ci#define   S_00000D_FORCE_SU(x)                         (((x) & 0x1) << 30)
2438c2ecf20Sopenharmony_ci#define   G_00000D_FORCE_SU(x)                         (((x) >> 30) & 0x1)
2448c2ecf20Sopenharmony_ci#define   C_00000D_FORCE_SU                            0xBFFFFFFF
2458c2ecf20Sopenharmony_ci#define   S_00000D_FORCE_OV0(x)                        (((x) & 0x1) << 31)
2468c2ecf20Sopenharmony_ci#define   G_00000D_FORCE_OV0(x)                        (((x) >> 31) & 0x1)
2478c2ecf20Sopenharmony_ci#define   C_00000D_FORCE_OV0                           0x7FFFFFFF
2488c2ecf20Sopenharmony_ci
2498c2ecf20Sopenharmony_ci#endif
250