mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

The error state capture still handles display info at a too detailed level. Start abstracting the whole display snapshot capture and printing at a higher level. Move overlay to display snapshot first. Use the same nomenclature and style as in xe devcoredump, in preparation for perhaps some day bolting the snapshots there as well. v3: Fix build harder for CONFIG_DRM_I915_CAPTURE_ERROR=n v2: Fix build for CONFIG_DRM_I915_CAPTURE_ERROR=n (kernel test robot) Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/ba6a36759600c2d35405c41a0fc9d69f676df77d.1726151571.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
16 lines
550 B
C
16 lines
550 B
C
/* SPDX-License-Identifier: MIT */
|
|
/* Copyright © 2024 Intel Corporation */
|
|
|
|
#ifndef __INTEL_DISPLAY_SNAPSHOT_H__
|
|
#define __INTEL_DISPLAY_SNAPSHOT_H__
|
|
|
|
struct drm_printer;
|
|
struct intel_display;
|
|
struct intel_display_snapshot;
|
|
|
|
struct intel_display_snapshot *intel_display_snapshot_capture(struct intel_display *display);
|
|
void intel_display_snapshot_print(const struct intel_display_snapshot *snapshot,
|
|
struct drm_printer *p);
|
|
void intel_display_snapshot_free(struct intel_display_snapshot *snapshot);
|
|
|
|
#endif /* __INTEL_DISPLAY_SNAPSHOT_H__ */
|