xref: /netbsd-src/sys/arch/vax/mba/hpreg.h (revision 9573504567626934c7ee01c7dce0c4bb1dfe7403)
1 /*	$NetBSD: hpreg.h,v 1.3 1995/10/20 13:43:43 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_DVA	4000	/* Drive avail, in dual-port config */
59 #define HPCS_WRITE	061	/* Write data */
60 #define HPCS_WCHECK	051	/* Write check data */
61 #define HPCS_WHEAD	063	/* Write header and data */
62 #define HPCS_WCHEAD	053	/* Write check header and data */
63 #define	HPCS_READ	071	/* Read data */
64 #define HPCS_RHEAD	073	/* Read header and data */
65 #define	HPCS_SEEK	005	/* Just seek */
66 #define HPCS_RECAL	007	/* Recalibrate */
67 #define HPCS_RTC	017	/* Return to centerline */
68 #define HPCS_OFFSET	015	/* Offset */
69 #define HPCS_SEARCH	031	/* Search */
70 #define HPCS_UNLOAD	003	/* Unload pack (removable) */
71 #define HPCS_RELEASE	013	/* Release massbuss port */
72 #define HPCS_RPS	021	/* Read-in preset */
73 #define	HPCS_PA		023	/* Pack acknowledge */
74 #define HPCS_DC		011	/* Drive clear */
75 
76 
77 #define HPDS_VV         0x40    /* Volume valid, not changed */
78 #define HPDS_DRY        0x80    /* Drive ready to accept commands */
79 #define HPDS_DPR        0x100   /* Drive present */
80 #define HPDS_PGM        0x200   /* Programmable in dual-port config */
81 #define HPDS_WRL        0x800   /* Write locked media */
82 #define HPDS_MOL        0x1000  /* Medium on-line */
83 
84 #define HPDT_DRQ        0x800   /* Dual-port disk */
85 
86 #define	HPOF_FMT	0x1000	/* 16/18 bit data */
87 
88 #if 0
89 #define	HPCS_
90 #define	HPCS_
91 #define	HPCS_
92 #define	HPCS_
93 #define	HPCS_
94 #define	HPCS_
95 #define	HPCS_
96 #define	HPCS_
97 #endif
98 
99 
100 
101