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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [include/] [asm-mips/] [termbits.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
#ifndef __ASM_MIPS_TERMBITS_H
2
#define __ASM_MIPS_TERMBITS_H
3
 
4
#include <asm/ioctl.h>
5
#include <asm/ioctls.h>
6
 
7
/*
8
 * The ABI says nothing about NCC but seems to use NCCS as
9
 * replacement for it in struct termio
10
 */
11
#define NCC     8
12
#define NCCS    23
13
 
14
struct termio {
15
        unsigned short c_iflag;         /* input mode flags */
16
        unsigned short c_oflag;         /* output mode flags */
17
        unsigned short c_cflag;         /* control mode flags */
18
        unsigned short c_lflag;         /* local mode flags */
19
        char c_line;                    /* line discipline */
20
        unsigned char c_cc[NCCS];       /* control characters */
21
};
22
 
23
struct termios {
24
        tcflag_t c_iflag;               /* input mode flags */
25
        tcflag_t c_oflag;               /* output mode flags */
26
        tcflag_t c_cflag;               /* control mode flags */
27
        tcflag_t c_lflag;               /* local mode flags */
28
        /*
29
         * Seems nonexistent in the ABI, but Linux assumes existence ...
30
         */
31
        cc_t c_line;                    /* line discipline */
32
        cc_t c_cc[NCCS];                /* control characters */
33
};
34
 
35
#endif /* __ASM_MIPS_TERMBITS_H */

powered by: WebSVN 2.1.0

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