aboutsummaryrefslogtreecommitdiff
path: root/include/drm/drm_notifier.h
blob: c11f21af25c9e06346056022592363818ee302e7 (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
#ifndef _DRM_NOTIFIER_H_
#define _DRM_NOTIFIER_H_

/*
 *	This include file is intended for touch panel that to receive
 *	blank/unblank event.
 *
 */

#define		DRM_EARLY_EVENT_BLANK   0x01
#define		DRM_EVENT_BLANK         0x02
#define		DRM_R_EARLY_EVENT_BLANK 0x03

enum {
	DRM_BLANK_UNBLANK = 0,
	DRM_BLANK_LP1,
	DRM_BLANK_LP2,
	DRM_BLANK_STANDBY,
	DRM_BLANK_SUSPEND,
	DRM_BLANK_POWERDOWN,
};

enum {
	FOD_FINGERDOWN = 0,
	FOD_FINGERUP,
};

struct drm_notify_data {
	bool is_primary;
	void *data;
};

extern int drm_register_client(struct notifier_block *nb);
extern int drm_unregister_client(struct notifier_block *nb);
extern int drm_notifier_call_chain(unsigned long val, void *v);

#endif /*_DRM_NOTIFIER_H*/