Go to the documentation of this file.
67 #ifndef _UAPI_LINUX_CYCLADES_H
68 #define _UAPI_LINUX_CYCLADES_H
70 #include <linux/types.h>
95 #define CYCLADES_MAGIC 0x4359
97 #define CYGETMON 0x435901
98 #define CYGETTHRESH 0x435902
99 #define CYSETTHRESH 0x435903
100 #define CYGETDEFTHRESH 0x435904
101 #define CYSETDEFTHRESH 0x435905
102 #define CYGETTIMEOUT 0x435906
103 #define CYSETTIMEOUT 0x435907
104 #define CYGETDEFTIMEOUT 0x435908
105 #define CYSETDEFTIMEOUT 0x435909
106 #define CYSETRFLOW 0x43590a
107 #define CYGETRFLOW 0x43590b
108 #define CYSETRTSDTR_INV 0x43590c
109 #define CYGETRTSDTR_INV 0x43590d
110 #define CYZSETPOLLCYCLE 0x43590e
111 #define CYZGETPOLLCYCLE 0x43590f
112 #define CYGETCD1400VER 0x435910
113 #define CYSETWAIT 0x435912
114 #define CYGETWAIT 0x435913
118 #define CZIOC ('M' << 8)
119 #define CZ_NBOARDS (CZIOC|0xfa)
120 #define CZ_BOOT_START (CZIOC|0xfb)
121 #define CZ_BOOT_DATA (CZIOC|0xfc)
122 #define CZ_BOOT_END (CZIOC|0xfd)
123 #define CZ_TEST (CZIOC|0xfe)
125 #define CZ_DEF_POLL (HZ/25)
129 #define CYZ_MAX_SPEED 921600
131 #define CYZ_FIFO_SIZE 16
133 #define CYZ_BOOT_NWORDS 0x100
144 #ifndef DP_WINDOW_SIZE
149 #define DP_WINDOW_SIZE (0x00080000)
150 #define ZE_DP_WINDOW_SIZE (0x00100000)
152 #define CTRL_WINDOW_SIZE (0x00000080)
220 #define WIN_RAM 0x00000001L
221 #define WIN_CREG 0x14000001L
225 #define TIMER_BY_1M 0x00
226 #define TIMER_BY_256K 0x01
227 #define TIMER_BY_128K 0x02
228 #define TIMER_BY_32K 0x03
247 #define ID_ADDRESS 0x00000180L
248 #define ZFIRM_ID 0x5557465AL
249 #define ZFIRM_HLT 0x59505B5CL
250 #define ZFIRM_RST 0x56040674L
252 #define ZF_TINACT_DEF 1000
254 #define ZF_TINACT ZF_TINACT_DEF
263 #define C_OS_LINUX 0x00000030
267 #define C_CH_DISABLE 0x00000000
268 #define C_CH_TXENABLE 0x00000001
269 #define C_CH_RXENABLE 0x00000002
270 #define C_CH_ENABLE 0x00000003
271 #define C_CH_LOOPBACK 0x00000004
275 #define C_PR_NONE 0x00000000
276 #define C_PR_ODD 0x00000001
277 #define C_PR_EVEN 0x00000002
278 #define C_PR_MARK 0x00000004
279 #define C_PR_SPACE 0x00000008
280 #define C_PR_PARITY 0x000000ff
282 #define C_PR_DISCARD 0x00000100
283 #define C_PR_IGNORE 0x00000200
287 #define C_DL_CS5 0x00000001
288 #define C_DL_CS6 0x00000002
289 #define C_DL_CS7 0x00000004
290 #define C_DL_CS8 0x00000008
291 #define C_DL_CS 0x0000000f
292 #define C_DL_1STOP 0x00000010
293 #define C_DL_15STOP 0x00000020
294 #define C_DL_2STOP 0x00000040
295 #define C_DL_STOP 0x000000f0
299 #define C_IN_DISABLE 0x00000000
300 #define C_IN_TXBEMPTY 0x00000001
301 #define C_IN_TXLOWWM 0x00000002
302 #define C_IN_RXHIWM 0x00000010
303 #define C_IN_RXNNDT 0x00000020
304 #define C_IN_MDCD 0x00000100
305 #define C_IN_MDSR 0x00000200
306 #define C_IN_MRI 0x00000400
307 #define C_IN_MCTS 0x00000800
308 #define C_IN_RXBRK 0x00001000
309 #define C_IN_PR_ERROR 0x00002000
310 #define C_IN_FR_ERROR 0x00004000
311 #define C_IN_OVR_ERROR 0x00008000
312 #define C_IN_RXOFL 0x00010000
313 #define C_IN_IOCTLW 0x00020000
314 #define C_IN_MRTS 0x00040000
315 #define C_IN_ICHAR 0x00080000
319 #define C_FL_OXX 0x00000001
320 #define C_FL_IXX 0x00000002
321 #define C_FL_OIXANY 0x00000004
322 #define C_FL_SWFLOW 0x0000000f
326 #define C_FS_TXIDLE 0x00000000
327 #define C_FS_SENDING 0x00000001
328 #define C_FS_SWFLOW 0x00000002
332 #define C_RS_PARAM 0x80000000
334 #define C_RS_RTS 0x00000001
335 #define C_RS_DTR 0x00000004
336 #define C_RS_DCD 0x00000100
337 #define C_RS_DSR 0x00000200
338 #define C_RS_RI 0x00000400
339 #define C_RS_CTS 0x00000800
343 #define C_CM_RESET 0x01
344 #define C_CM_IOCTL 0x02
345 #define C_CM_IOCTLW 0x03
346 #define C_CM_IOCTLM 0x04
347 #define C_CM_SENDXOFF 0x10
348 #define C_CM_SENDXON 0x11
349 #define C_CM_CLFLOW 0x12
350 #define C_CM_SENDBRK 0x41
351 #define C_CM_INTBACK 0x42
352 #define C_CM_SET_BREAK 0x43
353 #define C_CM_CLR_BREAK 0x44
354 #define C_CM_CMD_DONE 0x45
355 #define C_CM_INTBACK2 0x46
356 #define C_CM_TINACT 0x51
357 #define C_CM_IRQ_ENBL 0x52
358 #define C_CM_IRQ_DSBL 0x53
359 #define C_CM_ACK_ENBL 0x54
360 #define C_CM_ACK_DSBL 0x55
361 #define C_CM_FLUSH_RX 0x56
362 #define C_CM_FLUSH_TX 0x57
363 #define C_CM_Q_ENABLE 0x58
365 #define C_CM_Q_DISABLE 0x59
368 #define C_CM_TXBEMPTY 0x60
369 #define C_CM_TXLOWWM 0x61
370 #define C_CM_RXHIWM 0x62
371 #define C_CM_RXNNDT 0x63
372 #define C_CM_TXFEMPTY 0x64
373 #define C_CM_ICHAR 0x65
374 #define C_CM_MDCD 0x70
375 #define C_CM_MDSR 0x71
376 #define C_CM_MRI 0x72
377 #define C_CM_MCTS 0x73
378 #define C_CM_MRTS 0x74
379 #define C_CM_RXBRK 0x84
380 #define C_CM_PR_ERROR 0x85
381 #define C_CM_FR_ERROR 0x86
382 #define C_CM_OVR_ERROR 0x87
383 #define C_CM_RXOFL 0x88
384 #define C_CM_CMDERROR 0x90
385 #define C_CM_FATAL 0x91
386 #define C_CM_HW_RESET 0x92
469 #define QUEUE_SIZE (10*MAX_CHAN)
486 struct CH_CTRL ch_ctrl[MAX_CHAN];