From 9e99079d830d7cd88bdef319b64a4fddd0a86b39 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Wed, 1 Aug 2001 12:25:49 +0000 Subject: [PATCH] Rearrange flags used for both cmd and trig. Added COMEDI_EV flags. --- include/linux/comedi.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/include/linux/comedi.h b/include/linux/comedi.h index 07f93797..dbf4ce67 100644 --- a/include/linux/comedi.h +++ b/include/linux/comedi.h @@ -100,15 +100,30 @@ typedef unsigned short sampl_t; #define INSN_INTTRIG ( 6 | INSN_MASK_WRITE|INSN_MASK_SPECIAL) /* trigger flags */ +/* These flags are used in comedi_trig structures */ #define TRIG_BOGUS 0x0001 /* do the motions */ #define TRIG_DITHER 0x0002 /* enable dithering */ #define TRIG_DEGLITCH 0x0004 /* enable deglitching */ -#define TRIG_RT 0x0008 /* perform op in real time */ +//#define TRIG_RT 0x0008 /* perform op in real time */ #define TRIG_CONFIG 0x0010 /* perform configuration, not triggering */ -#define TRIG_WAKE_EOS 0x0020 /* wake up on end-of-scan events */ +//#define TRIG_WAKE_EOS 0x0020 /* wake up on end-of-scan events */ #define TRIG_WRITE 0x0040 /* write to bidirectional devices */ +/* command flags */ +/* These flags are used in comedi_cmd structures */ + +#define CMDF_PRIORITY 0x00000008 /* try to use a real-time interrupt while performing command */ + +#define TRIG_RT CMDF_PRIORITY /* compatibility definition */ +#define TRIG_WAKE_EOS 0x00000020 /* legacy definition for COMEDI_EV_SCAN_END */ + +#define COMEDI_EV_START 0x00040000 +#define COMEDI_EV_SCAN_BEGIN 0x00080000 +#define COMEDI_EV_CONVERT 0x00100000 +#define COMEDI_EV_SCAN_END 0x00200000 +#define COMEDI_EV_STOP 0x00400000 + #define TRIG_ROUND_MASK 0x00030000 #define TRIG_ROUND_NEAREST 0x00000000 #define TRIG_ROUND_DOWN 0x00010000 -- 2.26.2