summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSourab Gupta <sourabg@nvidia.com>2017-08-29 06:54:40 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-08-31 16:15:08 -0400
commit4995389f6806433c65549250b5ab953611febc40 (patch)
tree32e23aaf0a6a2af63e258b83e839081841160c5f
parent03eb8687063339f40f68f9611c2351d2528a9d94 (diff)
gpu: nvgpu: include rmos headers in common headers
Currently nvgpu common header files include the Linux specific headers protected by __KERNEL__ check. The patch includes the rmos specific headers when the common headers (and common nvgpu files, by extension) are compiled under QNX, so that QNX specific data structures / type definitions can be retrieved. Change-Id: Icb03fdc90f6ef4cff8666a6fd0f0f06b5ef62c97 Signed-off-by: Sourab Gupta <sourabg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1547658 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/bitops.h2
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/bug.h2
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/cond.h2
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/kmem.h2
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/lock.h4
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h4
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/thread.h2
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/types.h2
8 files changed, 20 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/bitops.h b/drivers/gpu/nvgpu/include/nvgpu/bitops.h
index 8b5cff0a..4e78e8b2 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/bitops.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/bitops.h
@@ -16,6 +16,8 @@
16#ifdef __KERNEL__ 16#ifdef __KERNEL__
17#include <linux/bitops.h> 17#include <linux/bitops.h>
18#include <linux/bitmap.h> 18#include <linux/bitmap.h>
19#else
20#include <nvgpu_rmos/include/bitops.h>
19#endif 21#endif
20 22
21#endif 23#endif
diff --git a/drivers/gpu/nvgpu/include/nvgpu/bug.h b/drivers/gpu/nvgpu/include/nvgpu/bug.h
index 771383ba..4fe94fff 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/bug.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/bug.h
@@ -15,6 +15,8 @@
15 15
16#ifdef __KERNEL__ 16#ifdef __KERNEL__
17#include <linux/bug.h> 17#include <linux/bug.h>
18#else
19#include <nvgpu_rmos/include/bug.h>
18#endif 20#endif
19 21
20#endif 22#endif
diff --git a/drivers/gpu/nvgpu/include/nvgpu/cond.h b/drivers/gpu/nvgpu/include/nvgpu/cond.h
index 9cd2c93f..7a5d3979 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/cond.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/cond.h
@@ -19,6 +19,8 @@
19 19
20#ifdef __KERNEL__ 20#ifdef __KERNEL__
21#include <nvgpu/linux/cond.h> 21#include <nvgpu/linux/cond.h>
22#else
23#include <nvgpu_rmos/include/cond.h>
22#endif 24#endif
23 25
24/* 26/*
diff --git a/drivers/gpu/nvgpu/include/nvgpu/kmem.h b/drivers/gpu/nvgpu/include/nvgpu/kmem.h
index 5bda2f3a..ff4b7820 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/kmem.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/kmem.h
@@ -34,6 +34,8 @@ struct gk20a;
34 */ 34 */
35#ifdef __KERNEL__ 35#ifdef __KERNEL__
36#include <nvgpu/linux/kmem.h> 36#include <nvgpu/linux/kmem.h>
37#else
38#include <nvgpu_rmos/include/kmem.h>
37#endif 39#endif
38 40
39/** 41/**
diff --git a/drivers/gpu/nvgpu/include/nvgpu/lock.h b/drivers/gpu/nvgpu/include/nvgpu/lock.h
index e9d7e81e..a8ef919d 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/lock.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/lock.h
@@ -17,7 +17,11 @@
17#ifndef NVGPU_LOCK_H 17#ifndef NVGPU_LOCK_H
18#define NVGPU_LOCK_H 18#define NVGPU_LOCK_H
19 19
20#ifdef __KERNEL__
20#include <nvgpu/linux/lock.h> 21#include <nvgpu/linux/lock.h>
22#else
23#include <nvgpu_rmos/include/lock.h>
24#endif
21 25
22/* 26/*
23 * struct nvgpu_mutex 27 * struct nvgpu_mutex
diff --git a/drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h b/drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h
index 63439e6f..5aa09f3d 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h
@@ -20,7 +20,11 @@
20#include <nvgpu/types.h> 20#include <nvgpu/types.h>
21#include <nvgpu/list.h> 21#include <nvgpu/list.h>
22 22
23#ifdef __KERNEL__
23#include <nvgpu/linux/nvgpu_mem.h> 24#include <nvgpu/linux/nvgpu_mem.h>
25#else
26#include <nvgpu_rmos/include/nvgpu_mem.h>
27#endif
24 28
25struct page; 29struct page;
26struct sg_table; 30struct sg_table;
diff --git a/drivers/gpu/nvgpu/include/nvgpu/thread.h b/drivers/gpu/nvgpu/include/nvgpu/thread.h
index 1e946119..0404c6cd 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/thread.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/thread.h
@@ -19,6 +19,8 @@
19 19
20#ifdef __KERNEL__ 20#ifdef __KERNEL__
21#include <nvgpu/linux/thread.h> 21#include <nvgpu/linux/thread.h>
22#else
23#include <nvgpu_rmos/include/thread.h>
22#endif 24#endif
23 25
24/** 26/**
diff --git a/drivers/gpu/nvgpu/include/nvgpu/types.h b/drivers/gpu/nvgpu/include/nvgpu/types.h
index 4bfdddb7..031293f8 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/types.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/types.h
@@ -15,6 +15,8 @@
15 15
16#ifdef __KERNEL__ 16#ifdef __KERNEL__
17#include <linux/types.h> 17#include <linux/types.h>
18#else
19#include <nvgpu_rmos/include/types.h>
18#endif 20#endif
19 21
20#endif 22#endif