summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/ioctl_as.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-06-20 15:18:47 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-06-21 20:34:49 -0400
commit92c43deefca150854193c6720717d56b61989c23 (patch)
tree2dbfdcdb3a0809b80d4fc50e1d882326e54c7d17 /drivers/gpu/nvgpu/common/linux/ioctl_as.c
parent2ffbdc50d884215ba043e8afd3c3bcbefd1e66f8 (diff)
gpu: nvgpu: Remove Linux devnode fields from gk20a
Move Linux devnode related fields to a new header file os_linux.h. The class structure is defined in module.c, so move its declaration to module.h. JIRA NVGPU-38 Change-Id: I5d8920169064f4289ff61004f7f81543a9aba221 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1505927 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_as.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/ioctl_as.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_as.c b/drivers/gpu/nvgpu/common/linux/ioctl_as.c
index 1d6410cc..405301ee 100644
--- a/drivers/gpu/nvgpu/common/linux/ioctl_as.c
+++ b/drivers/gpu/nvgpu/common/linux/ioctl_as.c
@@ -30,6 +30,7 @@
30#include "gk20a/platform_gk20a.h" 30#include "gk20a/platform_gk20a.h"
31#include "ioctl_as.h" 31#include "ioctl_as.h"
32#include "vm_priv.h" 32#include "vm_priv.h"
33#include "os_linux.h"
33 34
34static int gk20a_as_ioctl_bind_channel( 35static int gk20a_as_ioctl_bind_channel(
35 struct gk20a_as_share *as_share, 36 struct gk20a_as_share *as_share,
@@ -253,13 +254,15 @@ static int gk20a_as_ioctl_map_buffer_compbits(
253 254
254int gk20a_as_dev_open(struct inode *inode, struct file *filp) 255int gk20a_as_dev_open(struct inode *inode, struct file *filp)
255{ 256{
257 struct nvgpu_os_linux *l;
256 struct gk20a_as_share *as_share; 258 struct gk20a_as_share *as_share;
257 struct gk20a *g; 259 struct gk20a *g;
258 int err; 260 int err;
259 261
260 gk20a_dbg_fn(""); 262 gk20a_dbg_fn("");
261 263
262 g = container_of(inode->i_cdev, struct gk20a, as_dev.cdev); 264 l = container_of(inode->i_cdev, struct nvgpu_os_linux, as_dev.cdev);
265 g = &l->g;
263 266
264 err = gk20a_as_alloc_share(g, 0, 0, &as_share); 267 err = gk20a_as_alloc_share(g, 0, 0, &as_share);
265 if (err) { 268 if (err) {