blob: 42df316fb8baa292fbb9aa7c63f9f7fd484d818f [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
Russell King4baa9922008-08-02 10:55:55 +01003 * arch/arm/include/asm/procinfo.h
Linus Torvalds1da177e2005-04-16 15:20:36 -07004 *
5 * Copyright (C) 1996-1999 Russell King
Linus Torvalds1da177e2005-04-16 15:20:36 -07006 */
7#ifndef __ASM_PROCINFO_H
8#define __ASM_PROCINFO_H
9
Russell King5974eaa2006-11-09 14:37:06 +000010#ifdef __KERNEL__
Linus Torvalds1da177e2005-04-16 15:20:36 -070011
12struct cpu_tlb_fns;
13struct cpu_user_fns;
14struct cpu_cache_fns;
15struct processor;
16
17/*
18 * Note! struct processor is always defined if we're
19 * using MULTI_CPU, otherwise this entry is unused,
20 * but still exists.
21 *
22 * NOTE! The following structure is defined by assembly
23 * language, NOT C code. For more information, check:
24 * arch/arm/mm/proc-*.S and arch/arm/kernel/head.S
25 */
26struct proc_info_list {
27 unsigned int cpu_val;
28 unsigned int cpu_mask;
Russell King8799ee92006-06-29 18:24:21 +010029 unsigned long __cpu_mm_mmu_flags; /* used by head.S */
30 unsigned long __cpu_io_mmu_flags; /* used by head.S */
Linus Torvalds1da177e2005-04-16 15:20:36 -070031 unsigned long __cpu_flush; /* used by head.S */
32 const char *arch_name;
33 const char *elf_name;
34 unsigned int elf_hwcap;
35 const char *cpu_name;
36 struct processor *proc;
37 struct cpu_tlb_fns *tlb;
38 struct cpu_user_fns *user;
39 struct cpu_cache_fns *cache;
40};
41
Russell King5974eaa2006-11-09 14:37:06 +000042#else /* __KERNEL__ */
43#include <asm/elf.h>
44#warning "Please include asm/elf.h instead"
45#endif /* __KERNEL__ */
Linus Torvalds1da177e2005-04-16 15:20:36 -070046#endif