dsp: support mdf memory share cmd

Add support for MultiDSP framework (MDF) memory
share command in q6core driver.

Change-Id: Iff0da10fe835f1fce50d2725960ded5c96237955
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
这个提交包含在:
Aditya Bavanari
2018-06-26 18:41:06 +05:30
父节点 2e628184b9
当前提交 542582cba2
修改 10 个文件,包含 924 行新增7 行删除

44
include/dsp/msm_mdf.h 普通文件
查看文件

@@ -0,0 +1,44 @@
/*
* Copyright (c) 2018, 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 _LINUX_MSM_MDF_H
#define _LINUX_MSM_MDF_H
#ifdef CONFIG_MSM_MDF
/**
* msm_mdf_mem_init - allocate and map memory to ADSP be shared
* across multiple remote DSPs.
*/
int msm_mdf_mem_init(void);
/**
* msm_mdf_mem_init - unmap and free memory to ADSP.
*/
int msm_mdf_mem_deinit(void);
#else
static inline int msm_mdf_mem_init(void)
{
return 0;
}
static inline int msm_mdf_mem_deinit(void)
{
return 0;
}
#endif /* CONFIG_MSM_MDF */
#endif /* _LINUX_MSM_MDF_H */