summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_driver.h
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2021-11-11 12:13:02 +0200
committerJani Nikula <jani.nikula@intel.com>2021-11-17 11:46:58 +0200
commit58471f6384fd8f807d3ff2e771c34f71c473f6b0 (patch)
tree52eb5bb09dbab02597137f1495241e3d1d53e827 /drivers/gpu/drm/i915/i915_driver.h
parent1a085e23411de188ad0615f40a9399d80d1f7368 (diff)
downloadlinux-stable-58471f6384fd8f807d3ff2e771c34f71c473f6b0.tar.gz
linux-stable-58471f6384fd8f807d3ff2e771c34f71c473f6b0.tar.bz2
linux-stable-58471f6384fd8f807d3ff2e771c34f71c473f6b0.zip
drm/i915/driver: rename i915_drv.c to i915_driver.c
This is more about trimming i915_drv.h than the renamed i915_driver.[ch]. Split out i915_driver.[ch] out of i915_drv.h as a feasible thing to do. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20211111101304.13094-1-jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_driver.h')
-rw-r--r--drivers/gpu/drm/i915/i915_driver.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_driver.h b/drivers/gpu/drm/i915/i915_driver.h
new file mode 100644
index 000000000000..e99c00fb6312
--- /dev/null
+++ b/drivers/gpu/drm/i915/i915_driver.h
@@ -0,0 +1,24 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright © 2019 Intel Corporation
+ */
+
+#ifndef __I915_DRIVER_H__
+#define __I915_DRIVER_H__
+
+#include <linux/pm.h>
+
+struct pci_dev;
+struct pci_device_id;
+struct drm_i915_private;
+
+extern const struct dev_pm_ops i915_pm_ops;
+
+int i915_driver_probe(struct pci_dev *pdev, const struct pci_device_id *ent);
+void i915_driver_remove(struct drm_i915_private *i915);
+void i915_driver_shutdown(struct drm_i915_private *i915);
+
+int i915_resume_switcheroo(struct drm_i915_private *i915);
+int i915_suspend_switcheroo(struct drm_i915_private *i915, pm_message_t state);
+
+#endif /* __I915_DRIVER_H__ */