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>
This commit is contained in:

committed by
Andy Gross

parent
d770e558e2
commit
4b638df4c9
11
include/linux/soc/qcom/smem.h
Normal file
11
include/linux/soc/qcom/smem.h
Normal file
@@ -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
|
Reference in New Issue
Block a user