mirror of
https://github.com/torvalds/linux.git
synced 2024-12-23 03:11:46 +00:00
1da177e4c3
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
57 lines
1.2 KiB
C
57 lines
1.2 KiB
C
/*
|
|
* linux/include/asm-arm/procinfo.h
|
|
*
|
|
* Copyright (C) 1996-1999 Russell King
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
#ifndef __ASM_PROCINFO_H
|
|
#define __ASM_PROCINFO_H
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
//struct processor;
|
|
//struct cpu_user_fns;
|
|
|
|
struct proc_info_item {
|
|
const char *manufacturer;
|
|
const char *cpu_name;
|
|
};
|
|
|
|
/*
|
|
* Note! struct processor is always defined if we're
|
|
* using MULTI_CPU, otherwise this entry is unused,
|
|
* but still exists.
|
|
*
|
|
* NOTE! The following structure is defined by assembly
|
|
* language, NOT C code. For more information, check:
|
|
* arch/arm/mm/proc-*.S and arch/arm/kernel/head-armv.S
|
|
*/
|
|
struct proc_info_list {
|
|
unsigned int cpu_val;
|
|
unsigned int cpu_mask;
|
|
const char *arch_name;
|
|
const char *elf_name;
|
|
unsigned int elf_hwcap;
|
|
struct proc_info_item *info;
|
|
struct processor *proc;
|
|
};
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
#define PROC_INFO_SZ 48
|
|
|
|
#define HWCAP_SWP 1
|
|
#define HWCAP_HALF 2
|
|
#define HWCAP_THUMB 4
|
|
#define HWCAP_26BIT 8 /* Play it safe */
|
|
#define HWCAP_FAST_MULT 16
|
|
#define HWCAP_FPA 32
|
|
#define HWCAP_VFP 64
|
|
#define HWCAP_EDSP 128
|
|
#define HWCAP_JAVA 256
|
|
|
|
#endif
|