summaryrefslogtreecommitdiff
path: root/drivers/staging/fieldbus/fieldbus_dev.h
diff options
context:
space:
mode:
authorSven Van Asbroeck <thesven73@gmail.com>2019-09-18 21:35:49 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-09-30 22:58:03 +0300
commit9cc05ed4df03a60c8119b49e66f8b47436d89c27 (patch)
tree64cd2913f8caf8d4d0ba49faff5448228c8d6e3a /drivers/staging/fieldbus/fieldbus_dev.h
parent7c1a38e1fe05b7740b5e36ec0f7675f241a1e225 (diff)
downloadlinux-9cc05ed4df03a60c8119b49e66f8b47436d89c27.tar.xz
staging: fieldbus: move "offline mode" definition to fieldbus core
anybus-s cards use the "offline mode" property to determine if process memory should be clear, set, or frozen when the card is offline. Move this property to the fieldbus core, so that it can become part of the future fieldbus config interface. Signed-off-by: Sven Van Asbroeck <TheSven73@gmail.com> Link: https://lore.kernel.org/r/20190918183552.28959-3-TheSven73@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fieldbus/fieldbus_dev.h')
-rw-r--r--drivers/staging/fieldbus/fieldbus_dev.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/staging/fieldbus/fieldbus_dev.h b/drivers/staging/fieldbus/fieldbus_dev.h
index a10fc3b446dc..301dca3b8d71 100644
--- a/drivers/staging/fieldbus/fieldbus_dev.h
+++ b/drivers/staging/fieldbus/fieldbus_dev.h
@@ -15,6 +15,12 @@ enum fieldbus_dev_type {
FIELDBUS_DEV_TYPE_PROFINET,
};
+enum fieldbus_dev_offl_mode {
+ FIELDBUS_DEV_OFFL_MODE_CLEAR = 0,
+ FIELDBUS_DEV_OFFL_MODE_FREEZE,
+ FIELDBUS_DEV_OFFL_MODE_SET
+};
+
/**
* struct fieldbus_dev - Fieldbus device
* @read_area: [DRIVER] function to read the process data area of the