blob: c1657ed27b303acd96a5cda27f8f4895a3524ec6 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Bjorn Andersson4b638df42015-06-26 14:50:10 -07002#ifndef __QCOM_SMEM_H__
3#define __QCOM_SMEM_H__
4
5#define QCOM_SMEM_HOST_ANY -1
6
7int qcom_smem_alloc(unsigned host, unsigned item, size_t size);
Stephen Boyd1a039642015-09-02 15:46:44 -07008void *qcom_smem_get(unsigned host, unsigned item, size_t *size);
Bjorn Andersson4b638df42015-06-26 14:50:10 -07009
10int qcom_smem_get_free_space(unsigned host);
11
12#endif