[NETFILTER]: Move ip6_masked_addrcmp to include/net/ipv6.h
[linux-2.6/verdex.git] / drivers / char / rio / daemon.h
blob28a991bd4fe6dcaeb818eb8304a09657091410fd
1 /*
2 ** -----------------------------------------------------------------------------
3 **
4 ** Perle Specialix driver for Linux
5 ** Ported from existing RIO Driver for SCO sources.
7 * (C) 1990 - 2000 Specialix International Ltd., Byfleet, Surrey, UK.
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 ** Module : daemon.h
24 ** SID : 1.3
25 ** Last Modified : 11/6/98 11:34:09
26 ** Retrieved : 11/6/98 11:34:21
28 ** ident @(#)daemon.h 1.3
30 ** -----------------------------------------------------------------------------
33 #ifndef __rio_daemon_h__
34 #define __rio_daemon_h__
36 #ifdef SCCS_LABELS
37 #ifndef lint
38 static char *_daemon_h_sccs_ = "@(#)daemon.h 1.3";
39 #endif
40 #endif
44 ** structures used on /dev/rio
47 struct Error {
48 uint Error;
49 uint Entry;
50 uint Other;
53 struct DownLoad {
54 char *DataP;
55 uint Count;
56 uint ProductCode;
60 ** A few constants....
62 #ifndef MAX_VERSION_LEN
63 #define MAX_VERSION_LEN 256
64 #endif
66 #ifndef MAX_XP_CTRL_LEN
67 #define MAX_XP_CTRL_LEN 16 /* ALSO IN PORT.H */
68 #endif
70 struct PortSetup {
71 uint From; /* Set/Clear XP & IXANY Control from this port.... */
72 uint To; /* .... to this port */
73 uint XpCps; /* at this speed */
74 char XpOn[MAX_XP_CTRL_LEN]; /* this is the start string */
75 char XpOff[MAX_XP_CTRL_LEN]; /* this is the stop string */
76 uchar IxAny; /* enable/disable IXANY */
77 uchar IxOn; /* enable/disable IXON */
78 uchar Lock; /* lock port params */
79 uchar Store; /* store params across closes */
80 uchar Drain; /* close only when drained */
83 struct LpbReq {
84 uint Host;
85 uint Link;
86 struct LPB *LpbP;
89 struct RupReq {
90 uint HostNum;
91 uint RupNum;
92 struct RUP *RupP;
95 struct PortReq {
96 uint SysPort;
97 struct Port *PortP;
100 struct StreamInfo {
101 uint SysPort;
102 #if 0
103 queue_t RQueue;
104 queue_t WQueue;
105 #else
106 int RQueue;
107 int WQueue;
108 #endif
111 struct HostReq {
112 uint HostNum;
113 struct Host *HostP;
116 struct HostDpRam {
117 uint HostNum;
118 struct DpRam *DpRamP;
121 struct DebugCtrl {
122 uint SysPort;
123 uint Debug;
124 uint Wait;
127 struct MapInfo {
128 uint FirstPort; /* 8 ports, starting from this (tty) number */
129 uint RtaUnique; /* reside on this RTA (unique number) */
132 struct MapIn {
133 uint NumEntries; /* How many port sets are we mapping? */
134 struct MapInfo *MapInfoP; /* Pointer to (user space) info */
137 struct SendPack {
138 unsigned int PortNum;
139 unsigned char Len;
140 unsigned char Data[PKT_MAX_DATA_LEN];
143 struct SpecialRupCmd {
144 struct PKT Packet;
145 unsigned short Host;
146 unsigned short RupNum;
149 struct IdentifyRta {
150 ulong RtaUnique;
151 uchar ID;
154 struct KillNeighbour {
155 ulong UniqueNum;
156 uchar Link;
159 struct rioVersion {
160 char version[MAX_VERSION_LEN];
161 char relid[MAX_VERSION_LEN];
162 int buildLevel;
163 char buildDate[MAX_VERSION_LEN];
168 ** RIOC commands are for the daemon type operations
170 ** 09.12.1998 ARG - ESIL 0776 part fix
171 ** Definition for 'RIOC' also appears in rioioctl.h, so we'd better do a
172 ** #ifndef here first.
173 ** rioioctl.h also now has #define 'RIO_QUICK_CHECK' as this ioctl is now
174 ** allowed to be used by customers.
176 #ifndef RIOC
177 #define RIOC ('R'<<8)|('i'<<16)|('o'<<24)
178 #endif
181 ** Boot stuff
183 #define RIO_GET_TABLE (RIOC | 100)
184 #define RIO_PUT_TABLE (RIOC | 101)
185 #define RIO_ASSIGN_RTA (RIOC | 102)
186 #define RIO_DELETE_RTA (RIOC | 103)
187 #define RIO_HOST_FOAD (RIOC | 104)
188 #define RIO_QUICK_CHECK (RIOC | 105)
189 #define RIO_SIGNALS_ON (RIOC | 106)
190 #define RIO_SIGNALS_OFF (RIOC | 107)
191 #define RIO_CHANGE_NAME (RIOC | 108)
192 #define RIO_DOWNLOAD (RIOC | 109)
193 #define RIO_GET_LOG (RIOC | 110)
194 #define RIO_SETUP_PORTS (RIOC | 111)
195 #define RIO_ALL_MODEM (RIOC | 112)
198 ** card state, debug stuff
200 #define RIO_NUM_HOSTS (RIOC | 120)
201 #define RIO_HOST_LPB (RIOC | 121)
202 #define RIO_HOST_RUP (RIOC | 122)
203 #define RIO_HOST_PORT (RIOC | 123)
204 #define RIO_PARMS (RIOC | 124)
205 #define RIO_HOST_REQ (RIOC | 125)
206 #define RIO_READ_CONFIG (RIOC | 126)
207 #define RIO_SET_CONFIG (RIOC | 127)
208 #define RIO_VERSID (RIOC | 128)
209 #define RIO_FLAGS (RIOC | 129)
210 #define RIO_SETDEBUG (RIOC | 130)
211 #define RIO_GETDEBUG (RIOC | 131)
212 #define RIO_READ_LEVELS (RIOC | 132)
213 #define RIO_SET_FAST_BUS (RIOC | 133)
214 #define RIO_SET_SLOW_BUS (RIOC | 134)
215 #define RIO_SET_BYTE_MODE (RIOC | 135)
216 #define RIO_SET_WORD_MODE (RIOC | 136)
217 #define RIO_STREAM_INFO (RIOC | 137)
218 #define RIO_START_POLLER (RIOC | 138)
219 #define RIO_STOP_POLLER (RIOC | 139)
220 #define RIO_LAST_ERROR (RIOC | 140)
221 #define RIO_TICK (RIOC | 141)
222 #define RIO_TOCK (RIOC | 241) /* I did this on purpose, you know. */
223 #define RIO_SEND_PACKET (RIOC | 142)
224 #define RIO_SET_BUSY (RIOC | 143)
225 #define SPECIAL_RUP_CMD (RIOC | 144)
226 #define RIO_FOAD_RTA (RIOC | 145)
227 #define RIO_ZOMBIE_RTA (RIOC | 146)
228 #define RIO_IDENTIFY_RTA (RIOC | 147)
229 #define RIO_KILL_NEIGHBOUR (RIOC | 148)
230 #define RIO_DEBUG_MEM (RIOC | 149)
232 ** 150 - 167 used..... See below
234 #define RIO_GET_PORT_SETUP (RIOC | 168)
235 #define RIO_RESUME (RIOC | 169)
236 #define RIO_MESG (RIOC | 170)
237 #define RIO_NO_MESG (RIOC | 171)
238 #define RIO_WHAT_MESG (RIOC | 172)
239 #define RIO_HOST_DPRAM (RIOC | 173)
240 #define RIO_MAP_B50_TO_50 (RIOC | 174)
241 #define RIO_MAP_B50_TO_57600 (RIOC | 175)
242 #define RIO_MAP_B110_TO_110 (RIOC | 176)
243 #define RIO_MAP_B110_TO_115200 (RIOC | 177)
244 #define RIO_GET_PORT_PARAMS (RIOC | 178)
245 #define RIO_SET_PORT_PARAMS (RIOC | 179)
246 #define RIO_GET_PORT_TTY (RIOC | 180)
247 #define RIO_SET_PORT_TTY (RIOC | 181)
248 #define RIO_SYSLOG_ONLY (RIOC | 182)
249 #define RIO_SYSLOG_CONS (RIOC | 183)
250 #define RIO_CONS_ONLY (RIOC | 184)
251 #define RIO_BLOCK_OPENS (RIOC | 185)
254 ** 02.03.1999 ARG - ESIL 0820 fix :
255 ** RIOBootMode is no longer use by the driver, so these ioctls
256 ** are now obsolete :
258 #define RIO_GET_BOOT_MODE (RIOC | 186)
259 #define RIO_SET_BOOT_MODE (RIOC | 187)
263 #define RIO_MEM_DUMP (RIOC | 189)
264 #define RIO_READ_REGISTER (RIOC | 190)
265 #define RIO_GET_MODTYPE (RIOC | 191)
266 #define RIO_SET_TIMER (RIOC | 192)
267 #define RIO_READ_CHECK (RIOC | 196)
268 #define RIO_WAITING_FOR_RESTART (RIOC | 197)
269 #define RIO_BIND_RTA (RIOC | 198)
270 #define RIO_GET_BINDINGS (RIOC | 199)
271 #define RIO_PUT_BINDINGS (RIOC | 200)
273 #define RIO_MAKE_DEV (RIOC | 201)
274 #define RIO_MINOR (RIOC | 202)
276 #define RIO_IDENTIFY_DRIVER (RIOC | 203)
277 #define RIO_DISPLAY_HOST_CFG (RIOC | 204)
281 ** MAKE_DEV / MINOR stuff
283 #define RIO_DEV_DIRECT 0x0000
284 #define RIO_DEV_MODEM 0x0200
285 #define RIO_DEV_XPRINT 0x0400
286 #define RIO_DEV_MASK 0x0600
289 ** port management, xprint stuff
291 #define rIOCN(N) (RIOC|(N))
292 #define rIOCR(N,T) (RIOC|(N))
293 #define rIOCW(N,T) (RIOC|(N))
295 #define RIO_GET_XP_ON rIOCR(150,char[16]) /* start xprint string */
296 #define RIO_SET_XP_ON rIOCW(151,char[16])
297 #define RIO_GET_XP_OFF rIOCR(152,char[16]) /* finish xprint string */
298 #define RIO_SET_XP_OFF rIOCW(153,char[16])
299 #define RIO_GET_XP_CPS rIOCR(154,int) /* xprint CPS */
300 #define RIO_SET_XP_CPS rIOCW(155,int)
301 #define RIO_GET_IXANY rIOCR(156,int) /* ixany allowed? */
302 #define RIO_SET_IXANY rIOCW(157,int)
303 #define RIO_SET_IXANY_ON rIOCN(158) /* allow ixany */
304 #define RIO_SET_IXANY_OFF rIOCN(159) /* disallow ixany */
305 #define RIO_GET_MODEM rIOCR(160,int) /* port is modem/direct line? */
306 #define RIO_SET_MODEM rIOCW(161,int)
307 #define RIO_SET_MODEM_ON rIOCN(162) /* port is a modem */
308 #define RIO_SET_MODEM_OFF rIOCN(163) /* port is direct */
309 #define RIO_GET_IXON rIOCR(164,int) /* ixon allowed? */
310 #define RIO_SET_IXON rIOCW(165,int)
311 #define RIO_SET_IXON_ON rIOCN(166) /* allow ixon */
312 #define RIO_SET_IXON_OFF rIOCN(167) /* disallow ixon */
314 #define RIO_GET_SIVIEW ((('s')<<8) | 106) /* backwards compatible with SI */
316 #define RIO_IOCTL_UNKNOWN -2
318 #endif