diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-09-25 16:25:32 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-09-27 17:17:51 -0400 |
commit | e7c9109f60e2d5f5570f5e3c71dcc824bb415688 (patch) | |
tree | b58bcb9391f89f23803fb87fb0b4640d1b762167 /drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_proj_gm20b.h | |
parent | 32ed45a4635ddff52bf77e9218f3d401f7f41cee (diff) |
gpu: nvgpu: gm20b: Qualify unsigned HW constants
Re-generate hardware headers so that all unsigned constants are
qualified with postfix U. This removes the need for compiler to do
implicit signed->unsigned conversions.
Change-Id: Ic50345252c6d7ccb7e9059120b6cc751cdc28362
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1567984
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_proj_gm20b.h')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_proj_gm20b.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_proj_gm20b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_proj_gm20b.h index c08dcc4c..d44cc463 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_proj_gm20b.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_proj_gm20b.h | |||
@@ -58,110 +58,110 @@ | |||
58 | 58 | ||
59 | static inline u32 proj_gpc_base_v(void) | 59 | static inline u32 proj_gpc_base_v(void) |
60 | { | 60 | { |
61 | return 0x00500000; | 61 | return 0x00500000U; |
62 | } | 62 | } |
63 | static inline u32 proj_gpc_shared_base_v(void) | 63 | static inline u32 proj_gpc_shared_base_v(void) |
64 | { | 64 | { |
65 | return 0x00418000; | 65 | return 0x00418000U; |
66 | } | 66 | } |
67 | static inline u32 proj_gpc_stride_v(void) | 67 | static inline u32 proj_gpc_stride_v(void) |
68 | { | 68 | { |
69 | return 0x00008000; | 69 | return 0x00008000U; |
70 | } | 70 | } |
71 | static inline u32 proj_ltc_stride_v(void) | 71 | static inline u32 proj_ltc_stride_v(void) |
72 | { | 72 | { |
73 | return 0x00002000; | 73 | return 0x00002000U; |
74 | } | 74 | } |
75 | static inline u32 proj_lts_stride_v(void) | 75 | static inline u32 proj_lts_stride_v(void) |
76 | { | 76 | { |
77 | return 0x00000200; | 77 | return 0x00000200U; |
78 | } | 78 | } |
79 | static inline u32 proj_fbpa_stride_v(void) | 79 | static inline u32 proj_fbpa_stride_v(void) |
80 | { | 80 | { |
81 | return 0x00001000; | 81 | return 0x00001000U; |
82 | } | 82 | } |
83 | static inline u32 proj_ppc_in_gpc_base_v(void) | 83 | static inline u32 proj_ppc_in_gpc_base_v(void) |
84 | { | 84 | { |
85 | return 0x00003000; | 85 | return 0x00003000U; |
86 | } | 86 | } |
87 | static inline u32 proj_ppc_in_gpc_shared_base_v(void) | 87 | static inline u32 proj_ppc_in_gpc_shared_base_v(void) |
88 | { | 88 | { |
89 | return 0x00003e00; | 89 | return 0x00003e00U; |
90 | } | 90 | } |
91 | static inline u32 proj_ppc_in_gpc_stride_v(void) | 91 | static inline u32 proj_ppc_in_gpc_stride_v(void) |
92 | { | 92 | { |
93 | return 0x00000200; | 93 | return 0x00000200U; |
94 | } | 94 | } |
95 | static inline u32 proj_rop_base_v(void) | 95 | static inline u32 proj_rop_base_v(void) |
96 | { | 96 | { |
97 | return 0x00410000; | 97 | return 0x00410000U; |
98 | } | 98 | } |
99 | static inline u32 proj_rop_shared_base_v(void) | 99 | static inline u32 proj_rop_shared_base_v(void) |
100 | { | 100 | { |
101 | return 0x00408800; | 101 | return 0x00408800U; |
102 | } | 102 | } |
103 | static inline u32 proj_rop_stride_v(void) | 103 | static inline u32 proj_rop_stride_v(void) |
104 | { | 104 | { |
105 | return 0x00000400; | 105 | return 0x00000400U; |
106 | } | 106 | } |
107 | static inline u32 proj_tpc_in_gpc_base_v(void) | 107 | static inline u32 proj_tpc_in_gpc_base_v(void) |
108 | { | 108 | { |
109 | return 0x00004000; | 109 | return 0x00004000U; |
110 | } | 110 | } |
111 | static inline u32 proj_tpc_in_gpc_stride_v(void) | 111 | static inline u32 proj_tpc_in_gpc_stride_v(void) |
112 | { | 112 | { |
113 | return 0x00000800; | 113 | return 0x00000800U; |
114 | } | 114 | } |
115 | static inline u32 proj_tpc_in_gpc_shared_base_v(void) | 115 | static inline u32 proj_tpc_in_gpc_shared_base_v(void) |
116 | { | 116 | { |
117 | return 0x00001800; | 117 | return 0x00001800U; |
118 | } | 118 | } |
119 | static inline u32 proj_host_num_engines_v(void) | 119 | static inline u32 proj_host_num_engines_v(void) |
120 | { | 120 | { |
121 | return 0x00000002; | 121 | return 0x00000002U; |
122 | } | 122 | } |
123 | static inline u32 proj_host_num_pbdma_v(void) | 123 | static inline u32 proj_host_num_pbdma_v(void) |
124 | { | 124 | { |
125 | return 0x00000001; | 125 | return 0x00000001U; |
126 | } | 126 | } |
127 | static inline u32 proj_scal_litter_num_tpc_per_gpc_v(void) | 127 | static inline u32 proj_scal_litter_num_tpc_per_gpc_v(void) |
128 | { | 128 | { |
129 | return 0x00000002; | 129 | return 0x00000002U; |
130 | } | 130 | } |
131 | static inline u32 proj_scal_litter_num_sm_per_tpc_v(void) | 131 | static inline u32 proj_scal_litter_num_sm_per_tpc_v(void) |
132 | { | 132 | { |
133 | return 0x00000001; | 133 | return 0x00000001U; |
134 | } | 134 | } |
135 | static inline u32 proj_scal_litter_num_fbps_v(void) | 135 | static inline u32 proj_scal_litter_num_fbps_v(void) |
136 | { | 136 | { |
137 | return 0x00000001; | 137 | return 0x00000001U; |
138 | } | 138 | } |
139 | static inline u32 proj_scal_litter_num_fbpas_v(void) | 139 | static inline u32 proj_scal_litter_num_fbpas_v(void) |
140 | { | 140 | { |
141 | return 0x00000001; | 141 | return 0x00000001U; |
142 | } | 142 | } |
143 | static inline u32 proj_scal_litter_num_gpcs_v(void) | 143 | static inline u32 proj_scal_litter_num_gpcs_v(void) |
144 | { | 144 | { |
145 | return 0x00000001; | 145 | return 0x00000001U; |
146 | } | 146 | } |
147 | static inline u32 proj_scal_litter_num_pes_per_gpc_v(void) | 147 | static inline u32 proj_scal_litter_num_pes_per_gpc_v(void) |
148 | { | 148 | { |
149 | return 0x00000001; | 149 | return 0x00000001U; |
150 | } | 150 | } |
151 | static inline u32 proj_scal_litter_num_tpcs_per_pes_v(void) | 151 | static inline u32 proj_scal_litter_num_tpcs_per_pes_v(void) |
152 | { | 152 | { |
153 | return 0x00000002; | 153 | return 0x00000002U; |
154 | } | 154 | } |
155 | static inline u32 proj_scal_litter_num_zcull_banks_v(void) | 155 | static inline u32 proj_scal_litter_num_zcull_banks_v(void) |
156 | { | 156 | { |
157 | return 0x00000004; | 157 | return 0x00000004U; |
158 | } | 158 | } |
159 | static inline u32 proj_scal_max_gpcs_v(void) | 159 | static inline u32 proj_scal_max_gpcs_v(void) |
160 | { | 160 | { |
161 | return 0x00000020; | 161 | return 0x00000020U; |
162 | } | 162 | } |
163 | static inline u32 proj_scal_max_tpc_per_gpc_v(void) | 163 | static inline u32 proj_scal_max_tpc_per_gpc_v(void) |
164 | { | 164 | { |
165 | return 0x00000008; | 165 | return 0x00000008U; |
166 | } | 166 | } |
167 | #endif | 167 | #endif |