You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1019 B

/*
* Copyright (c) Hisilicon Technologies Co., Ltd. 2012-2019. All rights reserved.
* Description: decoder
* Author: Hisilicon
* Create: 2012-04-22
*/
#ifndef __DRV_DMCU_COMM_H__
#define __DRV_DMCU_COMM_H__
#include "td_type.h"
#include "drv_ipcm_intf.h"
#include "soc_log.h"
#undef LOG_MODULE_ID
#define LOG_MODULE_ID SOC_ID_DMCU
#define STACK_4096 4096
typedef struct dmcu_server_ctx_ {
osal_task *thread_handle;
} dmcu_server_ctx;
#define DEF_DMCU_CTRL_THREAD_NAME "dmcu_ctrl_thread"
#define dmcu_recieve_cmd_fn_def(type, fn) \
{ \
.cmd = type, \
.handler = (fn), \
.name = #type \
}
extern ipcm_table_info *g_table_ctx_info;
extern td_void os_sr_save_register(td_void);
extern td_void OsTickStart(td_void);
extern td_void LOS_CpupReset(td_void);
td_s32 dmcu_comm_ctrl_init(td_void);
td_s32 dmcu_comm_ctrl_deinit(td_void);
#endif