[BACK]Return to dartvar.h CVS log [TXT][DIR] Up to [local] / sys / arch / aviion / dev

Annotation of sys/arch/aviion/dev/dartvar.h, Revision 1.1.1.1

1.1       nbrk        1: /*     $OpenBSD: dartvar.h,v 1.1.1.1 2006/05/08 18:44:10 miod Exp $    */
                      2:
                      3: /*
                      4:  * Mach Operating System
                      5:  * Copyright (c) 1993-1991 Carnegie Mellon University
                      6:  * All Rights Reserved.
                      7:  *
                      8:  * Permission to use, copy, modify and distribute this software and its
                      9:  * documentation is hereby granted, provided that both the copyright
                     10:  * notice and this permission notice appear in all copies of the
                     11:  * software, derivative works or modified versions, and any portions
                     12:  * thereof, and that both notices appear in supporting documentation.
                     13:  *
                     14:  * CARNEGIE MELLON AND OMRON ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS IS"
                     15:  * CONDITION.  CARNEGIE MELLON AND OMRON DISCLAIM ANY LIABILITY OF ANY KIND
                     16:  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
                     17:  *
                     18:  * Carnegie Mellon requests users of this software to return to
                     19:  *
                     20:  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
                     21:  *  School of Computer Science
                     22:  *  Carnegie Mellon University
                     23:  *  Pittsburgh PA 15213-3890
                     24:  *
                     25:  * any improvements or extensions that they make and grant Carnegie the
                     26:  * rights to redistribute these changes.
                     27:  */
                     28:
                     29: #define        NDARTPORTS      2       /* Number of ports */
                     30:
                     31: struct dart_info {
                     32:        struct tty              *tty;
                     33:        u_char                  dart_swflags;
                     34: };
                     35:
                     36: /* saved registers */
                     37: struct dart_sv_reg {
                     38:        u_int8_t        sv_mr1[NDARTPORTS];
                     39:        u_int8_t        sv_mr2[NDARTPORTS];
                     40:        u_int8_t        sv_csr[NDARTPORTS];
                     41:        u_int8_t        sv_cr[NDARTPORTS];
                     42:        u_int8_t        sv_opr;
                     43:        u_int8_t        sv_imr;
                     44: };
                     45:
                     46: struct dartsoftc {
                     47:        struct device           sc_dev;
                     48:        bus_space_tag_t         sc_iot;
                     49:        bus_space_handle_t      sc_ioh;
                     50:        struct intrhand         sc_ih;
                     51:
                     52:        int                     sc_console;
                     53:
                     54:        struct dart_sv_reg      *sc_sv_reg;
                     55:        struct dart_sv_reg      sc_sv_reg_storage;
                     56:        struct dart_info        sc_dart[NDARTPORTS];
                     57: };
                     58:
                     59: void   dart_common_attach(struct dartsoftc *);
                     60: int    dartintr(void *);
                     61:
                     62: #define        DART_SIZE       0x40

CVSweb