Home | History | Annotate | Line # | Download | only in mba
hpreg.h revision 1.2
      1 /*	$NetBSD: hpreg.h,v 1.2 1995/06/16 15:20:11 ragge Exp $ */
      2 /*
      3  * Copyright (c) 1994 Ludd, University of Lule}, Sweden.
      4  * All rights reserved.
      5  *
      6  * Redistribution and use in source and binary forms, with or without
      7  * modification, are permitted provided that the following conditions
      8  * are met:
      9  * 1. Redistributions of source code must retain the above copyright
     10  *    notice, this list of conditions and the following disclaimer.
     11  * 2. Redistributions in binary form must reproduce the above copyright
     12  *    notice, this list of conditions and the following disclaimer in the
     13  *    documentation and/or other materials provided with the distribution.
     14  * 3. All advertising materials mentioning features or use of this software
     15  *    must display the following acknowledgement:
     16  *     This product includes software developed at Ludd, University of Lule}.
     17  * 4. The name of the author may not be used to endorse or promote products
     18  *    derived from this software without specific prior written permission
     19  *
     20  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     21  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     22  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     23  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     24  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     25  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     26  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     27  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     28  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     29  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     30  */
     31 
     32  /* All bugs are subject to removal without further notice */
     33 
     34 
     35 
     36 struct hp_regs {
     37         int     hp_cs1;
     38         int     hp_ds;
     39         int     hp_er1;
     40         int     hp_mr1;
     41         int     hp_as;
     42         int     hp_da;
     43         int     hp_dt;
     44         int     hp_la;
     45         int     hp_sn;
     46         int     hp_of;
     47         int     hp_dc;
     48         int     hp_hr;
     49         int     hp_mr2;
     50         int     hp_er2;
     51         int     hp_ec1;
     52         int     hp_ec2;
     53         int     utrymme[16];
     54 };
     55 
     56 #define	hp_drv	hp_regs
     57 
     58 #define	HPCS_PA		0x13	/* Pack acknowledge */
     59 #define	HPCS_SEEK	0x5
     60 #define	HPCS_READ	0x39
     61 #define HPCS_DVA       0x800   /* Drive avail, in dual-port config */
     62 
     63 #define HPDS_VV         0x40    /* Volume valid, not changed */
     64 #define HPDS_DRY        0x80    /* Drive ready to accept commands */
     65 #define HPDS_DPR        0x100   /* Drive present */
     66 #define HPDS_PGM        0x200   /* Programmable in dual-port config */
     67 #define HPDS_WRL        0x800   /* Write locked media */
     68 #define HPDS_MOL        0x1000  /* Medium on-line */
     69 
     70 #define HPDT_DRQ        0x800   /* Dual-port disk */
     71 
     72 #define	HPOF_FMT	0x1000	/* 16/18 bit data */
     73 
     74 #if 0
     75 #define	HPCS_
     76 #define	HPCS_
     77 #define	HPCS_
     78 #define	HPCS_
     79 #define	HPCS_
     80 #define	HPCS_
     81 #define	HPCS_
     82 #define	HPCS_
     83 #endif
     84 
     85 
     86 
     87