Annotation of coherent/d/PS2_KERNEL/io.286/console.c, revision 1.1.1.1

1.1       root        1: /* $Header: /kernel/kersrc/io.286/console.c,v 1.1 92/07/17 15:24:08 bin Exp Locker: bin $ */
                      2: /*
                      3:  * Tiny console driver.
                      4:  * 8086/8088 Coherent, IBM PC.
                      5:  *
                      6:  * $Log:       console.c,v $
                      7:  * Revision 1.1  92/07/17  15:24:08  bin
                      8:  * Initial revision
                      9:  * 
                     10:  * Revision 2.1        88/09/03  13:03:39      src
                     11:  * *** empty log message ***
                     12:  * 
                     13:  * Revision 1.1        88/03/24  17:04:25      src
                     14:  * Initial revision
                     15:  * 
                     16:  * 86/11/19    Allan Cornish           /usr/src/sys/i8086/drv/console.c
                     17:  * putchar() initializes the (new) (IO).io_flag field to 0.
                     18:  */
                     19: #include <sys/coherent.h>
                     20: #include <sys/inode.h>
                     21: #include <sys/stat.h>
                     22: #include <sys/con.h>
                     23: #include <sys/io.h>
                     24: 
                     25: dev_t condev = makedev(2,0);
                     26: 
                     27: putchar(c)
                     28: int c;
                     29: {
                     30:        static coninit;
                     31:        IO iob;
                     32: 
                     33:        if (coninit == 0) {
                     34:                ++coninit;
                     35:                dopen( condev, IPW, DFCHR );
                     36:        }
                     37: 
                     38:        if (c == '\n')
                     39:                putchar('\r');
                     40: 
                     41:        iob.io_seg  = IOSYS;
                     42:        iob.io_ioc  = 1;
                     43:        iob.io_base = &c;
                     44:        iob.io_flag = 0;
                     45:        dwrite( condev, &iob );
                     46: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.