aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>2018-02-23 13:19:43 +0200
committerAlexander Shishkin <alexander.shishkin@linux.intel.com>2018-03-28 18:47:18 +0300
commit4f0c7c6a12906e3571abb3c2b93eca8f727f4c9c (patch)
treec1059d2697ba34ee36bb5247a5e0908e3a289031 /include/uapi/linux
parentstm class: Add SPDX GPL-2.0 header to replace GPLv2 boilerplate (diff)
downloadlinux-dev-4f0c7c6a12906e3571abb3c2b93eca8f727f4c9c.tar.xz
linux-dev-4f0c7c6a12906e3571abb3c2b93eca8f727f4c9c.zip
stm class: Make dummy's master/channel ranges configurable
To allow for more flexible testing of the stm class, make it possible to specify the ranges of masters and channels that the dummy_stm devices cover. This is done via module parameters. Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/stm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/stm.h b/include/uapi/linux/stm.h
index 29c89be72275..7bac318b4440 100644
--- a/include/uapi/linux/stm.h
+++ b/include/uapi/linux/stm.h
@@ -12,6 +12,10 @@
#include <linux/types.h>
+/* Maximum allowed master and channel values */
+#define STP_MASTER_MAX 0xffff
+#define STP_CHANNEL_MAX 0xffff
+
/**
* struct stp_policy_id - identification for the STP policy
* @size: size of the structure including real id[] length