2 * Copyright (c) 2005 Poul-Henning Kamp
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * This file defines the ABI between the userland gpib library and the
27 * kernel. This file should not be used anywhere else.
32 #include <sys/ioccom.h>
34 typedef void ibsrq_t(void);
87 #define __F_HANDLE (1 << 0)
88 #define __F_SPR (1 << 1)
89 #define __F_BUFFER (1 << 2)
90 #define __F_RETVAL (1 << 3)
91 #define __F_BDNAME (1 << 4)
92 #define __F_MASK (1 << 5)
93 #define __F_PADVAL (1 << 6)
94 #define __F_SADVAL (1 << 7)
95 #define __F_CNT (1 << 8)
96 #define __F_TMO (1 << 9)
97 #define __F_EOS (1 << 10)
98 #define __F_PPR (1 << 11)
99 #define __F_EOT (1 << 12)
100 #define __F_V (1 << 13)
101 #define __F_VALUE (1 << 14)
102 #define __F_SAD (1 << 15)
103 #define __F_BOARDID (1 << 16)
104 #define __F_OPTION (1 << 17)
105 #define __F_FLNAME (1 << 18)
106 #define __F_FUNC (1 << 19)
107 #define __F_LINES (1 << 20)
108 #define __F_PAD (1 << 21)
109 #define __F_MODE (1 << 22)
110 #define __F_LISTENFLAG (1 << 23)
111 #define __F_EVENT (1 << 24)
114 enum ibfoo_id __ident;
115 unsigned int __field;
147 #define GPIB_IBFOO _IOWR(4, 0, struct ibarg)