Path: blob/master/arch/mn10300/proc-mn2ws0050/include/proc/smp-regs.h
10820 views
/* MN10300/AM33v2 Microcontroller SMP registers1*2* Copyright (C) 2006 Matsushita Electric Industrial Co., Ltd.3* All Rights Reserved.4* Created:5* 13-Nov-2006 MEI Add extended cache and atomic operation register6* for SMP support.7* 23-Feb-2007 MEI Add define for gdbstub SMP.8*9* This program is free software; you can redistribute it and/or10* modify it under the terms of the GNU General Public License11* as published by the Free Software Foundation; either version12* 2 of the License, or (at your option) any later version.13*/1415#ifndef _ASM_PROC_SMP_REGS_H16#define _ASM_PROC_SMP_REGS_H1718#ifdef __KERNEL__1920#ifndef __ASSEMBLY__21#include <linux/types.h>22#endif23#include <asm/cpu-regs.h>2425/*26* Reference to the interrupt controllers of other CPUs27*/28#define CROSS_ICR_CPU_SHIFT 162930#define CROSS_GxICR(X, CPU) __SYSREG(0xc4000000 + (X) * 4 + \31((X) >= 64 && (X) < 192) * 0xf00 + ((CPU) << CROSS_ICR_CPU_SHIFT), u16)32#define CROSS_GxICR_u8(X, CPU) __SYSREG(0xc4000000 + (X) * 4 + \33(((X) >= 64) && ((X) < 192)) * 0xf00 + ((CPU) << CROSS_ICR_CPU_SHIFT), u8)3435/* CPU ID register */36#define CPUID __SYSREGC(0xc0000054, u32)37#define CPUID_MASK 0x00000007 /* CPU ID mask */3839/* extended cache control register */40#define ECHCTR __SYSREG(0xc0000c20, u32)41#define ECHCTR_IBCM 0x00000001 /* instruction cache broad cast mask */42#define ECHCTR_DBCM 0x00000002 /* data cache broad cast mask */43#define ECHCTR_ISPM 0x00000004 /* instruction cache snoop mask */44#define ECHCTR_DSPM 0x00000008 /* data cache snoop mask */4546#define NMIAGR __SYSREG(0xd400013c, u16)47#define NMIAGR_GN 0x03fc4849#endif /* __KERNEL__ */50#endif /* _ASM_PROC_SMP_REGS_H */515253