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 189757 2009-03-13 06:28:20Z 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) \
--- 516 unchanged lines hidden (view full) ---
559#define SPR_MCSRR0 0x23a /* ..8 570 Machine check SRR0 */
560#define SPR_MCSRR1 0x23b /* ..8 571 Machine check SRR1 */
561
562#define SPR_SVR 0x3ff /* ..8 1023 System Version Register */
563#define SVR_MPC8533 0x803c
564#define SVR_MPC8533E 0x8034
565#define SVR_MPC8541 0x8072
566#define SVR_MPC8541E 0x807a
567#define SVR_MPC8548 0x8031
568#define SVR_MPC8548E 0x8039
569#define SVR_MPC8555 0x8071
570#define SVR_MPC8555E 0x8079
571#define SVR_MPC8572 0x80e0
572#define SVR_MPC8572E 0x80e8
573#define SVR_VER(svr) (((svr) >> 16) & 0xffff)
574
575#define SPR_PID0 0x030 /* ..8 Process ID Register 0 */
576#define SPR_PID1 0x279 /* ..8 Process ID Register 1 */
--- 53 unchanged lines hidden ---
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 189757 2009-03-13 06:28:20Z 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) \
--- 516 unchanged lines hidden (view full) ---
559#define SPR_MCSRR0 0x23a /* ..8 570 Machine check SRR0 */
560#define SPR_MCSRR1 0x23b /* ..8 571 Machine check SRR1 */
561
562#define SPR_SVR 0x3ff /* ..8 1023 System Version Register */
563#define SVR_MPC8533 0x803c
564#define SVR_MPC8533E 0x8034
565#define SVR_MPC8541 0x8072
566#define SVR_MPC8541E 0x807a
567#define SVR_MPC8548 0x8031
568#define SVR_MPC8548E 0x8039
569#define SVR_MPC8555 0x8071
570#define SVR_MPC8555E 0x8079
571#define SVR_MPC8572 0x80e0
572#define SVR_MPC8572E 0x80e8
573#define SVR_VER(svr) (((svr) >> 16) & 0xffff)
574
575#define SPR_PID0 0x030 /* ..8 Process ID Register 0 */
576#define SPR_PID1 0x279 /* ..8 Process ID Register 1 */
--- 53 unchanged lines hidden ---