xref: /freebsd/stand/kboot/include/termios.h (revision 36ef238c)
1 #ifndef	_TERMIOS_H
2 #define	_TERMIOS_H
3 
4 typedef unsigned char host_cc_t;
5 typedef unsigned int host_speed_t;
6 typedef unsigned int host_tcflag_t;
7 
8 #define HOST_NCCS 32
9 
10 #include "termios_arch.h"
11 
12 #define HOST_TCSANOW		0
13 #define HOST_TCSADRAIN		1
14 #define HOST_TCSAFLUSH		2
15 
16 int host_tcgetattr (int, struct host_termios *);
17 int host_tcsetattr (int, int, const struct host_termios *);
18 
19 void host_cfmakeraw(struct host_termios *);
20 int host_cfsetispeed(struct host_termios *, host_speed_t);
21 int host_cfsetospeed(struct host_termios *, host_speed_t);
22 int host_cfsetspeed(struct host_termios *, host_speed_t);
23 
24 #endif
25