xref: /openbmc/linux/drivers/gpu/drm/i915/i915_driver.h (revision 99a15348)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2019 Intel Corporation
4  */
5 
6 #ifndef __I915_DRIVER_H__
7 #define __I915_DRIVER_H__
8 
9 #include <linux/pm.h>
10 
11 struct pci_dev;
12 struct pci_device_id;
13 struct drm_i915_private;
14 
15 #define DRIVER_NAME		"i915"
16 #define DRIVER_DESC		"Intel Graphics"
17 #define DRIVER_DATE		"20201103"
18 #define DRIVER_TIMESTAMP	1604406085
19 
20 extern const struct dev_pm_ops i915_pm_ops;
21 
22 int i915_driver_probe(struct pci_dev *pdev, const struct pci_device_id *ent);
23 void i915_driver_remove(struct drm_i915_private *i915);
24 void i915_driver_shutdown(struct drm_i915_private *i915);
25 
26 int i915_driver_resume_switcheroo(struct drm_i915_private *i915);
27 int i915_driver_suspend_switcheroo(struct drm_i915_private *i915, pm_message_t state);
28 
29 #endif /* __I915_DRIVER_H__ */
30