OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-ppc/] [ioctls.h] - Blame information for rev 1765

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
#ifndef _ASM_PPC_IOCTLS_H
2
#define _ASM_PPC_IOCTLS_H
3
 
4
#include <asm/ioctl.h>
5
 
6
#define FIOCLEX         _IO('f', 1)
7
#define FIONCLEX        _IO('f', 2)
8
#define FIOASYNC        _IOW('f', 125, int)
9
#define FIONBIO         _IOW('f', 126, int)
10
#define FIONREAD        _IOR('f', 127, int)
11
#define TIOCINQ         FIONREAD
12
 
13
#define TIOCGETP        _IOR('t', 8, struct sgttyb)
14
#define TIOCSETP        _IOW('t', 9, struct sgttyb)
15
#define TIOCSETN        _IOW('t', 10, struct sgttyb)    /* TIOCSETP wo flush */
16
 
17
#define TIOCSETC        _IOW('t', 17, struct tchars)
18
#define TIOCGETC        _IOR('t', 18, struct tchars)
19
#define TCGETS          _IOR('t', 19, struct termios)
20
#define TCSETS          _IOW('t', 20, struct termios)
21
#define TCSETSW         _IOW('t', 21, struct termios)
22
#define TCSETSF         _IOW('t', 22, struct termios)
23
 
24
#define TCGETA          _IOR('t', 23, struct termio)
25
#define TCSETA          _IOW('t', 24, struct termio)
26
#define TCSETAW         _IOW('t', 25, struct termio)
27
#define TCSETAF         _IOW('t', 28, struct termio)
28
 
29
#define TCSBRK          _IO('t', 29)
30
#define TCXONC          _IO('t', 30)
31
#define TCFLSH          _IO('t', 31)
32
 
33
#define TIOCSWINSZ      _IOW('t', 103, struct winsize)
34
#define TIOCGWINSZ      _IOR('t', 104, struct winsize)
35
#define TIOCSTART       _IO('t', 110)           /* start output, like ^Q */
36
#define TIOCSTOP        _IO('t', 111)           /* stop output, like ^S */
37
#define TIOCOUTQ        _IOR('t', 115, int)     /* output queue size */
38
 
39
#define TIOCGLTC        _IOR('t', 116, struct ltchars)
40
#define TIOCSLTC        _IOW('t', 117, struct ltchars)
41
#define TIOCSPGRP       _IOW('t', 118, int)
42
#define TIOCGPGRP       _IOR('t', 119, int)
43
 
44
#define TIOCEXCL        0x540C
45
#define TIOCNXCL        0x540D
46
#define TIOCSCTTY       0x540E
47
 
48
#define TIOCSTI         0x5412
49
#define TIOCMGET        0x5415
50
#define TIOCMBIS        0x5416
51
#define TIOCMBIC        0x5417
52
#define TIOCMSET        0x5418
53
# define TIOCM_LE       0x001
54
# define TIOCM_DTR      0x002
55
# define TIOCM_RTS      0x004
56
# define TIOCM_ST       0x008
57
# define TIOCM_SR       0x010
58
# define TIOCM_CTS      0x020
59
# define TIOCM_CAR      0x040
60
# define TIOCM_RNG      0x080
61
# define TIOCM_DSR      0x100
62
# define TIOCM_CD       TIOCM_CAR
63
# define TIOCM_RI       TIOCM_RNG
64
 
65
#define TIOCGSOFTCAR    0x5419
66
#define TIOCSSOFTCAR    0x541A
67
#define TIOCLINUX       0x541C
68
#define TIOCCONS        0x541D
69
#define TIOCGSERIAL     0x541E
70
#define TIOCSSERIAL     0x541F
71
#define TIOCPKT         0x5420
72
# define TIOCPKT_DATA            0
73
# define TIOCPKT_FLUSHREAD       1
74
# define TIOCPKT_FLUSHWRITE      2
75
# define TIOCPKT_STOP            4
76
# define TIOCPKT_START           8
77
# define TIOCPKT_NOSTOP         16
78
# define TIOCPKT_DOSTOP         32
79
 
80
 
81
#define TIOCNOTTY       0x5422
82
#define TIOCSETD        0x5423
83
#define TIOCGETD        0x5424
84
#define TCSBRKP         0x5425  /* Needed for POSIX tcsendbreak() */
85
#define TIOCTTYGSTRUCT  0x5426  /* For debugging only */
86
 
87
#define TIOCSERCONFIG   0x5453
88
#define TIOCSERGWILD    0x5454
89
#define TIOCSERSWILD    0x5455
90
#define TIOCGLCKTRMIOS  0x5456
91
#define TIOCSLCKTRMIOS  0x5457
92
#define TIOCSERGSTRUCT  0x5458 /* For debugging only */
93
#define TIOCSERGETLSR   0x5459 /* Get line status register */
94
  /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
95
# define TIOCSER_TEMT    0x01   /* Transmitter physically empty */
96
#define TIOCSERGETMULTI 0x545A /* Get multiport config  */
97
#define TIOCSERSETMULTI 0x545B /* Set multiport config */
98
 
99
#define TIOCMIWAIT      0x545C  /* wait for a change on serial input line(s) */
100
#define TIOCGICOUNT     0x545D  /* read serial port inline interrupt counts */
101
 
102
#endif /* _ASM_PPC_IOCTLS_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.