mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
When iGPU is probed as pci device, power and clocks are driven from the platform, hence the pci_probe and pci_remove to handle both iGPU and dGPU. Also enable the runtime PM for the PCI-iGPU device. JIRA NVGPU-9348 Change-Id: Id5dd88dc0c905655f9174ecd7936bdf2996f06e6 Signed-off-by: Ramalingam C <ramalingamc@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2835341 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
52 lines
2.0 KiB
C
52 lines
2.0 KiB
C
/*
|
|
* Copyright (c) 2011-2023, NVIDIA CORPORATION. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms and conditions of the GNU General Public License,
|
|
* version 2, as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*/
|
|
#ifndef __NVGPU_COMMON_LINUX_MODULE_H__
|
|
#define __NVGPU_COMMON_LINUX_MODULE_H__
|
|
|
|
struct gk20a;
|
|
struct device;
|
|
struct platform_device;
|
|
struct nvgpu_os_linux;
|
|
|
|
int gk20a_pm_init(struct device *dev);
|
|
int gk20a_pm_deinit(struct device *dev);
|
|
int gk20a_pm_late_init(struct device *dev);
|
|
int nvgpu_read_fuse_overrides(struct gk20a *g);
|
|
int nvgpu_kernel_shutdown_notification(struct notifier_block *nb,
|
|
unsigned long event, void *unused);
|
|
|
|
int gk20a_pm_finalize_poweron(struct device *dev);
|
|
int nvgpu_finalize_poweron_linux(struct nvgpu_os_linux *l);
|
|
void gk20a_remove_support(struct gk20a *g);
|
|
/*
|
|
* This method is currently only supported to allow changing
|
|
* MIG configurations. As such only GR state and device nodes
|
|
* are freed as part of this. Any future functionality update
|
|
* can be made by adding more to this.
|
|
*/
|
|
int gk20a_driver_force_power_off(struct gk20a *g);
|
|
void gk20a_driver_start_unload(struct gk20a *g);
|
|
int nvgpu_quiesce(struct gk20a *g);
|
|
int nvgpu_remove(struct device *dev);
|
|
int nvgpu_wait_for_gpu_idle(struct gk20a *g);
|
|
void nvgpu_free_irq(struct gk20a *g);
|
|
struct device_node *nvgpu_get_node(struct gk20a *g);
|
|
void __iomem *nvgpu_devm_ioremap_resource(struct platform_device *dev, int i,
|
|
struct resource **out);
|
|
void __iomem *nvgpu_devm_ioremap(struct device *dev, resource_size_t offset,
|
|
resource_size_t size);
|
|
u64 nvgpu_resource_addr(struct platform_device *dev, int i);
|
|
extern struct class nvgpu_class;
|
|
void gk20a_init_linux_characteristics(struct gk20a *g);
|
|
#endif
|