Deleted Added
full compact
spr.h (141225) spr.h (176534)
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 141225 2005-02-04 01:17:04Z grehan $
34 * $FreeBSD: head/sys/powerpc/include/spr.h 176534 2008-02-25 00:09:23Z raj $
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) \

--- 77 unchanged lines hidden (view full) ---

120#define MPC745X_P(v) ((v & 0xFFF8) == 0x8000)
121#define MPC7450 0x8000
122#define MPC7455 0x8001
123#define MPC7457 0x8002
124#define MPC7447A 0x8003
125#define MPC7448 0x8004
126#define MPC7410 0x800c
127#define MPC8245 0x8081
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) \

--- 77 unchanged lines hidden (view full) ---

120#define MPC745X_P(v) ((v & 0xFFF8) == 0x8000)
121#define MPC7450 0x8000
122#define MPC7455 0x8001
123#define MPC7457 0x8002
124#define MPC7447A 0x8003
125#define MPC7448 0x8004
126#define MPC7410 0x800c
127#define MPC8245 0x8081
128#define FSL_E500v1 0x8020
129#define FSL_E500v2 0x8021
128
129#define SPR_IBAT0U 0x210 /* .68 Instruction BAT Reg 0 Upper */
130#define SPR_IBAT0U 0x210 /* .6. Instruction BAT Reg 0 Upper */
131#define SPR_IBAT0L 0x211 /* .6. Instruction BAT Reg 0 Lower */
132#define SPR_IBAT1U 0x212 /* .6. Instruction BAT Reg 1 Upper */
133#define SPR_IBAT1L 0x213 /* .6. Instruction BAT Reg 1 Lower */
134#define SPR_IBAT2U 0x214 /* .6. Instruction BAT Reg 2 Upper */
135#define SPR_IBAT2L 0x215 /* .6. Instruction BAT Reg 2 Lower */

--- 346 unchanged lines hidden ---
130
131#define SPR_IBAT0U 0x210 /* .68 Instruction BAT Reg 0 Upper */
132#define SPR_IBAT0U 0x210 /* .6. Instruction BAT Reg 0 Upper */
133#define SPR_IBAT0L 0x211 /* .6. Instruction BAT Reg 0 Lower */
134#define SPR_IBAT1U 0x212 /* .6. Instruction BAT Reg 1 Upper */
135#define SPR_IBAT1L 0x213 /* .6. Instruction BAT Reg 1 Lower */
136#define SPR_IBAT2U 0x214 /* .6. Instruction BAT Reg 2 Upper */
137#define SPR_IBAT2L 0x215 /* .6. Instruction BAT Reg 2 Lower */

--- 346 unchanged lines hidden ---