include: drm: Import DRM notifier header from Xiaomi
The Patch based on QualComm release TAG:LA.UM.8.15.r1-06600-KAMORTA.0 Change-Id: Ib9d15104771f7f8b5ba7b7e55353387231cc5ea9 Signed-off-by: starlight5234 <starlight5234@protonmail.ch>
This commit is contained in:
parent
2ec9b72b04
commit
e6c4880e4a
2 changed files with 35 additions and 0 deletions
|
@ -219,6 +219,8 @@ struct drm_device {
|
|||
struct drm_vma_offset_manager *vma_offset_manager;
|
||||
/*@} */
|
||||
int switch_power_state;
|
||||
int doze_state;
|
||||
int pre_state;
|
||||
|
||||
/**
|
||||
* @fb_helper:
|
||||
|
|
33
include/drm/drm_notifier.h
Normal file
33
include/drm/drm_notifier.h
Normal file
|
@ -0,0 +1,33 @@
|
|||
#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,
|
||||
};
|
||||
|
||||
|
||||
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*/
|
Loading…
Reference in a new issue