summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2018-04-26 13:46:29 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-05-01 20:45:02 -0400
commitf3549327f9ec90217885ed36bbad18f4d9153f35 (patch)
treedf63a294dc1b4596831e08ee03cf9821c82d378c /drivers/gpu/nvgpu
parent744f7f049867c83ecb2c76681cb80ec789459491 (diff)
gpu: nvgpu: Add RMOS include for the PCI header
Necessary in order for QNX to avoid setting __NVGPU_POSIX__ globally. Change-Id: I020609c28766951269371358bae71b0fb4de7803 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1703386 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Peter Daifuku <pdaifuku@nvidia.com> Reviewed-by: Richard Zhao <rizhao@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Nirav Patel <nipatel@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/pci.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/pci.h b/drivers/gpu/nvgpu/include/nvgpu/pci.h
index 6b5c1310..388e6de8 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/pci.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/pci.h
@@ -27,11 +27,11 @@
27#include <linux/pci_ids.h> 27#include <linux/pci_ids.h>
28#elif defined(__NVGPU_POSIX__) 28#elif defined(__NVGPU_POSIX__)
29#include <nvgpu/posix/pci.h> 29#include <nvgpu/posix/pci.h>
30#elif defined(__QNX__)
31#include <nvgpu_rmos/include/pci.h>
30#else 32#else
31/* 33/*
32 * In case someone tries to use this without implementing support! QNX currently 34 * In case someone tries to use this without implementing support!
33 * does it's own thing with regard to PCI so they don't need this, but just in
34 * case they accidentally include this.
35 */ 35 */
36#error "Build bug: need PCI headers!" 36#error "Build bug: need PCI headers!"
37#endif 37#endif