reg.h revision 1.1
1/*	$OpenBSD: reg.h,v 1.1 1998/07/07 21:32:45 mickey Exp $	*/
2
3/*
4 * Copyright (c) 1990,1994 The University of Utah and
5 * the Computer Systems Laboratory at the University of Utah (CSL).
6 * All rights reserved.
7 *
8 * Permission to use, copy, modify and distribute this software is hereby
9 * granted provided that (1) source code retains these copyright, permission,
10 * and disclaimer notices, and (2) redistributions including binaries
11 * reproduce the notices in supporting documentation, and (3) all advertising
12 * materials mentioning features or use of this software display the following
13 * acknowledgement: ``This product includes software developed by the
14 * Computer Systems Laboratory at the University of Utah.''
15 *
16 * THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF THIS SOFTWARE IN ITS "AS
17 * IS" CONDITION.  THE UNIVERSITY OF UTAH AND CSL DISCLAIM ANY LIABILITY OF
18 * ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
19 *
20 * CSL requests users of this software to return to csl-dist@cs.utah.edu any
21 * improvements that they make and grant CSL redistribution rights.
22 *
23 * 	Utah $Hdr: regs.h 1.6 94/12/14$
24 *	Author: Bob Wheeler, University of Utah CSL
25 */
26
27/*
28 * constants for registers for use with the following routines:
29 *
30 *     void mtctl(reg, value)	- move to control register
31 *     int mfctl(reg)		- move from control register
32 *     int mtsp(sreg, value)	- move to space register
33 *     int mfsr(sreg)		- move from space register
34 */
35
36#define CR_RCTR	 0
37#define CR_PIDR1 8
38#define CR_PIDR2 9
39#define CR_CCR   10
40#define CR_SAR	 11
41#define CR_PIDR3 12
42#define CR_PIDR4 13
43#define CR_IVA	 14
44#define CR_EIEM  15
45#define CR_ITMR  16
46#define CR_PCSQ  17
47#define CR_PCOQ  18
48#define CR_IIR   19
49#define CR_ISR   20
50#define CR_IOR   21
51#define CR_IPSW  22
52#define CR_EIRR  23
53#define CR_PTOV  24
54#define CR_VTOP  25
55#define CR_TR2   26
56#define CR_TR3   27
57#define CR_TR4   28
58#define CR_TR5   29
59#define CR_TR6   30
60#define CR_TR7   31
61
62#define CCR_MASK 0xff
63
64