1*8ac3875aSrmind /* $NetBSD: fc.h,v 1.4 2011/02/08 20:20:24 rmind Exp $ */ 2ec984a04Sfredette 3ec984a04Sfredette /* 4*8ac3875aSrmind * Copyright (c) 1988 University of Utah. 5ec984a04Sfredette * Copyright (c) 1982, 1990 The Regents of the University of California. 6ec984a04Sfredette * All rights reserved. 7ec984a04Sfredette * 8ec984a04Sfredette * This code is derived from software contributed to Berkeley by 9ec984a04Sfredette * the Systems Programming Group of the University of Utah Computer 10ec984a04Sfredette * Science Department. 11ec984a04Sfredette * 12ec984a04Sfredette * Redistribution and use in source and binary forms, with or without 13ec984a04Sfredette * modification, are permitted provided that the following conditions 14ec984a04Sfredette * are met: 15ec984a04Sfredette * 1. Redistributions of source code must retain the above copyright 16ec984a04Sfredette * notice, this list of conditions and the following disclaimer. 17ec984a04Sfredette * 2. Redistributions in binary form must reproduce the above copyright 18ec984a04Sfredette * notice, this list of conditions and the following disclaimer in the 19ec984a04Sfredette * documentation and/or other materials provided with the distribution. 20aad01611Sagc * 3. Neither the name of the University nor the names of its contributors 21aad01611Sagc * may be used to endorse or promote products derived from this software 22aad01611Sagc * without specific prior written permission. 23aad01611Sagc * 24aad01611Sagc * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 25aad01611Sagc * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 26aad01611Sagc * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 27aad01611Sagc * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 28aad01611Sagc * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29aad01611Sagc * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30aad01611Sagc * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31aad01611Sagc * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32aad01611Sagc * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33aad01611Sagc * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34aad01611Sagc * SUCH DAMAGE. 35aad01611Sagc * 36aad01611Sagc * from: Utah Hdr: cpu.h 1.16 91/03/25 37aad01611Sagc * from: @(#)cpu.h 7.7 (Berkeley) 6/27/91 38aad01611Sagc * cpu.h,v 1.2 1993/05/22 07:58:17 cgd Exp 39aad01611Sagc */ 40ec984a04Sfredette 41ec984a04Sfredette /* 42ec984a04Sfredette * This file defines the values that can be loaded into the 43ec984a04Sfredette * "sfc" and "dfc" registers (source/dest. function code). 44ec984a04Sfredette * 45ec984a04Sfredette * These definitions used to be in <machine/cpu.h> but were 46ec984a04Sfredette * moved here so they can be included only where needed. 47ec984a04Sfredette */ 48ec984a04Sfredette 49ec984a04Sfredette /* 680X0 function codes */ 50ec984a04Sfredette #define FC_USERD 1 /* user data space */ 51ec984a04Sfredette #define FC_USERP 2 /* user program space */ 52ec984a04Sfredette #define FC_CTRL3 3 /* sun2 control space */ 53ec984a04Sfredette #define FC_CTRL4 4 /* unused */ 54ec984a04Sfredette #define FC_SUPERD 5 /* supervisor data space */ 55ec984a04Sfredette #define FC_SUPERP 6 /* supervisor program space */ 56ec984a04Sfredette #define FC_CPU 7 /* CPU space */ 57ec984a04Sfredette 58ec984a04Sfredette #define FC_CONTROL FC_CTRL3 59