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

Annotation of sys/arch/hp300/dev/nhpibreg.h, Revision 1.1.1.1

1.1       nbrk        1: /*     $OpenBSD: nhpibreg.h,v 1.3 2003/06/02 23:27:45 millert Exp $    */
                      2: /*     $NetBSD: nhpibreg.h,v 1.5 1995/01/07 10:30:15 mycroft Exp $     */
                      3:
                      4: /*
                      5:  * Copyright (c) 1982, 1990, 1993
                      6:  *     The Regents of the University of California.  All rights reserved.
                      7:  *
                      8:  * Redistribution and use in source and binary forms, with or without
                      9:  * modification, are permitted provided that the following conditions
                     10:  * are met:
                     11:  * 1. Redistributions of source code must retain the above copyright
                     12:  *    notice, this list of conditions and the following disclaimer.
                     13:  * 2. Redistributions in binary form must reproduce the above copyright
                     14:  *    notice, this list of conditions and the following disclaimer in the
                     15:  *    documentation and/or other materials provided with the distribution.
                     16:  * 3. Neither the name of the University nor the names of its contributors
                     17:  *    may be used to endorse or promote products derived from this software
                     18:  *    without specific prior written permission.
                     19:  *
                     20:  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
                     21:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     22:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     23:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
                     24:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     25:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     26:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     27:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     28:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     29:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     30:  * SUCH DAMAGE.
                     31:  *
                     32:  *     @(#)nhpibreg.h  8.1 (Berkeley) 6/10/93
                     33:  */
                     34:
                     35: #include <hp300/dev/iotypes.h> /* XXX */
                     36:
                     37: struct nhpibdevice {
                     38:        u_char  hpib_pad0;
                     39:        vu_char hpib_cid;
                     40:        u_char  hpib_pad1;
                     41: #define        hpib_ie         hpib_ids
                     42:        vu_char hpib_ids;
                     43:        u_char  hpib_pad2;
                     44:        vu_char hpib_csa;
                     45:        u_char  hpib_pad3[11];
                     46: #define        hpib_mim        hpib_mis
                     47:        vu_char hpib_mis;
                     48:        u_char  hpib_pad4;
                     49: #define        hpib_lim        hpib_lis
                     50:        vu_char hpib_lis;
                     51:        u_char  hpib_pad5;
                     52:        vu_char hpib_is;
                     53:        u_char  hpib_pad6;
                     54: #define        hpib_acr        hpib_cls
                     55:        vu_char hpib_cls;
                     56:        u_char  hpib_pad7;
                     57:        vu_char hpib_ar;
                     58:        u_char  hpib_pad8;
                     59:        vu_char hpib_sprb;
                     60:        u_char  hpib_pad9;
                     61: #define        hpib_ppr        hpib_cpt
                     62:        vu_char hpib_cpt;
                     63:        u_char  hpib_pad10;
                     64:        vu_char hpib_data;
                     65: };
                     66:
                     67: /*
                     68:  * Bits in hpib_lis (and hpib_lim).
                     69:  */
                     70: #define        LIS_IFC         0x01
                     71: #define        LIS_SRQ         0x02
                     72: #define        LIS_MA          0x04
                     73: #define        LIS_DCAS        0x08
                     74: #define        LIS_APT         0x10
                     75: #define        LIS_UCG         0x20
                     76: #define        LIS_ERR         0x40
                     77: #define        LIS_GET         0x80
                     78:
                     79: #define        MIS_END         0x08
                     80: #define        MIS_BO          0x10
                     81: #define        MIS_BI          0x20
                     82:
                     83: #define        IS_TADS         0x02
                     84: #define        IS_LADS         0x04
                     85:
                     86: /*
                     87:  * ti9914 "Auxiliary Commands" - Some are Set/Clear, others pulse.
                     88:  */
                     89: #define        AUX_CSWRST      0x00    /* End software reset */
                     90: #define        AUX_RHDF        0x02    /* release RFD (ready for data) holdoff */
                     91: #define        AUX_CHDFA       0x03    /* Clear holdoff on all data */
                     92: #define        AUX_CHDFE       0x04    /* Clear holdoff on EOI data only */
                     93: #define        AUX_EOI         0x08    /* Pulse EOI (with data) */
                     94: #define        AUX_CLON        0x09    /* Clear listen only */
                     95: #define        AUX_CTON        0x0a    /* Clear talk only */
                     96: #define        AUX_GTS         0x0b    /* Go to standby (clears ATN line) */
                     97: #define        AUX_TCA         0x0c    /* Take control (async) */
                     98: #define        AUX_TCS         0x0d    /* Take control (sync) */
                     99: #define        AUX_CPP         0x0e    /* Clear parallel poll */
                    100: #define        AUX_CSIC        0x0f    /* Clear IFC (interface clear) line */
                    101: #define        AUX_CSRE        0x10    /* Clear REN (remote enable) line */
                    102: #define        AUX_CDAI        0x13    /* Clear interrupt disable */
                    103: #define        AUX_CSTD1       0x15    /* Clear 1200ns T1 delay */
                    104: #define        AUX_CSHDW       0x16    /* Clear shadow handshake */
                    105: #define        AUX_CVSTD1      0x17    /* Clear 600ns T1 delay */
                    106:
                    107: #define        AUX_SSWRST      0x80    /* Start software reset */
                    108: #define        AUX_SHDFA       0x83    /* Set holdoff on all data */
                    109: #define        AUX_SHDFE       0x84    /* Set holdoff on EOI data only */
                    110: #define        AUX_SLON        0x89    /* Set listen only */
                    111: #define        AUX_STON        0x8a    /* Set talk only */
                    112: #define        AUX_SPP         0x8e    /* Set parallel poll */
                    113: #define        AUX_SSIC        0x8f    /* Set IFC line */
                    114: #define        AUX_SSRE        0x90    /* Set REN line */
                    115: #define        AUX_SDAI        0x93    /* Disable all interrupts */
                    116: #define        AUX_SSTD1       0x95    /* Set T1 delay to 1200ns */
                    117: #define        AUX_SSHDW       0x96    /* Set shadow handshake */
                    118: #define        AUX_SVSTD1      0x97    /* Set T1 delay to 600ns */

CVSweb