blob: b6ad7701d61f6cd877ae7abed7aa268e0ccf7cd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
*/
#ifndef _MSM_DRM_NOTIFY_H_
#define _MSM_DRM_NOTIFY_H_
#include <linux/notifier.h>
/* A hardware display blank change occurred */
#define MSM_DRM_EVENT_BLANK 0x01
/* A hardware display blank early change occurred */
#define MSM_DRM_EARLY_EVENT_BLANK 0x02
enum {
/* panel: power on */
MSM_DRM_BLANK_UNBLANK,
/* panel: power off */
MSM_DRM_BLANK_POWERDOWN,
/* panel: low power mode */
MSM_DRM_BLANK_LP,
};
enum msm_drm_display_id {
/* primary display */
MSM_DRM_PRIMARY_DISPLAY,
/* external display */
MSM_DRM_EXTERNAL_DISPLAY,
MSM_DRM_DISPLAY_MAX
};
struct msm_drm_notifier {
enum msm_drm_display_id id;
int refresh_rate;
void *data;
};
#if IS_ENABLED(CONFIG_DRM_MSM) || defined(CONFIG_DRM)
int msm_drm_register_client(struct notifier_block *nb);
int msm_drm_unregister_client(struct notifier_block *nb);
#else
static inline int msm_drm_register_client(struct notifier_block *nb)
{
return 0;
}
static inline int msm_drm_unregister_client(struct notifier_block *nb)
{
return 0;
}
#endif
#endif
|