2024-10-14 10:55:20 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 or MIT */
|
|
|
|
|
|
|
|
#ifndef _DRM_CLIENT_EVENT_H_
|
|
|
|
#define _DRM_CLIENT_EVENT_H_
|
|
|
|
|
|
|
|
struct drm_device;
|
|
|
|
|
2024-10-14 10:55:25 +02:00
|
|
|
#if defined(CONFIG_DRM_CLIENT)
|
2024-10-14 10:55:20 +02:00
|
|
|
void drm_client_dev_unregister(struct drm_device *dev);
|
|
|
|
void drm_client_dev_hotplug(struct drm_device *dev);
|
|
|
|
void drm_client_dev_restore(struct drm_device *dev);
|
2024-10-14 10:55:21 +02:00
|
|
|
void drm_client_dev_suspend(struct drm_device *dev, bool holds_console_lock);
|
|
|
|
void drm_client_dev_resume(struct drm_device *dev, bool holds_console_lock);
|
2024-10-14 10:55:25 +02:00
|
|
|
#else
|
|
|
|
static inline void drm_client_dev_unregister(struct drm_device *dev)
|
|
|
|
{ }
|
|
|
|
static inline void drm_client_dev_hotplug(struct drm_device *dev)
|
|
|
|
{ }
|
|
|
|
static inline void drm_client_dev_restore(struct drm_device *dev)
|
|
|
|
{ }
|
|
|
|
static inline void drm_client_dev_suspend(struct drm_device *dev, bool holds_console_lock)
|
|
|
|
{ }
|
|
|
|
static inline void drm_client_dev_resume(struct drm_device *dev, bool holds_console_lock)
|
|
|
|
{ }
|
|
|
|
#endif
|
2024-10-14 10:55:20 +02:00
|
|
|
|
|
|
|
#endif
|