1 /* 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 and use in source and binary forms are permitted 9 * provided that the above copyright notice and this paragraph are 10 * duplicated in all such forms and that any documentation, 11 * advertising materials, and other materials related to such 12 * distribution and use acknowledge that the software was developed 13 * by the University of California, Berkeley. The name of the 14 * University may not be used to endorse or promote products derived 15 * from this software without specific prior written permission. 16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 19 * 20 * @(#)scope.h 7.2 (Berkeley) 09/16/88 21 */ 22 23 #ifdef DOSCOPE 24 /* some i/o addresses used to generate pulses for scopes */ 25 #define OUT1 0xffffb034 26 #define OUT2 0xffffb018 27 #define OUT3 0xffffb020 28 #define OUT4 0xffffb004 29 #define OUT5 0xffffb024 30 #define OUT6 0xffffb00c 31 #define OUT7 0xffffb02c 32 33 #define IOaddr(off) (caddr_t)(&vmem[(off) & 0x0fffff]) 34 35 extern char vmem[]; 36 extern int cold; 37 #define scope_out(x) if (!cold) movob(IOaddr(OUT/**/x),0) 38 #define scope_in(x) if( !cold) dummy = *IOaddr(IN/**/x) 39 #else 40 #define scope_out(x) 41 #define scope_in(x) 42 #endif 43