- See Issue Tracker id-10 "lnxi-patch-10".

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2074 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Jason Schildt 2005-10-25 21:34:06 +00:00
parent a922bac99c
commit 74cf993a54
1 changed files with 12 additions and 33 deletions

View File

@ -3,44 +3,23 @@ static int is_cpu_rev_a0(void)
{ {
return (cpuid_eax(1) & 0xfffef) == 0x0f00; return (cpuid_eax(1) & 0xfffef) == 0x0f00;
} }
//AMD_D0_SUPPORT
static int is_cpu_pre_d0(void)
{
return (cpuid_eax(1) & 0xfff0f) < 0x10f00;
}
static int is_cpu_d0(void)
{
return (cpuid_eax(1) & 0xfff0f) == 0x10f00;
}
//AMD_E0_SUPPORT
static int is_cpu_pre_e0(void)
{
return (cpuid_eax(1) & 0xfff0f) < 0x20f00;
}
static int is_cpu_e0(void)
{
return (cpuid_eax(1) & 0xfff00) == 0x20f00;
}
static int is_cpu_pre_c0(void)
{
return (cpuid_eax(1) & 0xfffef) < 0x0f48;
}
static int is_cpu_c0(void)
{
return (cpuid_eax(1) & 0xfffef) == 0x0f48;
}
static int is_cpu_pre_b3(void) static int is_cpu_pre_b3(void)
{ {
return (cpuid_eax(1) & 0xfffef) < 0x0f41; return (cpuid_eax(1) & 0xfffef) < 0x0f41;
} }
static int is_cpu_b3(void) static int is_cpu_pre_c0(void)
{ {
return (cpuid_eax(1) & 0xfffef) == 0x0f41; return (cpuid_eax(1) & 0xfffef) < 0x0f48;
}
static int is_cpu_pre_d0(void)
{
return (cpuid_eax(1) & 0xfff0f) < 0x10000;
}
static int is_cpu_pre_e0(void)
{
return (cpuid_eax(1) & 0xfff0f) < 0x20f00;
} }