hpreg.h revision 1.1 1 /* $NetBSD: hpreg.h,v 1.1 1995/02/13 00:44:01 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_drv {
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 HPCS_PA 0x13 /* Pack acknowledge */
57 #define HPCS_SEEK 0x5
58 #define HPCS_READ 0x39
59 #if 0
60 #define HPCS_
61 #define HPCS_
62 #define HPCS_
63 #define HPCS_
64 #define HPCS_
65 #define HPCS_
66 #define HPCS_
67 #define HPCS_
68 #endif
69
70 #define HPOF_FMT 0x1000 /* 16/18 bit data */
71
72
73