cpu.h File Reference

Go to the source code of this file.

Data Structures

struct  cpuid_result

Defines

#define X86_EFLAGS_CF   0x00000001
#define X86_EFLAGS_PF   0x00000004
#define X86_EFLAGS_AF   0x00000010
#define X86_EFLAGS_ZF   0x00000040
#define X86_EFLAGS_SF   0x00000080
#define X86_EFLAGS_TF   0x00000100
#define X86_EFLAGS_IF   0x00000200
#define X86_EFLAGS_DF   0x00000400
#define X86_EFLAGS_OF   0x00000800
#define X86_EFLAGS_IOPL   0x00003000
#define X86_EFLAGS_NT   0x00004000
#define X86_EFLAGS_RF   0x00010000
#define X86_EFLAGS_VM   0x00020000
#define X86_EFLAGS_AC   0x00040000
#define X86_EFLAGS_VIF   0x00080000
#define X86_EFLAGS_VIP   0x00100000
#define X86_EFLAGS_ID   0x00200000
#define X86_VENDOR_INVALID   0
#define X86_VENDOR_INTEL   1
#define X86_VENDOR_CYRIX   2
#define X86_VENDOR_AMD   3
#define X86_VENDOR_UMC   4
#define X86_VENDOR_NEXGEN   5
#define X86_VENDOR_CENTAUR   6
#define X86_VENDOR_RISE   7
#define X86_VENDOR_TRANSMETA   8
#define X86_VENDOR_NSC   9
#define X86_VENDOR_SIS   10
#define X86_VENDOR_UNKNOWN   0xff

Functions

static struct cpuid_result cpuid (int op)
static unsigned int cpuid_eax (unsigned int op)
static unsigned int cpuid_ebx (unsigned int op)
static unsigned int cpuid_ecx (unsigned int op)
static unsigned int cpuid_edx (unsigned int op)


Define Documentation

#define X86_EFLAGS_AC   0x00040000

Definition at line 20 of file cpu.h.

Referenced by identify_cpu().

#define X86_EFLAGS_AF   0x00000010

Definition at line 9 of file cpu.h.

#define X86_EFLAGS_CF   0x00000001

Definition at line 7 of file cpu.h.

#define X86_EFLAGS_DF   0x00000400

Definition at line 14 of file cpu.h.

#define X86_EFLAGS_ID   0x00200000

Definition at line 23 of file cpu.h.

Referenced by have_cpuid_p().

#define X86_EFLAGS_IF   0x00000200

Definition at line 13 of file cpu.h.

#define X86_EFLAGS_IOPL   0x00003000

Definition at line 16 of file cpu.h.

#define X86_EFLAGS_NT   0x00004000

Definition at line 17 of file cpu.h.

#define X86_EFLAGS_OF   0x00000800

Definition at line 15 of file cpu.h.

#define X86_EFLAGS_PF   0x00000004

Definition at line 8 of file cpu.h.

#define X86_EFLAGS_RF   0x00010000

Definition at line 18 of file cpu.h.

#define X86_EFLAGS_SF   0x00000080

Definition at line 11 of file cpu.h.

#define X86_EFLAGS_TF   0x00000100

Definition at line 12 of file cpu.h.

#define X86_EFLAGS_VIF   0x00080000

Definition at line 21 of file cpu.h.

#define X86_EFLAGS_VIP   0x00100000

Definition at line 22 of file cpu.h.

#define X86_EFLAGS_VM   0x00020000

Definition at line 19 of file cpu.h.

#define X86_EFLAGS_ZF   0x00000040

Definition at line 10 of file cpu.h.

#define X86_VENDOR_AMD   3

Definition at line 97 of file cpu.h.

#define X86_VENDOR_CENTAUR   6

Definition at line 100 of file cpu.h.

#define X86_VENDOR_CYRIX   2

Definition at line 96 of file cpu.h.

#define X86_VENDOR_INTEL   1

Definition at line 95 of file cpu.h.

#define X86_VENDOR_INVALID   0

Definition at line 94 of file cpu.h.

Referenced by set_cpu_ops().

#define X86_VENDOR_NEXGEN   5

Definition at line 99 of file cpu.h.

#define X86_VENDOR_NSC   9

Definition at line 103 of file cpu.h.

#define X86_VENDOR_RISE   7

Definition at line 101 of file cpu.h.

#define X86_VENDOR_SIS   10

Definition at line 104 of file cpu.h.

#define X86_VENDOR_TRANSMETA   8

Definition at line 102 of file cpu.h.

#define X86_VENDOR_UMC   4

Definition at line 98 of file cpu.h.

#define X86_VENDOR_UNKNOWN   0xff

Definition at line 105 of file cpu.h.

Referenced by identify_cpu().


Function Documentation

static struct cpuid_result cpuid ( int  op  )  [static, read]

static unsigned int cpuid_eax ( unsigned int  op  )  [inline, static]

static unsigned int cpuid_ebx ( unsigned int  op  )  [inline, static]

Definition at line 61 of file cpu.h.

References __asm__(), eax, and ebx.

Referenced by get_initial_apicid(), get_node_core_id(), and init_processor_name().

Here is the call graph for this function:

Here is the caller graph for this function:

static unsigned int cpuid_ecx ( unsigned int  op  )  [inline, static]

Definition at line 71 of file cpu.h.

References __asm__(), eax, and cpuid_result::ecx.

Referenced by cpu_bus_scan(), do_k8_init_and_stop_secondaries(), dual_core(), for_each_ap(), get_core_num(), get_node_core_id(), init_processor_name(), model_10xxx_init(), and model_fxx_init().

Here is the call graph for this function:

Here is the caller graph for this function:

static unsigned int cpuid_edx ( unsigned int  op  )  [inline, static]

Definition at line 81 of file cpu.h.

References __asm__(), eax, and edx.

Referenced by cpuInitializeMCA().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Mon Dec 29 10:54:51 2008 for coreboot by  doxygen 1.5.5