|
|
1.1 root 1: /*
2: * Copyright (c) 1982, 1990 The Regents of the University of California.
3: * All rights reserved.
4: *
5: * Redistribution is only permitted until one year after the first shipment
6: * of 4.4BSD by the Regents. Otherwise, redistribution and use in source and
7: * binary forms are permitted provided that: (1) source distributions retain
8: * this entire copyright notice and comment, and (2) distributions including
9: * binaries display the following acknowledgement: This product includes
10: * software developed by the University of California, Berkeley and its
11: * contributors'' in the documentation or other materials provided with the
12: * distribution and in all advertising materials mentioning features or use
13: * of this software. Neither the name of the University nor the names of
14: * its contributors may be used to endorse or promote products derived from
15: * this software without specific prior written permission.
16: * THIS SOFTWARE IS PROVIDED AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
17: * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
18: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
19: *
20: * @(#)hpibvar.h 7.1 (Berkeley) 5/8/90
21: */
22:
23: #define HPIB_IPL(x) ((((x) >> 4) & 0x3) + 3)
24:
25: #define HPIBA 32
26: #define HPIBB 1
27: #define HPIBC 8
28: #define HPIBA_BA 21
29: #define HPIBC_BA 30
30: #define HPIBA_IPL 3
31:
32: #define CSA_BA 0x1F
33:
34: #define IDS_WDMA 0x04
35: #define IDS_WRITE 0x08
36: #define IDS_IR 0x40
37: #define IDS_IE 0x80
38: #define IDS_DMA(x) (1 << (x))
39:
40: #define C_DCL 0x14
41: #define C_LAG 0x20
42: #define C_UNL 0x3f
43: #define C_TAG 0x40
44: #define C_UNA 0x5e
45: #define C_UNT 0x5f
46: #define C_SCG 0x60
47:
48: struct hpib_softc {
49: struct hp_ctlr *sc_hc;
50: int sc_flags;
51: struct devqueue sc_dq;
52: struct devqueue sc_sq;
53: int sc_ba;
54: int sc_type;
55: char *sc_addr;
56: int sc_count;
57: int sc_curcnt;
58: };
59:
60: /* sc_flags */
61: #define HPIBF_IO 0x1
62: #define HPIBF_DONE 0x2
63: #define HPIBF_PPOLL 0x4
64: #define HPIBF_READ 0x8
65: #define HPIBF_DMA16 0x8000
66:
67: #ifdef KERNEL
68: extern struct hpib_softc hpib_softc[];
69: extern int internalhpib;
70: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.