Commit 94b4f3ba authored by Chris Wilson's avatar Chris Wilson

drm/i915: Split out runtime configuration of device info to its own file

Let's reclaim a few hundred lines from i915_drv.c by splitting out the
runtime configuration of the "constant" dev_priv->info.
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1467711623-2905-1-git-send-email-chris@chris-wilson.co.ukReviewed-by: default avatarMatthew Auld <matthew.auld@intel.com>
parent 9777cca0
...@@ -14,6 +14,7 @@ i915-y := i915_drv.o \ ...@@ -14,6 +14,7 @@ i915-y := i915_drv.o \
i915_suspend.o \ i915_suspend.o \
i915_sysfs.o \ i915_sysfs.o \
intel_csr.o \ intel_csr.o \
intel_device_info.o \
intel_pm.o \ intel_pm.o \
intel_runtime_pm.o intel_runtime_pm.o
......
This diff is collapsed.
...@@ -3750,6 +3750,16 @@ static inline void intel_register_dsm_handler(void) { return; } ...@@ -3750,6 +3750,16 @@ static inline void intel_register_dsm_handler(void) { return; }
static inline void intel_unregister_dsm_handler(void) { return; } static inline void intel_unregister_dsm_handler(void) { return; }
#endif /* CONFIG_ACPI */ #endif /* CONFIG_ACPI */
/* intel_device_info.c */
static inline struct intel_device_info *
mkwrite_device_info(struct drm_i915_private *dev_priv)
{
return (struct intel_device_info *)&dev_priv->info;
}
void intel_device_info_runtime_init(struct drm_i915_private *dev_priv);
void intel_device_info_dump(struct drm_i915_private *dev_priv);
/* modesetting */ /* modesetting */
extern void intel_modeset_init_hw(struct drm_device *dev); extern void intel_modeset_init_hw(struct drm_device *dev);
extern void intel_modeset_init(struct drm_device *dev); extern void intel_modeset_init(struct drm_device *dev);
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment