linux/arch/x86/kernel/cpu/feature_names.c
<<
>>
Prefs
   1/*
   2 * Strings for the various x86 capability flags.
   3 *
   4 * This file must not contain any executable code.
   5 */
   6
   7#include <asm/cpufeature.h>
   8
   9/*
  10 * These flag bits must match the definitions in <asm/cpufeature.h>.
  11 * NULL means this bit is undefined or reserved; either way it doesn't
  12 * have meaning as far as Linux is concerned.  Note that it's important
  13 * to realize there is a difference between this table and CPUID -- if
  14 * applications want to get the raw CPUID data, they should access
  15 * /dev/cpu/<cpu_nr>/cpuid instead.
  16 */
  17const char * const x86_cap_flags[NCAPINTS*32] = {
  18        /* Intel-defined */
  19        "fpu", "vme", "de", "pse", "tsc", "msr", "pae", "mce",
  20        "cx8", "apic", NULL, "sep", "mtrr", "pge", "mca", "cmov",
  21        "pat", "pse36", "pn", "clflush", NULL, "dts", "acpi", "mmx",
  22        "fxsr", "sse", "sse2", "ss", "ht", "tm", "ia64", "pbe",
  23
  24        /* AMD-defined */
  25        NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
  26        NULL, NULL, NULL, "syscall", NULL, NULL, NULL, NULL,
  27        NULL, NULL, NULL, "mp", "nx", NULL, "mmxext", NULL,
  28        NULL, "fxsr_opt", "pdpe1gb", "rdtscp", NULL, "lm",
  29        "3dnowext", "3dnow",
  30
  31        /* Transmeta-defined */
  32        "recovery", "longrun", NULL, "lrti", NULL, NULL, NULL, NULL,
  33        NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
  34        NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
  35        NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
  36
  37        /* Other (Linux-defined) */
  38        "cxmmx", "k6_mtrr", "cyrix_arr", "centaur_mcr",
  39        NULL, NULL, NULL, NULL,
  40        "constant_tsc", "up", NULL, "arch_perfmon",
  41        "pebs", "bts", NULL, NULL,
  42        "rep_good", NULL, NULL, NULL,
  43        "nopl", NULL, NULL, NULL,
  44        NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
  45
  46        /* Intel-defined (#2) */
  47        "pni", NULL, NULL, "monitor", "ds_cpl", "vmx", "smx", "est",
  48        "tm2", "ssse3", "cid", NULL, NULL, "cx16", "xtpr", NULL,
  49        NULL, NULL, "dca", "sse4_1", "sse4_2", NULL, NULL, "popcnt",
  50        NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
  51
  52        /* VIA/Cyrix/Centaur-defined */
  53        NULL, NULL, "rng", "rng_en", NULL, NULL, "ace", "ace_en",
  54        "ace2", "ace2_en", "phe", "phe_en", "pmm", "pmm_en", NULL, NULL,
  55        NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
  56        NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
  57
  58        /* AMD-defined (#2) */
  59        "lahf_lm", "cmp_legacy", "svm", "extapic",
  60        "cr8_legacy", "abm", "sse4a", "misalignsse",
  61        "3dnowprefetch", "osvw", "ibs", "sse5",
  62        "skinit", "wdt", NULL, NULL,
  63        NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
  64        NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
  65
  66        /* Auxiliary (Linux-defined) */
  67        "ida", NULL, NULL, NULL, NULL, NULL, NULL, NULL,
  68        NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
  69        NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
  70        NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
  71};
  72
  73const char *const x86_power_flags[32] = {
  74        "ts",   /* temperature sensor */
  75        "fid",  /* frequency id control */
  76        "vid",  /* voltage id control */
  77        "ttp",  /* thermal trip */
  78        "tm",
  79        "stc",
  80        "100mhzsteps",
  81        "hwpstate",
  82        "",     /* tsc invariant mapped to constant_tsc */
  83                /* nothing */
  84};
  85