diff options
author | Jani Nikula <jani.nikula@intel.com> | 2019-10-01 18:25:06 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2019-10-02 13:31:54 +0300 |
commit | 4fb8783165b7c6fb4b52428dbb80da8554e5fd1e (patch) | |
tree | a331acba65d598625c60f4719be2dd695ce63bbe /drivers/gpu/drm/i915/display/intel_vga.h | |
parent | a4311745bba9763e3c965643d4531bd5765b0513 (diff) | |
download | linux-4fb8783165b7c6fb4b52428dbb80da8554e5fd1e.tar.gz linux-4fb8783165b7c6fb4b52428dbb80da8554e5fd1e.tar.bz2 linux-4fb8783165b7c6fb4b52428dbb80da8554e5fd1e.zip |
drm/i915/display: abstract all vgaarb access to intel_vga.[ch]
Split out the code related to vga client and vgaarb all over the place
into new intel_vga.[ch]. No functional changes.
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191001152506.7854-1-jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_vga.h')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_vga.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_vga.h b/drivers/gpu/drm/i915/display/intel_vga.h new file mode 100644 index 000000000000..3517872e62ac --- /dev/null +++ b/drivers/gpu/drm/i915/display/intel_vga.h @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: MIT */ +/* + * Copyright © 2019 Intel Corporation + */ + +#ifndef __INTEL_VGA_H__ +#define __INTEL_VGA_H__ + +struct drm_i915_private; + +void intel_vga_msr_write(struct drm_i915_private *i915); +void intel_vga_disable(struct drm_i915_private *i915); +void intel_vga_redisable(struct drm_i915_private *i915); +void intel_vga_redisable_power_on(struct drm_i915_private *i915); +int intel_vga_register(struct drm_i915_private *i915); +void intel_vga_unregister(struct drm_i915_private *i915); + +#endif /* __INTEL_VGA_H__ */ |