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