diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-03-24 12:39:12 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-18 18:04:34 -0400 |
commit | 03e7ef2657b4de22eff521b3e44fc4ed5cdf4dca (patch) | |
tree | 365bd18b7f633a3fa1139a00eea6da926846fa0e /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | cb283956b88b312e6621fb22d0a36bf1870d9d21 (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.h | 10 |
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); | |||
1389 | int __gk20a_do_idle(struct device *dev, bool force_reset); | 1389 | int __gk20a_do_idle(struct device *dev, bool force_reset); |
1390 | int __gk20a_do_unidle(struct device *dev); | 1390 | int __gk20a_do_unidle(struct device *dev); |
1391 | 1391 | ||
1392 | int gk20a_can_busy(struct gk20a *g); | ||
1392 | void gk20a_driver_start_unload(struct gk20a *g); | 1393 | void gk20a_driver_start_unload(struct gk20a *g); |
1393 | int gk20a_wait_for_idle(struct device *dev); | 1394 | int 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 | ||
1434 | int gk20a_pm_init(struct device *dev); | 1435 | int gk20a_prepare_poweroff(struct gk20a *g); |
1435 | int gk20a_pm_finalize_poweron(struct device *dev); | 1436 | int gk20a_finalize_poweron(struct gk20a *g); |
1436 | void gk20a_remove_support(struct gk20a *g); | ||
1437 | 1437 | ||
1438 | static inline struct tsg_gk20a *tsg_gk20a_from_ch(struct channel_gk20a *ch) | 1438 | static inline struct tsg_gk20a *tsg_gk20a_from_ch(struct channel_gk20a *ch) |
1439 | { | 1439 | { |
@@ -1476,8 +1476,4 @@ void gk20a_put(struct gk20a *g); | |||
1476 | int gk20a_railgating_debugfs_init(struct device *dev); | 1476 | int gk20a_railgating_debugfs_init(struct device *dev); |
1477 | #endif | 1477 | #endif |
1478 | 1478 | ||
1479 | int gk20a_secure_page_alloc(struct device *dev); | ||
1480 | void __iomem *gk20a_ioremap_resource(struct platform_device *dev, int i, | ||
1481 | struct resource **out); | ||
1482 | |||
1483 | #endif /* GK20A_H */ | 1479 | #endif /* GK20A_H */ |