[BACK]Return to hpreg.h CVS log [TXT][DIR] Up to [local] / sys / arch / vax / mba

Annotation of sys/arch/vax/mba/hpreg.h, Revision 1.1

1.1     ! nbrk        1: /*     $OpenBSD: hpreg.h,v 1.5 2002/06/11 09:36:24 hugh Exp $  */
        !             2: /*     $NetBSD: hpreg.h,v 1.5 2000/06/04 18:04:39 ragge Exp $ */
        !             3: /*
        !             4:  * Copyright (c) 1994 Ludd, University of Lule}, Sweden.
        !             5:  * All rights reserved.
        !             6:  *
        !             7:  * Redistribution and use in source and binary forms, with or without
        !             8:  * modification, are permitted provided that the following conditions
        !             9:  * are met:
        !            10:  * 1. Redistributions of source code must retain the above copyright
        !            11:  *    notice, this list of conditions and the following disclaimer.
        !            12:  * 2. Redistributions in binary form must reproduce the above copyright
        !            13:  *    notice, this list of conditions and the following disclaimer in the
        !            14:  *    documentation and/or other materials provided with the distribution.
        !            15:  * 3. All advertising materials mentioning features or use of this software
        !            16:  *    must display the following acknowledgement:
        !            17:  *     This product includes software developed at Ludd, University of Lule}.
        !            18:  * 4. The name of the author may not be used to endorse or promote products
        !            19:  *    derived from this software without specific prior written permission
        !            20:  *
        !            21:  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
        !            22:  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
        !            23:  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
        !            24:  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
        !            25:  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
        !            26:  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
        !            27:  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
        !            28:  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
        !            29:  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
        !            30:  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
        !            31:  */
        !            32:
        !            33: #ifdef notdef
        !            34: struct hp_regs {
        !            35:         int     hp_cs1;
        !            36:         int     hp_ds;
        !            37:         int     hp_er1;
        !            38:         int     hp_mr1;
        !            39:         int     hp_as;
        !            40:         int     hp_da;
        !            41:         int     hp_dt;
        !            42:         int     hp_la;
        !            43:         int     hp_sn;
        !            44:         int     hp_of;
        !            45:         int     hp_dc;
        !            46:         int     hp_hr;
        !            47:         int     hp_mr2;
        !            48:         int     hp_er2;
        !            49:         int     hp_ec1;
        !            50:         int     hp_ec2;
        !            51:         int     utrymme[16];
        !            52: };
        !            53: #endif
        !            54:
        !            55: #define        HP_CS1  0
        !            56: #define HP_DS  4
        !            57: #define HP_ER1 8
        !            58: #define HP_MR1 12
        !            59: #define HP_AS  16
        !            60: #define HP_DA  20
        !            61: #define HP_DT  24
        !            62: #define HP_LA  28
        !            63: #define HP_SN  32
        !            64: #define HP_OF  36
        !            65: #define HP_DC  40
        !            66: #define HP_HR  44
        !            67: #define HP_MR2 48
        !            68: #define HP_ER2 52
        !            69: #define HP_EC1 56
        !            70: #define HP_EC2 60
        !            71:
        !            72: #define HPCS_DVA       4000    /* Drive avail, in dual-port config */
        !            73: #define HPCS_WRITE     061     /* Write data */
        !            74: #define HPCS_WCHECK    051     /* Write check data */
        !            75: #define HPCS_WHEAD     063     /* Write header and data */
        !            76: #define HPCS_WCHEAD    053     /* Write check header and data */
        !            77: #define        HPCS_READ       071     /* Read data */
        !            78: #define HPCS_RHEAD     073     /* Read header and data */
        !            79: #define        HPCS_SEEK       005     /* Just seek */
        !            80: #define HPCS_RECAL     007     /* Recalibrate */
        !            81: #define HPCS_RTC       017     /* Return to centerline */
        !            82: #define HPCS_OFFSET    015     /* Offset */
        !            83: #define HPCS_SEARCH    031     /* Search */
        !            84: #define HPCS_UNLOAD    003     /* Unload pack (removable) */
        !            85: #define HPCS_RELEASE   013     /* Release massbuss port */
        !            86: #define HPCS_RPS       021     /* Read-in preset */
        !            87: #define        HPCS_PA         023     /* Pack acknowledge */
        !            88: #define HPCS_DC                011     /* Drive clear */
        !            89:
        !            90:
        !            91: #define HPDS_VV         0x40    /* Volume valid, not changed */
        !            92: #define HPDS_DRY        0x80    /* Drive ready to accept commands */
        !            93: #define HPDS_DPR        0x100   /* Drive present */
        !            94: #define HPDS_PGM        0x200   /* Programmable in dual-port config */
        !            95: #define HPDS_LBT        0x400   /* Last block transferred */
        !            96: #define HPDS_WRL        0x800   /* Write locked media */
        !            97: #define HPDS_MOL        0x1000  /* Medium on-line */
        !            98: #define HPDS_PIP        0x2000  /* Positioning in progress */
        !            99: #define HPDS_ERR        0x4000  /* ORed error bit, something wrong */
        !           100: #define HPDS_ATA        0x8000  /* Attention drive */
        !           101:
        !           102: #define HPDT_DRQ        0x800   /* Dual-port disk */
        !           103:
        !           104: #define        HPOF_FMT        0x1000  /* 16/18 bit data */
        !           105:
        !           106: /*
        !           107:  * Error registers. The defines are the corresponding bit number
        !           108:  * in the error register, instead of a bit mask.
        !           109:  * Use (1<<HPER1_FOO) when touching registers.
        !           110:  */
        !           111: #define        HPER1_ILF       0       /* Illegal function */
        !           112: #define HPER1_ILR      1       /* Illegal register */
        !           113: #define HPER1_RMR      2       /* Register modification refused */
        !           114: #define HPER1_PAR      3       /* Parity error */
        !           115: #define HPER1_FER      4       /* Format error */
        !           116: #define HPER1_WCF      5       /* Write clock failed */
        !           117: #define HPER1_ECH      6       /* ECC hard error */
        !           118: #define HPER1_HCE      7       /* Header compare error */
        !           119: #define HPER1_HCRC     8       /* Header CRC error */
        !           120: #define HPER1_AOE      9       /* Address overflow error */
        !           121: #define        HPER1_IAE       10      /* Invalid address error */
        !           122: #define HPER1_WLE      11      /* Write lock error */
        !           123: #define HPER1_DTE      12      /* Drive timing error */
        !           124: #define HPER1_OPI      13      /* Operation incomplete */
        !           125: #define HPER1_UNS      14      /* Unsafe drive */
        !           126: #define HPER1_DCK      15      /* Data check error */

CVSweb