As for display, the intent is to share the display code with the i915 driver so that there is maximum reuse there. We do this by recompiling i915/display code twice. Now that i915 has been adapted to support the Xe build, we can add the xe/display support. This initial work is a collaboration of many people and unfortunately this squashed patch won't fully honor the proper credits. But let's try to add a few from the squashed patches: Co-developed-by: Matthew Brost <matthew.brost@intel.com> Co-developed-by: Jani Nikula <jani.nikula@intel.com> Co-developed-by: Lucas De Marchi <lucas.demarchi@intel.com> Co-developed-by: Matt Roper <matthew.d.roper@intel.com> Co-developed-by: Mauro Carvalho Chehab <mchehab@kernel.org> Co-developed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Co-developed-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
73 lines
2.7 KiB
C
73 lines
2.7 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_DISPLAY_H_
|
|
#define _XE_DISPLAY_H_
|
|
|
|
#include "xe_device.h"
|
|
|
|
struct drm_driver;
|
|
|
|
#if IS_ENABLED(CONFIG_DRM_XE_DISPLAY)
|
|
|
|
bool xe_display_driver_probe_defer(struct pci_dev *pdev);
|
|
void xe_display_driver_set_hooks(struct drm_driver *driver);
|
|
void xe_display_driver_remove(struct xe_device *xe);
|
|
|
|
int xe_display_create(struct xe_device *xe);
|
|
|
|
void xe_display_probe(struct xe_device *xe);
|
|
|
|
int xe_display_init_nommio(struct xe_device *xe);
|
|
int xe_display_init_noirq(struct xe_device *xe);
|
|
int xe_display_init_noaccel(struct xe_device *xe);
|
|
int xe_display_init(struct xe_device *xe);
|
|
void xe_display_fini(struct xe_device *xe);
|
|
|
|
void xe_display_register(struct xe_device *xe);
|
|
void xe_display_unregister(struct xe_device *xe);
|
|
|
|
void xe_display_irq_handler(struct xe_device *xe, u32 master_ctl);
|
|
void xe_display_irq_enable(struct xe_device *xe, u32 gu_misc_iir);
|
|
void xe_display_irq_reset(struct xe_device *xe);
|
|
void xe_display_irq_postinstall(struct xe_device *xe, struct xe_gt *gt);
|
|
|
|
void xe_display_pm_suspend(struct xe_device *xe);
|
|
void xe_display_pm_suspend_late(struct xe_device *xe);
|
|
void xe_display_pm_resume_early(struct xe_device *xe);
|
|
void xe_display_pm_resume(struct xe_device *xe);
|
|
|
|
#else
|
|
|
|
static inline int xe_display_driver_probe_defer(struct pci_dev *pdev) { return 0; }
|
|
static inline void xe_display_driver_set_hooks(struct drm_driver *driver) { }
|
|
static inline void xe_display_driver_remove(struct xe_device *xe) {}
|
|
|
|
static inline int xe_display_create(struct xe_device *xe) { return 0; }
|
|
|
|
static inline void xe_display_probe(struct xe_device *xe) { }
|
|
|
|
static inline int xe_display_init_nommio(struct xe_device *xe) { return 0; }
|
|
static inline int xe_display_init_noirq(struct xe_device *xe) { return 0; }
|
|
static inline int xe_display_init_noaccel(struct xe_device *xe) { return 0; }
|
|
static inline int xe_display_init(struct xe_device *xe) { return 0; }
|
|
static inline void xe_display_fini(struct xe_device *xe) {}
|
|
|
|
static inline void xe_display_register(struct xe_device *xe) {}
|
|
static inline void xe_display_unregister(struct xe_device *xe) {}
|
|
|
|
static inline void xe_display_irq_handler(struct xe_device *xe, u32 master_ctl) {}
|
|
static inline void xe_display_irq_enable(struct xe_device *xe, u32 gu_misc_iir) {}
|
|
static inline void xe_display_irq_reset(struct xe_device *xe) {}
|
|
static inline void xe_display_irq_postinstall(struct xe_device *xe, struct xe_gt *gt) {}
|
|
|
|
static inline void xe_display_pm_suspend(struct xe_device *xe) {}
|
|
static inline void xe_display_pm_suspend_late(struct xe_device *xe) {}
|
|
static inline void xe_display_pm_resume_early(struct xe_device *xe) {}
|
|
static inline void xe_display_pm_resume(struct xe_device *xe) {}
|
|
|
|
#endif /* CONFIG_DRM_XE_DISPLAY */
|
|
#endif /* _XE_DISPLAY_H_ */
|