summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-03-24 12:39:12 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-04-18 18:04:34 -0400
commit03e7ef2657b4de22eff521b3e44fc4ed5cdf4dca (patch)
tree365bd18b7f633a3fa1139a00eea6da926846fa0e /drivers/gpu/nvgpu/gk20a/gk20a.h
parentcb283956b88b312e6621fb22d0a36bf1870d9d21 (diff)
gpu: nvgpu: Move Linux kernel driver code to module.c
Move Linux driver specific code to common/linux/module.c. This includes module initialization, power management, and interrupt functions. Move pci.c, pci.h and nvgpu_common.c under common/linux as they're Linux only files. JIRA NVGPU-16 Change-Id: If92b4dd78ebc0c2bbfa9fbca258e9552e4979b4b Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1456162 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 60d04b64..9860910c 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -1389,6 +1389,7 @@ int gk20a_do_unidle(void);
1389int __gk20a_do_idle(struct device *dev, bool force_reset); 1389int __gk20a_do_idle(struct device *dev, bool force_reset);
1390int __gk20a_do_unidle(struct device *dev); 1390int __gk20a_do_unidle(struct device *dev);
1391 1391
1392int gk20a_can_busy(struct gk20a *g);
1392void gk20a_driver_start_unload(struct gk20a *g); 1393void gk20a_driver_start_unload(struct gk20a *g);
1393int gk20a_wait_for_idle(struct device *dev); 1394int gk20a_wait_for_idle(struct device *dev);
1394 1395
@@ -1431,9 +1432,8 @@ extern struct class nvgpu_class;
1431 1432
1432#define INTERFACE_NAME "nvhost%s-gpu" 1433#define INTERFACE_NAME "nvhost%s-gpu"
1433 1434
1434int gk20a_pm_init(struct device *dev); 1435int gk20a_prepare_poweroff(struct gk20a *g);
1435int gk20a_pm_finalize_poweron(struct device *dev); 1436int gk20a_finalize_poweron(struct gk20a *g);
1436void gk20a_remove_support(struct gk20a *g);
1437 1437
1438static inline struct tsg_gk20a *tsg_gk20a_from_ch(struct channel_gk20a *ch) 1438static inline struct tsg_gk20a *tsg_gk20a_from_ch(struct channel_gk20a *ch)
1439{ 1439{
@@ -1476,8 +1476,4 @@ void gk20a_put(struct gk20a *g);
1476int gk20a_railgating_debugfs_init(struct device *dev); 1476int gk20a_railgating_debugfs_init(struct device *dev);
1477#endif 1477#endif
1478 1478
1479int gk20a_secure_page_alloc(struct device *dev);
1480void __iomem *gk20a_ioremap_resource(struct platform_device *dev, int i,
1481 struct resource **out);
1482
1483#endif /* GK20A_H */ 1479#endif /* GK20A_H */