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

Commit 90355b6e authored by Amir Samuelov's avatar Amir Samuelov Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarAmir Samuelov <amirs@codeaurora.org>
parent 55871c94
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -93,8 +93,6 @@
/* SPCOM driver name */
/* SPCOM driver name */
#define DEVICE_NAME	"spcom"
#define DEVICE_NAME	"spcom"


#define SPCOM_MAX_CHANNELS	0x20

/* maximum ION buffers should be >= SPCOM_MAX_CHANNELS  */
/* maximum ION buffers should be >= SPCOM_MAX_CHANNELS  */
#define SPCOM_MAX_ION_BUF_PER_CH (SPCOM_MAX_CHANNELS + 4)
#define SPCOM_MAX_ION_BUF_PER_CH (SPCOM_MAX_CHANNELS + 4)


+6 −0
Original line number Original line Diff line number Diff line
@@ -30,6 +30,12 @@
 * with special size SPCOM_GET_NEXT_REQUEST_SIZE.
 * 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 */
/* Maximum size (including null) for channel names */
#define SPCOM_CHANNEL_NAME_SIZE		32
#define SPCOM_CHANNEL_NAME_SIZE		32