Currently, vpr prototypes are defined inside nvhost.h but the correct
place for the headers is inside gk20a.h. This patch makes the necessary
modifications to the headers.
Change-Id: I779e242d36402102a5bb39440dd6d6d455937fc3
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/381426
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
#ifdef CONFIG_TRUSTED_LITTLE_KERNEL
#include <linux/ote_protocol.h>
#endif
-#include <linux/nvhost.h>
+#include <linux/gk20a.h>
#ifdef CONFIG_ARM64
#include <linux/irqchip/arm-gic.h>
struct platform_device;
#ifdef CONFIG_GK20A
+int nvhost_vpr_info_fetch(void);
void gk20a_debug_dump_device(struct platform_device *pdev);
#else
static inline void gk20a_debug_dump_device(struct platform_device *pdev) {}
+static inline int nvhost_vpr_info_fetch(void)
+{
+ return -ENOSYS;
+}
#endif
#endif
void (*callback)(void *, int),
void *private_data);
-#ifdef CONFIG_TEGRA_GK20A
-int nvhost_vpr_info_fetch(void);
-#else
-static inline int nvhost_vpr_info_fetch(void)
-{
- return 0;
-}
-#endif
#ifdef CONFIG_TEGRA_GRHOST
void nvhost_debug_dump_device(struct platform_device *pdev);