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)
52 lines
1.6 KiB
C
52 lines
1.6 KiB
C
/*
|
|
* Copyright (C) 2015 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 __DSI_MUTEX_H__
|
|
#define __DSI_MUTEX_H__
|
|
|
|
#include "cmdq_record.h"
|
|
#include "ddp_hal.h"
|
|
#include "ddp_path.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct module_map_t {
|
|
enum DISP_MODULE_ENUM module;
|
|
unsigned int bit;
|
|
int mod_num;
|
|
};
|
|
|
|
extern unsigned int module_list_scenario[DDP_SCENARIO_MAX][DDP_ENING_NUM];
|
|
|
|
void ddp_mutex_interrupt_enable(unsigned int mutex_id, void *handle);
|
|
void ddp_mutex_interrupt_disable(unsigned int mutex_id, void *handle);
|
|
void ddp_mutex_reset(unsigned int mutex_id, void *handle);
|
|
int ddp_is_moudule_in_mutex(int mutex_id, enum DISP_MODULE_ENUM module);
|
|
void ddp_mutex_clear(unsigned int mutex_id, void *handle);
|
|
int ddp_mutex_set_sof_wait(int mutex_id, struct cmdqRecStruct *handle,
|
|
unsigned int wait);
|
|
int ddp_mutex_enable(unsigned int mutex_id, enum DDP_SCENARIO_ENUM scenario,
|
|
enum DDP_MODE mode, void *handle);
|
|
int ddp_mutex_set(int mutex_id, enum DDP_SCENARIO_ENUM scenario,
|
|
enum DDP_MODE mode, void *handle);
|
|
void ddp_check_mutex(int mutex_id, enum DDP_SCENARIO_ENUM scenario,
|
|
enum DDP_MODE mode);
|
|
char *ddp_get_mutex_sof_name(unsigned int regval);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|