Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v6.19-rc8 71 lines 2.9 kB view raw
1/* SPDX-License-Identifier: MIT */ 2/* 3 * Copyright © 2023 Intel Corporation 4 */ 5 6#ifndef _XE_DISPLAY_H_ 7#define _XE_DISPLAY_H_ 8 9#include "xe_device.h" 10 11struct drm_driver; 12 13#if IS_ENABLED(CONFIG_DRM_XE_DISPLAY) 14 15bool xe_display_driver_probe_defer(struct pci_dev *pdev); 16void xe_display_driver_set_hooks(struct drm_driver *driver); 17 18int xe_display_probe(struct xe_device *xe); 19 20int xe_display_init_early(struct xe_device *xe); 21int xe_display_init(struct xe_device *xe); 22 23void xe_display_register(struct xe_device *xe); 24void xe_display_unregister(struct xe_device *xe); 25 26void xe_display_irq_handler(struct xe_device *xe, u32 master_ctl); 27void xe_display_irq_enable(struct xe_device *xe, u32 gu_misc_iir); 28void xe_display_irq_reset(struct xe_device *xe); 29void xe_display_irq_postinstall(struct xe_device *xe); 30 31void xe_display_pm_suspend(struct xe_device *xe); 32void xe_display_pm_shutdown(struct xe_device *xe); 33void xe_display_pm_suspend_late(struct xe_device *xe); 34void xe_display_pm_shutdown_late(struct xe_device *xe); 35void xe_display_pm_resume_early(struct xe_device *xe); 36void xe_display_pm_resume(struct xe_device *xe); 37void xe_display_pm_runtime_suspend(struct xe_device *xe); 38void xe_display_pm_runtime_suspend_late(struct xe_device *xe); 39void xe_display_pm_runtime_resume(struct xe_device *xe); 40 41#else 42 43static inline int xe_display_driver_probe_defer(struct pci_dev *pdev) { return 0; } 44static inline void xe_display_driver_set_hooks(struct drm_driver *driver) { } 45static inline void xe_display_driver_remove(struct xe_device *xe) {} 46 47static inline int xe_display_probe(struct xe_device *xe) { return 0; } 48 49static inline int xe_display_init_early(struct xe_device *xe) { return 0; } 50static inline int xe_display_init(struct xe_device *xe) { return 0; } 51 52static inline void xe_display_register(struct xe_device *xe) {} 53static inline void xe_display_unregister(struct xe_device *xe) {} 54 55static inline void xe_display_irq_handler(struct xe_device *xe, u32 master_ctl) {} 56static inline void xe_display_irq_enable(struct xe_device *xe, u32 gu_misc_iir) {} 57static inline void xe_display_irq_reset(struct xe_device *xe) {} 58static inline void xe_display_irq_postinstall(struct xe_device *xe) {} 59 60static inline void xe_display_pm_suspend(struct xe_device *xe) {} 61static inline void xe_display_pm_shutdown(struct xe_device *xe) {} 62static inline void xe_display_pm_suspend_late(struct xe_device *xe) {} 63static inline void xe_display_pm_shutdown_late(struct xe_device *xe) {} 64static inline void xe_display_pm_resume_early(struct xe_device *xe) {} 65static inline void xe_display_pm_resume(struct xe_device *xe) {} 66static inline void xe_display_pm_runtime_suspend(struct xe_device *xe) {} 67static inline void xe_display_pm_runtime_suspend_late(struct xe_device *xe) {} 68static inline void xe_display_pm_runtime_resume(struct xe_device *xe) {} 69 70#endif /* CONFIG_DRM_XE_DISPLAY */ 71#endif /* _XE_DISPLAY_H_ */