3 header file for comedi's symbolic error names
5 COMEDI - Linux Control and Measurement Device Interface
6 Copyright (C) 1997-2000 David A. Schleef <ds@schleef.org>
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU Lesser General Public License as
10 ublished by the Free Software Foundation; either version 2 of the
11 License, or (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU Lesser General Public
19 License along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place, Suite 330, Cambridge, MA 02111, USA.
24 #ifndef _COMEDI_ERRNO_H
25 #define _COMEDI_ERRNO_H
28 #include <linux/errno.h>
33 // define symbolic error names, extensions peculiar to comedi
34 #define COMEDI_NOERROR 0x1000
36 #define EUNKNOWN (COMEDI_NOERROR + 1) // unknown error
37 #define EBAD_CT (COMEDI_NOERROR + 2) // bad comedi_t struct
38 #define EINVAL_SUBD (COMEDI_NOERROR + 3) // invalid subdevice
39 #define EINVAL_CHAN (COMEDI_NOERROR + 4) // invalid channel
40 #define EBUF_OVR (COMEDI_NOERROR + 5) // buffer overflow
41 #define EBUF_UNDR (COMEDI_NOERROR + 6) // buffer underflow
42 #define ECMDNOTSUPP (COMEDI_NOERROR + 7) // command not supported
43 #define ENOTSUPPORTED (COMEDI_NOERROR + 8) // not supported
45 #endif // _COMEDI_ERRNO_H