Annotation of 43BSDReno/sys/hp300/cons.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Copyright (c) 1988 University of Utah.
                      3:  * Copyright (c) 1990 The Regents of the University of California.
                      4:  * All rights reserved.
                      5:  *
                      6:  * This code is derived from software contributed to Berkeley by
                      7:  * the Systems Programming Group of the University of Utah Computer
                      8:  * Science Department.
                      9:  *
                     10:  * Redistribution is only permitted until one year after the first shipment
                     11:  * of 4.4BSD by the Regents.  Otherwise, redistribution and use in source and
                     12:  * binary forms are permitted provided that: (1) source distributions retain
                     13:  * this entire copyright notice and comment, and (2) distributions including
                     14:  * binaries display the following acknowledgement:  This product includes
                     15:  * software developed by the University of California, Berkeley and its
                     16:  * contributors'' in the documentation or other materials provided with the
                     17:  * distribution and in all advertising materials mentioning features or use
                     18:  * of this software.  Neither the name of the University nor the names of
                     19:  * its contributors may be used to endorse or promote products derived from
                     20:  * this software without specific prior written permission.
                     21:  * THIS SOFTWARE IS PROVIDED AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
                     22:  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
                     23:  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
                     24:  *
                     25:  * from: Utah $Hdr: cons.h 1.4 88/12/03$
                     26:  *
                     27:  *     @(#)cons.h      7.2 (Berkeley) 5/25/90
                     28:  */
                     29: 
                     30: struct consdev {
                     31:        int     (*cn_probe)();  /* probe hardware and fill in consdev info */
                     32:        int     (*cn_init)();   /* turn on as console */
                     33:        int     (*cn_getc)();   /* kernel getchar interface */
                     34:        int     (*cn_putc)();   /* kernel putchar interface */
                     35:        struct  tty *cn_tp;     /* tty structure for console device */
                     36:        dev_t   cn_dev;         /* major/minor of device */
                     37:        short   cn_pri;         /* pecking order; the higher the better */
                     38: };
                     39: 
                     40: /* values for cn_pri - reflect our policy for console selection */
                     41: #define        CN_DEAD         0       /* device doesn't exist */
                     42: #define CN_NORMAL      1       /* device exists but is nothing special */
                     43: #define CN_INTERNAL    2       /* "internal" bit-mapped display */
                     44: #define CN_REMOTE      3       /* serial interface with remote bit set */
                     45: 
                     46: /* XXX */
                     47: #define        CONSMAJOR       0
                     48: 
                     49: #ifdef KERNEL
                     50: extern struct consdev constab[];
                     51: extern struct consdev *cn_tab;
                     52: extern struct tty *cn_tty;
                     53: #endif

unix.superglobalmegacorp.com

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