Files
threeeye bc1d038eac REVVL 6 Pro kernel bring-up: full working tree snapshot (2026-09-12)
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)
2026-09-12 13:36:46 +00:00

97 lines
2.3 KiB
C

/*
* Copyright (C) 2017 MediaTek Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License 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 __EXTD_INFO_H__
#define __EXTD_INFO_H__
enum EXTD_DEV_ID {
DEV_MHL,
DEV_EINK,
DEV_WFD,
DEV_LCM,
DEV_MAX_NUM
};
enum EXTD_IOCTL_CMD {
RECOMPUTE_BG_CMD,
GET_DEV_TYPE_CMD,
SET_LAYER_NUM_CMD
};
enum EXTD_GET_INFO_TYPE {
AP_GET_INFO,
SF_GET_INFO,
};
enum EXTD_OVL_REQ_STATUS {
EXTD_OVL_NO_REQ = 0,
EXTD_OVL_REQUSTING_REQ,
EXTD_OVL_IDLE_REQ,
EXTD_OVL_SUB_REQ,
EXTD_OVL_REMOVE_REQ,
EXTD_OVL_REMOVING,
EXTD_OVL_REMOVED,
EXTD_OVL_INSERT_REQ,
EXTD_OVL_INSERTING,
EXTD_OVL_INSERTED
};
struct SWITCH_MODE_INFO_STRUCT {
unsigned int old_session[DEV_MAX_NUM];
unsigned int old_mode[DEV_MAX_NUM];
unsigned int cur_mode;
unsigned int switching;
unsigned int ext_sid;
};
enum HDMI_FACTORY_TEST {
STEP1_CHIP_INIT,
STEP2_JUDGE_CALLBACK,
STEP3_START_DPI_AND_CONFIG,
STEP4_DPI_STOP_AND_POWER_OFF,
STEP_FACTORY_MAX_NUM
};
struct EXTD_DRIVER {
int (*init)(void);
int (*post_init)(void);
int (*deinit)(void);
int (*enable)(int enable);
int (*power_enable)(int enable);
int (*set_audio_enable)(int enable);
int (*set_audio_format)(int format);
int (*set_resolution)(int resolution);
int (*get_dev_info)(int is_sf, void *info);
int (*get_capability)(void *info);
int (*get_edid)(void *info);
int (*wait_vsync)(void);
int (*fake_connect)(int connect);
int (*factory_mode_test)(enum HDMI_FACTORY_TEST test_step, void *info);
int (*audio_setting)(void *audio_param);
int (*install_hdcpkey)(void *hdcpkey);
int (*ioctl)(unsigned int ioctl_cmd, int param1,
int param2, unsigned long *params);
};
/*get driver handle*/
const struct EXTD_DRIVER *EXTD_EPD_Driver(void);
const struct EXTD_DRIVER *EXTD_HDMI_Driver(void);
const struct EXTD_DRIVER *EXTD_LCM_Driver(void);
/*get driver handle for factory mode test*/
const struct EXTD_DRIVER *EXTD_Factory_HDMI_Driver(void);
const struct EXTD_DRIVER *EXTD_Factory_EPD_Driver(void);
#endif