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

Commit 9ba1c996 authored by Laura Abbott's avatar Laura Abbott
Browse files

ion: Make secure table APIs public



In addition to secure by handle, clients may want to secure by
sg_tables. Export those APIs.

Change-Id: I723b756105cfc1ccfa3b291642e7a063892b8f3b
Signed-off-by: default avatarLaura Abbott <lauraa@codeaurora.org>
parent 70d51296
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -169,6 +169,12 @@ int msm_ion_secure_buffer(struct ion_client *client, struct ion_handle *handle,
 */
int msm_ion_unsecure_buffer(struct ion_client *client,
				struct ion_handle *handle);


int msm_ion_secure_table(struct sg_table *table, enum cp_mem_usage usage,
				int flags);

int msm_ion_unsecure_table(struct sg_table *table);
#else
static inline struct ion_client *msm_ion_client_create(const char *name)
{
@@ -201,6 +207,20 @@ static inline int msm_ion_unsecure_buffer(struct ion_client *client,
{
	return -ENODEV;
}

static inline int msm_ion_secure_table(struct sg_table *table,
				enum cp_mem_usage usage,
				int flags)
{
	return -ENODEV;
}

static inline int msm_ion_unsecure_table(struct sg_table *table)
{
	return -ENODEV;
}


#endif /* CONFIG_ION */

#endif