Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b638df4 authored by Bjorn Andersson's avatar Bjorn Andersson Committed by Andy Gross
Browse files

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: default avatarBjorn Andersson <bjorn.andersson@sonymobile.com>
Acked-by: default avatarAndy Gross <agross@codeaurora.org>
Signed-off-by: default avatarAndy Gross <agross@codeaurora.org>
parent d770e558
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -17,3 +17,11 @@ config QCOM_PM
	  QCOM Platform specific power driver to manage cores and L2 low power
	  QCOM Platform specific power driver to manage cores and L2 low power
	  modes. It interface with various system drivers to put the cores in
	  modes. It interface with various system drivers to put the cores in
	  low power modes.
	  low power modes.

config QCOM_SMEM
	tristate "Qualcomm Shared Memory Manager (SMEM)"
	depends on ARCH_QCOM
	help
	  Say y here to enable support for the Qualcomm Shared Memory Manager.
	  The driver provides an interface to items in a heap shared among all
	  processors in a Qualcomm platform.
+1 −0
Original line number Original line Diff line number Diff line
obj-$(CONFIG_QCOM_GSBI)	+=	qcom_gsbi.o
obj-$(CONFIG_QCOM_GSBI)	+=	qcom_gsbi.o
obj-$(CONFIG_QCOM_PM)	+=	spm.o
obj-$(CONFIG_QCOM_PM)	+=	spm.o
obj-$(CONFIG_QCOM_SMEM) +=	smem.o
+775 −0

File added.

Preview size limit exceeded, changes collapsed.

+11 −0
Original line number Original line Diff line number Diff line
#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