Changed value of NI_GPCT_DISABLED_GATE_SELECT so it plays nice with
authorFrank Mori Hess <fmhess@speakeasy.net>
Fri, 5 Jan 2007 20:35:52 +0000 (20:35 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Fri, 5 Jan 2007 20:35:52 +0000 (20:35 +0000)
CR_CHAN macro, which I used in ni_tio.c

include/linux/comedi.h

index 72363ec97e6576fadbc2b3a99529c75e7e7d86b5..a12688027e4fc6541afab5b0323b9b17b16e7bb4 100644 (file)
@@ -616,8 +616,9 @@ enum ni_gpct_gate_select
        /* more gates for 660x "second gate" */
        NI_GPCT_UP_DOWN_PIN_i_GATE_SELECT = 0x201,
        NI_GPCT_SELECTED_GATE_GATE_SELECT = 0x21e,
-       /* m-series "second gate" sources are unknown */
-       NI_GPCT_DISABLED_GATE_SELECT = 0x10000,
+       /* m-series "second gate" sources are unknown,
+       we should add them here with an offset of 0x300 when known. */
+       NI_GPCT_DISABLED_GATE_SELECT = 0x8000,
 };
 static inline unsigned NI_GPCT_GATE_PIN_GATE_SELECT(unsigned n)
 {