Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
59 lines
1.4 KiB
C
59 lines
1.4 KiB
C
/*
|
|
* Copyright (c) 2019, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
*/
|
|
|
|
#ifndef _DRM_NOTIFIER_ODM_H_
|
|
#define _DRM_NOTIFIER_ODM_H_
|
|
|
|
#include <linux/notifier.h>
|
|
//#include <linux/msm_drm_notify.h>
|
|
|
|
enum {
|
|
/* panel: power on */
|
|
MSM_DRM_BLANK_UNBLANK,
|
|
/* panel: power off */
|
|
MSM_DRM_BLANK_POWERDOWN,
|
|
};
|
|
|
|
enum msm_drm_display_id {
|
|
/* primary display */
|
|
MSM_DRM_PRIMARY_DISPLAY,
|
|
/* external display */
|
|
MSM_DRM_EXTERNAL_DISPLAY,
|
|
MSM_DRM_DISPLAY_MAX
|
|
};
|
|
|
|
/* A hardware display blank change occurred */
|
|
#define DRM_EVENT_BLANK 0x01
|
|
/* A hardware display blank early change occurred */
|
|
#define DRM_EARLY_EVENT_BLANK 0x02
|
|
|
|
enum {
|
|
DRM_BLANK_POWERDOWN = 0,
|
|
DRM_BLANK_UNBLANK,
|
|
DRM_BLANK_LP1,
|
|
DRM_BLANK_LP2,
|
|
DRM_BLANK_STANDBY,
|
|
DRM_BLANK_SUSPEND,
|
|
};
|
|
|
|
struct drm_notifier_data {
|
|
enum msm_drm_display_id id;
|
|
void *data;
|
|
};
|
|
|
|
int drm_register_client(struct notifier_block *nb);
|
|
int drm_unregister_client(struct notifier_block *nb);
|
|
int drm_notifier_call_chain(unsigned long val, void *v);
|
|
|
|
#endif /*_DRM_NOTIFIER_ODM_H*/ |