BSD 4_3_Reno release
[unix-history] / usr / src / sys / tahoevba / scope.h
CommitLineData
ca67e7b4 1/*
1c15e888
C
2 * Copyright (c) 1988 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Computer Consoles Inc.
7 *
8 * Redistribution is only permitted until one year after the first shipment
9 * of 4.4BSD by the Regents. Otherwise, redistribution and use in source and
10 * binary forms are permitted provided that: (1) source distributions retain
11 * this entire copyright notice and comment, and (2) distributions including
12 * binaries display the following acknowledgement: This product includes
13 * software developed by the University of California, Berkeley and its
14 * contributors'' in the documentation or other materials provided with the
15 * distribution and in all advertising materials mentioning features or use
16 * of this software. Neither the name of the University nor the names of
17 * its contributors may be used to endorse or promote products derived from
18 * this software without specific prior written permission.
19 * THIS SOFTWARE IS PROVIDED AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
20 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
21 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
22 *
23 * @(#)scope.h 7.3 (Berkeley) 6/28/90
ca67e7b4
C
24 */
25
26#ifdef DOSCOPE
27/* some i/o addresses used to generate pulses for scopes */
28#define OUT1 0xffffb034
29#define OUT2 0xffffb018
30#define OUT3 0xffffb020
31#define OUT4 0xffffb004
32#define OUT5 0xffffb024
33#define OUT6 0xffffb00c
34#define OUT7 0xffffb02c
35
36#define IOaddr(off) (caddr_t)(&vmem[(off) & 0x0fffff])
37
38extern char vmem[];
39extern int cold;
40#define scope_out(x) if (!cold) movob(IOaddr(OUT/**/x),0)
41#define scope_in(x) if( !cold) dummy = *IOaddr(IN/**/x)
42#else
43#define scope_out(x)
44#define scope_in(x)
45#endif