cpu-info.h (384740dc49ea651ba350704d13ff6be9976e37fe) | cpu-info.h (6aa3524c182c01b8b8b7c21c4da20c742a9b4d86) |
---|---|
1/* 2 * This file is subject to the terms and conditions of the GNU General Public 3 * License. See the file "COPYING" in the main directory of this archive 4 * for more details. 5 * 6 * Copyright (C) 1994 Waldorf GMBH 7 * Copyright (C) 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2003 Ralf Baechle 8 * Copyright (C) 1996 Paul M. Antoine 9 * Copyright (C) 1999, 2000 Silicon Graphics, Inc. 10 * Copyright (C) 2004 Maciej W. Rozycki 11 */ 12#ifndef __ASM_CPU_INFO_H 13#define __ASM_CPU_INFO_H 14 | 1/* 2 * This file is subject to the terms and conditions of the GNU General Public 3 * License. See the file "COPYING" in the main directory of this archive 4 * for more details. 5 * 6 * Copyright (C) 1994 Waldorf GMBH 7 * Copyright (C) 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2003 Ralf Baechle 8 * Copyright (C) 1996 Paul M. Antoine 9 * Copyright (C) 1999, 2000 Silicon Graphics, Inc. 10 * Copyright (C) 2004 Maciej W. Rozycki 11 */ 12#ifndef __ASM_CPU_INFO_H 13#define __ASM_CPU_INFO_H 14 |
15#include <linux/types.h> 16 |
|
15#include <asm/cache.h> 16 17/* 18 * Descriptor for a cache 19 */ 20struct cache_desc { 21 unsigned int waysize; /* Bytes per way */ 22 unsigned short sets; /* Number of lines per set */ --- 41 unchanged lines hidden (view full) --- 64 * to all TCs within the same VPE. 65 */ 66 int vpe_id; /* Virtual Processor number */ 67#endif 68#ifdef CONFIG_MIPS_MT_SMTC 69 int tc_id; /* Thread Context number */ 70#endif 71 void *data; /* Additional data */ | 17#include <asm/cache.h> 18 19/* 20 * Descriptor for a cache 21 */ 22struct cache_desc { 23 unsigned int waysize; /* Bytes per way */ 24 unsigned short sets; /* Number of lines per set */ --- 41 unchanged lines hidden (view full) --- 66 * to all TCs within the same VPE. 67 */ 68 int vpe_id; /* Virtual Processor number */ 69#endif 70#ifdef CONFIG_MIPS_MT_SMTC 71 int tc_id; /* Thread Context number */ 72#endif 73 void *data; /* Additional data */ |
74 unsigned int watch_reg_count; /* Number that exist */ 75 unsigned int watch_reg_use_cnt; /* Usable by ptrace */ 76#define NUM_WATCH_REGS 4 77 u16 watch_reg_masks[NUM_WATCH_REGS]; |
|
72} __attribute__((aligned(SMP_CACHE_BYTES))); 73 74extern struct cpuinfo_mips cpu_data[]; 75#define current_cpu_data cpu_data[smp_processor_id()] 76#define raw_current_cpu_data cpu_data[raw_smp_processor_id()] 77 78extern void cpu_probe(void); 79extern void cpu_report(void); 80 81extern const char *__cpu_name[]; 82#define cpu_name_string() __cpu_name[smp_processor_id()] 83 84#endif /* __ASM_CPU_INFO_H */ | 78} __attribute__((aligned(SMP_CACHE_BYTES))); 79 80extern struct cpuinfo_mips cpu_data[]; 81#define current_cpu_data cpu_data[smp_processor_id()] 82#define raw_current_cpu_data cpu_data[raw_smp_processor_id()] 83 84extern void cpu_probe(void); 85extern void cpu_report(void); 86 87extern const char *__cpu_name[]; 88#define cpu_name_string() __cpu_name[smp_processor_id()] 89 90#endif /* __ASM_CPU_INFO_H */ |