diff options
author | Bjorn Andersson <bjorn.andersson@sonymobile.com> | 2015-06-27 00:50:10 +0300 |
---|---|---|
committer | Andy Gross <agross@codeaurora.org> | 2015-07-28 23:50:16 +0300 |
commit | 4b638df4c9d556a6d947d6dbac364bee37b68b8e (patch) | |
tree | 30f240907c1c5471b43f0754f54ca6464f011557 /include/linux/soc/qcom/smem.h | |
parent | d770e558e21961ad6cfdf0ff7df0eb5d7d4f0754 (diff) | |
download | linux-4b638df4c9d556a6d947d6dbac364bee37b68b8e.tar.xz |
soc: qcom: Add Shared Memory Manager driver
The Shared Memory Manager driver implements an interface for allocating
and accessing items in the memory area shared among all of the
processors in a Qualcomm platform.
Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Acked-by: Andy Gross <agross@codeaurora.org>
Signed-off-by: Andy Gross <agross@codeaurora.org>
Diffstat (limited to 'include/linux/soc/qcom/smem.h')
-rw-r--r-- | include/linux/soc/qcom/smem.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/soc/qcom/smem.h b/include/linux/soc/qcom/smem.h new file mode 100644 index 000000000000..bc9630d3aced --- /dev/null +++ b/include/linux/soc/qcom/smem.h @@ -0,0 +1,11 @@ +#ifndef __QCOM_SMEM_H__ +#define __QCOM_SMEM_H__ + +#define QCOM_SMEM_HOST_ANY -1 + +int qcom_smem_alloc(unsigned host, unsigned item, size_t size); +int qcom_smem_get(unsigned host, unsigned item, void **ptr, size_t *size); + +int qcom_smem_get_free_space(unsigned host); + +#endif |