From 5b99a712e5024a3ae2e49591748168bb3a49a68a Mon Sep 17 00:00:00 2001 From: Amir Samuelov Date: Mon, 5 Jun 2017 14:35:44 +0300 Subject: spcom: move SPCOM_MAX_CHANNELS define to uapi/linux/spcom.h Move SPCOM_MAX_CHANNELS to common H file to make sure that kernel spcom driver and user space spcomlib library are synced. Change-Id: I5e19f8def7de755fa89b6a5c67e9d3372f8433f1 Signed-off-by: Amir Samuelov --- include/uapi/linux/spcom.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/uapi/linux/spcom.h b/include/uapi/linux/spcom.h index 038a49d5ee57..39b1be03bde0 100644 --- a/include/uapi/linux/spcom.h +++ b/include/uapi/linux/spcom.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved. +/* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -30,6 +30,12 @@ * with special size SPCOM_GET_NEXT_REQUEST_SIZE. */ +/* + * Maximum number of channel between Secure Processor and HLOS. + * including predefined channels, like "sp_kernel". + */ +#define SPCOM_MAX_CHANNELS 0x20 + /* Maximum size (including null) for channel names */ #define SPCOM_CHANNEL_NAME_SIZE 32 -- cgit v1.2.3