From 19303d88c5089f34831d8ea59e4135b3e051d04f Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Tue, 7 May 2002 22:58:45 +0000 Subject: [PATCH] sync with comedilib --- include/linux/comedi.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/comedi.h b/include/linux/comedi.h index 8ebb5eba..d1a82670 100644 --- a/include/linux/comedi.h +++ b/include/linux/comedi.h @@ -52,11 +52,13 @@ typedef unsigned short sampl_t; /* packs and unpacks a channel/range number */ #define CR_PACK(chan,rng,aref) ( (((aref)&0x3)<<24) | (((rng)&0xff)<<16) | ((chan)&0xffff) ) +#define CR_PACK_FLAGS(chan, range, aref, flags) (CR_PACK(chan, range, aref) | ((flags) & CR_FLAGS_MASK)) #define CR_CHAN(a) ((a)&0xffff) #define CR_RANGE(a) (((a)>>16)&0xff) #define CR_AREF(a) (((a)>>24)&0x03) +#define CR_FLAGS_MASK 0xfc000000 #define CR_ALT_FILTER (1<<26) #define CR_DITHER CR_ALT_FILTER #define CR_DEGLITCH CR_ALT_FILTER -- 2.26.2