diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2014-10-27 03:16:51 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:52 -0400 |
commit | 4739499f07b29282ee1031d08adaa76c238da2a6 (patch) | |
tree | 10caa152eea6250e46cad6172553069b4bb3dcb9 /drivers/gpu/nvgpu/gm20b/hw_ram_gm20b.h | |
parent | b5bb4f53dbdde8473e1160d4522c5d9da55f115f (diff) |
gpu: nvgpu: Sync gk20a and gm20b headers
Synchronize gk20a and gm20b headers. All registers which were added
to gk20a are now added to gm20b, and some registers that are unused
are removed.
Bug 1567274
Change-Id: Ia3b7958c148e495cbff420ee56bb448db0f58680
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/590313
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/hw_ram_gm20b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hw_ram_gm20b.h | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hw_ram_gm20b.h b/drivers/gpu/nvgpu/gm20b/hw_ram_gm20b.h index 2e1df1d4..a05f1c2b 100644 --- a/drivers/gpu/nvgpu/gm20b/hw_ram_gm20b.h +++ b/drivers/gpu/nvgpu/gm20b/hw_ram_gm20b.h | |||
@@ -338,7 +338,7 @@ static inline u32 ram_fc_chid_id_w(void) | |||
338 | { | 338 | { |
339 | return 0; | 339 | return 0; |
340 | } | 340 | } |
341 | static inline u32 ram_fc_pb_timeslice_w(void) | 341 | static inline u32 ram_fc_runlist_timeslice_w(void) |
342 | { | 342 | { |
343 | return 62; | 343 | return 62; |
344 | } | 344 | } |
@@ -402,4 +402,44 @@ static inline u32 ram_rl_entry_size_v(void) | |||
402 | { | 402 | { |
403 | return 0x00000008; | 403 | return 0x00000008; |
404 | } | 404 | } |
405 | static inline u32 ram_rl_entry_chid_f(u32 v) | ||
406 | { | ||
407 | return (v & 0xfff) << 0; | ||
408 | } | ||
409 | static inline u32 ram_rl_entry_id_f(u32 v) | ||
410 | { | ||
411 | return (v & 0xfff) << 0; | ||
412 | } | ||
413 | static inline u32 ram_rl_entry_type_f(u32 v) | ||
414 | { | ||
415 | return (v & 0x1) << 13; | ||
416 | } | ||
417 | static inline u32 ram_rl_entry_type_chid_f(void) | ||
418 | { | ||
419 | return 0x0; | ||
420 | } | ||
421 | static inline u32 ram_rl_entry_type_tsg_f(void) | ||
422 | { | ||
423 | return 0x2000; | ||
424 | } | ||
425 | static inline u32 ram_rl_entry_timeslice_scale_f(u32 v) | ||
426 | { | ||
427 | return (v & 0xf) << 14; | ||
428 | } | ||
429 | static inline u32 ram_rl_entry_timeslice_scale_3_f(void) | ||
430 | { | ||
431 | return 0xc000; | ||
432 | } | ||
433 | static inline u32 ram_rl_entry_timeslice_timeout_f(u32 v) | ||
434 | { | ||
435 | return (v & 0xff) << 18; | ||
436 | } | ||
437 | static inline u32 ram_rl_entry_timeslice_timeout_128_f(void) | ||
438 | { | ||
439 | return 0x2000000; | ||
440 | } | ||
441 | static inline u32 ram_rl_entry_tsg_length_f(u32 v) | ||
442 | { | ||
443 | return (v & 0x3f) << 26; | ||
444 | } | ||
405 | #endif | 445 | #endif |