[BACK]Return to hpibvar.h CVS log [TXT][DIR] Up to [local] / sys / arch / hp300 / stand / include

Annotation of sys/arch/hp300/stand/include/hpibvar.h, Revision 1.1.1.1

1.1       nbrk        1: /*     $OpenBSD: hpibvar.h,v 1.4 2006/08/17 06:31:10 miod Exp $        */
                      2: /*     $NetBSD: hpibvar.h,v 1.4 1994/10/26 07:27:24 cgd 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:  *     @(#)hpibvar.h   8.1 (Berkeley) 6/10/93
                     33:  */
                     34:
                     35: #define        HPIBA           32
                     36: #define        HPIBB           1
                     37: #define        HPIBC           8
                     38: #define        HPIBA_BA        21
                     39: #define        HPIBC_BA        30
                     40:
                     41: #define        CSA_BA          0x1F
                     42:
                     43: #define        C_DCL           20
                     44: #define        C_LAG           32
                     45: #define        C_UNL           63
                     46: #define        C_TAG           64
                     47: #define        C_UNA           94
                     48: #define        C_UNT           95
                     49: #define        C_SCG           96
                     50:
                     51: struct hpib_softc {
                     52:        char    sc_alive;
                     53:        char    sc_type;
                     54:        int     sc_ba;
                     55:        char    *sc_addr;
                     56: };
                     57:
                     58: extern struct hpib_softc hpib_softc[];
                     59:
                     60: /*
                     61:  * Description structure for CS/80 devices.
                     62:  */
                     63:
                     64: struct cs80_describe {
                     65:        u_int   d_iuw:16,       /* controller: installed unit word */
                     66:                d_cmaxxfr:16,   /* controller: max transfer rate (Kb) */
                     67:                d_ctype:8,      /* controller: controller type */
                     68:                d_utype:8,      /* unit: unit type */
                     69:                d_name:24,      /* unit: name (6 BCD digits) */
                     70:                d_sectsize:16,  /* unit: # of bytes per block (sector) */
                     71:                d_blkbuf:8,     /* unit: # of blocks which can be buffered */
                     72:                d_burstsize:8,  /* unit: recommended burst size */
                     73:                d_blocktime:16, /* unit: block time (u-sec) */
                     74:                d_uavexfr:16,   /* unit: average transfer rate (Kb) */
                     75:                d_retry:16,     /* unit: optimal retry time (1/100-sec) */
                     76:                d_access:16,    /* unit: access time param (1/100-sec) */
                     77:                d_maxint:8,     /* unit: maximum interleave */
                     78:                d_fvbyte:8,     /* unit: fixed volume byte */
                     79:                d_rvbyte:8,     /* unit: removable volume byte */
                     80:                d_maxcyl:24,    /* volume: maximum cylinder */
                     81:                d_maxhead:8,    /* volume: maximum head */
                     82:                d_maxsect:16,   /* volume: maximum sector on track */
                     83:                d_maxvsecth:16, /* volume: maximum sector on volume (MSW) */
                     84:                d_maxvsectl:32, /* volume: maximum sector on volume (LSWs) */
                     85:                d_interleave:8; /* volume: current interleave */
                     86: } __packed;
                     87:
                     88: int    hpibalive(int);
                     89: void   hpibgo(int, int, int, void *, int, int);
                     90: int    hpibid(int, int);
                     91: int    hpibrecv(int, int, int, void *, int);
                     92: int    hpibsend(int, int, int, void *, int);
                     93: int    hpibswait(int, int);
                     94:
                     95: int    fhpibinit(int);
                     96: int    fhpibppoll(int);
                     97: int    fhpibrecv(int, int, int, char *, int);
                     98: int    fhpibsend(int, int, int, char *, int);
                     99: int    nhpibinit(int);
                    100: int    nhpibppoll(int);
                    101: int    nhpibrecv(int, int, int, char *, int);
                    102: int    nhpibsend(int, int, int, char *, int);

CVSweb