xref: /linux/include/linux/soc/qcom/smem.h (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __QCOM_SMEM_H__
3 #define __QCOM_SMEM_H__
4 
5 #define QCOM_SMEM_HOST_ANY -1
6 
7 bool qcom_smem_is_available(void);
8 int qcom_smem_alloc(unsigned host, unsigned item, size_t size);
9 void *qcom_smem_get(unsigned host, unsigned item, size_t *size);
10 
11 int qcom_smem_get_free_space(unsigned host);
12 
13 phys_addr_t qcom_smem_virt_to_phys(void *p);
14 
15 int qcom_smem_get_soc_id(u32 *id);
16 int qcom_smem_get_feature_code(u32 *code);
17 
18 int qcom_smem_bust_hwspin_lock_by_host(unsigned int host);
19 
20 #endif
21