diff options
author | Antony Clince Alex <aalex@nvidia.com> | 2018-04-25 04:12:16 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-09 21:25:36 -0400 |
commit | b144935644f76328aa9ec2592655b4553ed28222 (patch) | |
tree | 7c5883e71348743ea1ff774ab76919eb070c6068 /drivers/gpu/nvgpu/gk20a | |
parent | 2a23cd249451c952aaab71eaad6cf5f77d2bc6e2 (diff) |
gpu: nvgpu: refactored struct sim_gk20a
moved sim buffer(send, recv and msg) from
os-specific structure to OS agnostic structure.
JIRA VQRM-2368
Change-Id: I10ff23fe24d86f2bd372f1bae0369cc45aadfb80
Signed-off-by: Antony Clince Alex <aalex@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1702178
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Sourab Gupta <sourabg@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/sim_gk20a.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/sim_gk20a.h b/drivers/gpu/nvgpu/gk20a/sim_gk20a.h index 8f23abd8..fb64d959 100644 --- a/drivers/gpu/nvgpu/gk20a/sim_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/sim_gk20a.h | |||
@@ -3,7 +3,7 @@ | |||
3 | * | 3 | * |
4 | * GK20A sim support | 4 | * GK20A sim support |
5 | * | 5 | * |
6 | * Copyright (c) 2013-2017, NVIDIA CORPORATION. All rights reserved. | 6 | * Copyright (c) 2013-2018, NVIDIA CORPORATION. All rights reserved. |
7 | * | 7 | * |
8 | * Permission is hereby granted, free of charge, to any person obtaining a | 8 | * Permission is hereby granted, free of charge, to any person obtaining a |
9 | * copy of this software and associated documentation files (the "Software"), | 9 | * copy of this software and associated documentation files (the "Software"), |
@@ -34,6 +34,9 @@ struct sim_gk20a { | |||
34 | u32 recv_ring_get; | 34 | u32 recv_ring_get; |
35 | u32 recv_ring_put; | 35 | u32 recv_ring_put; |
36 | u32 sequence_base; | 36 | u32 sequence_base; |
37 | struct nvgpu_mem send_bfr; | ||
38 | struct nvgpu_mem recv_bfr; | ||
39 | struct nvgpu_mem msg_bfr; | ||
37 | void (*remove_support)(struct sim_gk20a *); | 40 | void (*remove_support)(struct sim_gk20a *); |
38 | int (*esc_readl)( | 41 | int (*esc_readl)( |
39 | struct gk20a *g, char *path, u32 index, u32 *data); | 42 | struct gk20a *g, char *path, u32 index, u32 *data); |