xref: /csrg-svn/sys/tahoe/vba/scope.h (revision 35514)
134409Skarels /*
2*35514Sbostic  * Copyright (c) 1988 The Regents of the University of California.
3*35514Sbostic  * All rights reserved.
4*35514Sbostic  *
5*35514Sbostic  * This code is derived from software contributed to Berkeley by
6*35514Sbostic  * Computer Consoles Inc.
7*35514Sbostic  *
8*35514Sbostic  * Redistribution and use in source and binary forms are permitted
9*35514Sbostic  * provided that the above copyright notice and this paragraph are
10*35514Sbostic  * duplicated in all such forms and that any documentation,
11*35514Sbostic  * advertising materials, and other materials related to such
12*35514Sbostic  * distribution and use acknowledge that the software was developed
13*35514Sbostic  * by the University of California, Berkeley.  The name of the
14*35514Sbostic  * University may not be used to endorse or promote products derived
15*35514Sbostic  * from this software without specific prior written permission.
16*35514Sbostic  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
17*35514Sbostic  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
18*35514Sbostic  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
19*35514Sbostic  *
20*35514Sbostic  *	@(#)scope.h	7.2 (Berkeley) 09/16/88
2134409Skarels  */
2223996Ssam 
2325877Ssam #ifdef DOSCOPE
2425877Ssam /*  some i/o addresses used to generate pulses for scopes */
2523996Ssam #define	OUT1	0xffffb034
2623996Ssam #define	OUT2	0xffffb018
2723996Ssam #define	OUT3	0xffffb020
2823996Ssam #define	OUT4	0xffffb004
2923996Ssam #define	OUT5	0xffffb024
3023996Ssam #define	OUT6	0xffffb00c
3123996Ssam #define	OUT7	0xffffb02c
3223996Ssam 
3325675Ssam #define	IOaddr(off)	(caddr_t)(&vmem[(off) & 0x0fffff])
3423996Ssam 
3525877Ssam extern	char vmem[];
3625877Ssam extern	int cold;
3725877Ssam #define	scope_out(x)	if (!cold) movob(IOaddr(OUT/**/x),0)
3825877Ssam #define	scope_in(x)	if( !cold) dummy =  *IOaddr(IN/**/x)
3925877Ssam #else
4025877Ssam #define	scope_out(x)
4125877Ssam #define	scope_in(x)
4225877Ssam #endif
43