spr.h (110385) | spr.h (125614) |
---|---|
1/* 2 * Copyright (c) 2001 The NetBSD Foundation, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 31 * POSSIBILITY OF SUCH DAMAGE. 32 * 33 * $NetBSD: spr.h,v 1.25 2002/08/14 15:38:40 matt Exp $ | 1/* 2 * Copyright (c) 2001 The NetBSD Foundation, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 31 * POSSIBILITY OF SUCH DAMAGE. 32 * 33 * $NetBSD: spr.h,v 1.25 2002/08/14 15:38:40 matt Exp $ |
34 * $FreeBSD: head/sys/powerpc/include/spr.h 110385 2003-02-05 12:04:29Z benno $ | 34 * $FreeBSD: head/sys/powerpc/include/spr.h 125614 2004-02-09 00:12:50Z grehan $ |
35 */ 36#ifndef _POWERPC_SPR_H_ 37#define _POWERPC_SPR_H_ 38 39#ifndef _LOCORE 40#define mtspr(reg, val) \ 41 __asm __volatile("mtspr %0,%1" : : "K"(reg), "r"(val)) 42#define mfspr(reg) \ --- 69 unchanged lines hidden (view full) --- 112#define IBM401F2 0x0026 113#define IBM401G2 0x0027 114#define IBMPOWER3 0x0041 115#define MPC860 0x0050 116#define MPC8240 0x0081 117#define IBM405GP 0x4011 118#define IBM405L 0x4161 119#define IBM750FX 0x7000 | 35 */ 36#ifndef _POWERPC_SPR_H_ 37#define _POWERPC_SPR_H_ 38 39#ifndef _LOCORE 40#define mtspr(reg, val) \ 41 __asm __volatile("mtspr %0,%1" : : "K"(reg), "r"(val)) 42#define mfspr(reg) \ --- 69 unchanged lines hidden (view full) --- 112#define IBM401F2 0x0026 113#define IBM401G2 0x0027 114#define IBMPOWER3 0x0041 115#define MPC860 0x0050 116#define MPC8240 0x0081 117#define IBM405GP 0x4011 118#define IBM405L 0x4161 119#define IBM750FX 0x7000 |
120#define MPC745X_P(v) ((v & 0xFFFC) == 0x8000) |
|
120#define MPC7450 0x8000 121#define MPC7455 0x8001 | 121#define MPC7450 0x8000 122#define MPC7455 0x8001 |
123#define MPC7457 0x8002 |
|
122#define MPC7410 0x800c 123#define MPC8245 0x8081 124 125#define SPR_IBAT0U 0x210 /* .68 Instruction BAT Reg 0 Upper */ 126#define SPR_IBAT0U 0x210 /* .6. Instruction BAT Reg 0 Upper */ 127#define SPR_IBAT0L 0x211 /* .6. Instruction BAT Reg 0 Lower */ 128#define SPR_IBAT1U 0x212 /* .6. Instruction BAT Reg 1 Upper */ 129#define SPR_IBAT1L 0x213 /* .6. Instruction BAT Reg 1 Lower */ --- 348 unchanged lines hidden --- | 124#define MPC7410 0x800c 125#define MPC8245 0x8081 126 127#define SPR_IBAT0U 0x210 /* .68 Instruction BAT Reg 0 Upper */ 128#define SPR_IBAT0U 0x210 /* .6. Instruction BAT Reg 0 Upper */ 129#define SPR_IBAT0L 0x211 /* .6. Instruction BAT Reg 0 Lower */ 130#define SPR_IBAT1U 0x212 /* .6. Instruction BAT Reg 1 Upper */ 131#define SPR_IBAT1L 0x213 /* .6. Instruction BAT Reg 1 Lower */ --- 348 unchanged lines hidden --- |