• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * include/linux/amlogic/media/registers/regs/parser_regs.h
3  *
4  * Copyright (C) 2017 Amlogic, Inc. All rights reserved.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
14  * more details.
15  *
16  */
17 
18 #ifndef PARSER_REGS_HEADER_
19 #define PARSER_REGS_HEADER_
20 
21 /*
22  * pay attention : the regs range has
23  * changed to 0x38xx in txlx, it was
24  * converted automatically based on
25  * the platform at init.
26  * #define PARSER_CONTROL 0x3860
27  * parser A
28  */
29 #define PARSER_CONTROL                    0x2960
30 #define PARSER_FETCH_ADDR                 0x2961
31 #define PARSER_FETCH_CMD                  0x2962
32 #define PARSER_FETCH_STOP_ADDR            0x2963
33 #define PARSER_FETCH_LEVEL                0x2964
34 #define PARSER_CONFIG                     0x2965
35 #define PFIFO_WR_PTR                      0x2966
36 #define PFIFO_RD_PTR                      0x2967
37 #define PFIFO_DATA                        0x2968
38 #define PARSER_SEARCH_PATTERN             0x2969
39 #define PARSER_SEARCH_MASK                0x296a
40 #define PARSER_INT_ENABLE                 0x296b
41 #define PARSER_INT_STATUS                 0x296c
42 #define PARSER_SCR_CTL                    0x296d
43 #define PARSER_SCR                        0x296e
44 #define PARSER_PARAMETER                  0x296f
45 #define PARSER_INSERT_DATA                0x2970
46 #define VAS_STREAM_ID                     0x2971
47 #define VIDEO_DTS                         0x2972
48 #define VIDEO_PTS                         0x2973
49 #define VIDEO_PTS_DTS_WR_PTR              0x2974
50 #define AUDIO_PTS                         0x2975
51 #define AUDIO_PTS_WR_PTR                  0x2976
52 #define PARSER_ES_CONTROL                 0x2977
53 #define PFIFO_MONITOR                     0x2978
54 #define PARSER_VIDEO_START_PTR            0x2980
55 #define PARSER_VIDEO_END_PTR              0x2981
56 #define PARSER_VIDEO_WP                   0x2982
57 #define PARSER_VIDEO_RP                   0x2983
58 #define PARSER_VIDEO_HOLE                 0x2984
59 #define PARSER_AUDIO_START_PTR            0x2985
60 #define PARSER_AUDIO_END_PTR              0x2986
61 #define PARSER_AUDIO_WP                   0x2987
62 #define PARSER_AUDIO_RP                   0x2988
63 #define PARSER_AUDIO_HOLE                 0x2989
64 #define PARSER_SUB_START_PTR              0x298a
65 #define PARSER_SUB_END_PTR                0x298b
66 #define PARSER_SUB_WP                     0x298c
67 #define PARSER_SUB_RP                     0x298d
68 #define PARSER_SUB_HOLE                   0x298e
69 #define PARSER_FETCH_INFO                 0x298f
70 #define PARSER_STATUS                     0x2990
71 #define PARSER_AV_WRAP_COUNT              0x2991
72 #define WRRSP_PARSER                      0x2992
73 #define PARSER_VIDEO2_START_PTR           0x2993
74 #define PARSER_VIDEO2_END_PTR             0x2994
75 #define PARSER_VIDEO2_WP                  0x2995
76 #define PARSER_VIDEO2_RP                  0x2996
77 #define PARSER_VIDEO2_HOLE                0x2997
78 #define PARSER_AV2_WRAP_COUNT             0x2998
79 
80 /*
81  * pay attention : the regs range has
82  * changed to 0x34xx in SM1, it was
83  * converted automatically based on
84  * the platform at init.
85  * #define PARSER_B_CONTROL 0x3460
86  * parser B
87  */
88 
89 #define PARSER_B_CONTROL                  0x2560
90 #define PARSER_B_FETCH_ADDR               0x2561
91 #define PARSER_B_FETCH_CMD                0x2562
92 #define PARSER_B_FETCH_STOP_ADDR          0x2563
93 #define PARSER_B_FETCH_LEVEL              0x2564
94 #define PARSER_B_CONFIG                   0x2565
95 #define PARSER_B_PFIFO_WR_PTR             0x2566
96 #define PARSER_B_PFIFO_RD_PTR             0x2567
97 #define PARSER_B_PFIFO_DATA               0x2568
98 #define PARSER_B_SEARCH_PATTERN           0x2569
99 #define PARSER_B_SEARCH_MASK              0x256a
100 #define PARSER_B_INT_ENABLE               0x256b
101 #define PARSER_B_INT_STATUS               0x256c
102 #define PARSER_B_SCR_CTL                  0x256d
103 #define PARSER_B_SCR                      0x256e
104 #define PARSER_B_PARAMETER                0x256f
105 #define PARSER_B_INSERT_DATA              0x2570
106 #define PARSER_B_VAS_STREAM_ID            0x2571
107 #define PARSER_B_VIDEO_DTS                0x2572
108 #define PARSER_B_VIDEO_PTS                0x2573
109 #define PARSER_B_VIDEO_PTS_DTS_WR_PTR     0x2574
110 #define PARSER_B_AUDIO_PTS                0x2575
111 #define PARSER_B_AUDIO_PTS_WR_PTR         0x2576
112 #define PARSER_B_ES_CONTROL               0x2577
113 #define PARSER_B_PFIFO_MONITOR            0x2578
114 #define PARSER_B_VIDEO_START_PTR          0x2580
115 #define PARSER_B_VIDEO_END_PTR            0x2581
116 #define PARSER_B_VIDEO_WP                 0x2582
117 #define PARSER_B_VIDEO_RP                 0x2583
118 #define PARSER_B_VIDEO_HOLE               0x2584
119 #define PARSER_B_AUDIO_START_PTR          0x2585
120 #define PARSER_B_AUDIO_END_PTR            0x2586
121 #define PARSER_B_AUDIO_WP                 0x2587
122 #define PARSER_B_AUDIO_RP                 0x2588
123 #define PARSER_B_AUDIO_HOLE               0x2589
124 #define PARSER_B_SUB_START_PTR            0x258a
125 #define PARSER_B_SUB_END_PTR              0x258b
126 #define PARSER_B_SUB_WP                   0x258c
127 #define PARSER_B_SUB_RP                   0x258d
128 #define PARSER_B_SUB_HOLE                 0x258e
129 #define PARSER_B_FETCH_INFO               0x258f
130 #define PARSER_B_STATUS                   0x2590
131 #define PARSER_B_AV_WRAP_COUNT            0x2591
132 #define PARSER_B_WRRSP_PARSER             0x2592
133 #define PARSER_B_VIDEO2_START_PTR         0x2593
134 #define PARSER_B_VIDEO2_END_PTR           0x2594
135 #define PARSER_B_VIDEO2_WP                0x2595
136 #define PARSER_B_VIDEO2_RP                0x2596
137 #define PARSER_B_VIDEO2_HOLE              0x2597
138 #define PARSER_B_AV2_WRAP_COUNT           0x2598
139 
140 #endif
141 
142