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:
starlight5234 2021-04-02 12:52:16 +05:30 committed by Gagan Malvi
parent 2ec9b72b04
commit e6c4880e4a
No known key found for this signature in database
GPG key ID: B932A7CE71E9198F
2 changed files with 35 additions and 0 deletions

View file

@ -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:

View 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*/