kernel-brax3-ubuntu-touch/drivers/misc/mediatek/mddp/include/mddp_dev.h
erascape f319b992b1 kernel-5.15: Initial import brax3 UT kernel
* halium configs enabled

Signed-off-by: erascape <erascape@proton.me>
2025-09-23 15:17:10 +00:00

33 lines
1.1 KiB
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* mddp_dev.h - Structure/API of MDDP device node control.
*
* Copyright (c) 2020 MediaTek Inc.
*/
#ifndef __MDDP_DEV_H
#define __MDDP_DEV_H
#include "mddp_export.h"
//------------------------------------------------------------------------------
// Struct definition.
// -----------------------------------------------------------------------------
#define MDDP_DETAILED_STATE_ENABLE 19283746
#define MDDP_DETAILED_STATE_DISABLE 0
#define MDDP_MD_LOG_ENABLE 19283746
#define MDDP_MD_LOG_DISABLE 0
#define MDDP_EM_SUPPORT 1 /**< Engineer mode support */
//------------------------------------------------------------------------------
// Public functions.
// -----------------------------------------------------------------------------
int32_t mddp_dev_init(void);
void mddp_dev_uninit(void);
void mddp_dev_response(enum mddp_app_type_e type,
enum mddp_ctrl_msg_e msg, bool is_success,
uint8_t *data, uint32_t data_len);
void mddp_enqueue_dstate(enum mddp_dstate_id_e id, ...);
void mddp_enqueue_md_log(enum mddp_md_log_id_e id, ...);
#endif /* __MDDP_DEV_H */