Chameleon

Chameleon Commit Details

Date:2010-10-12 03:25:32 (10 years 1 month ago)
Author:Azimutz
Commit:590
Parents: 589
Message:Correcting company name on recent Mac's and leaving some reminders for later.
Changes:
M/branches/azimutz/Chazi/i386/libsaio/smbios_patcher.c

File differences

branches/azimutz/Chazi/i386/libsaio/smbios_patcher.c
5757
5858
5959
60
60
61
62
6163
6264
6365
......
8991
9092
9193
92
94
9395
9496
95
97
9698
9799
98100
99101
100
102
101103
102104
103105
......
112114
113115
114116
115
117
116118
117119
118120
119121
120122
121123
122
124
123125
124126
125
127
126128
127129
128130
129131
130
132
131133
132134
133135
......
137139
138140
139141
140
142
143
144
145
141146
142147
143148
......
251256
252257
253258
254
259
255260
256261
257262
{ "",""}
};
// defaults for a Mac mini
// defaults for a Mac mini
//Azi: this should be MacMini1,1, the only desktop model which used Core Solo.
// Also check issue 37.
static const SMStrEntryPair const sm_macmini_defaults[]={
{"SMbiosvendor","Apple Inc."},
{"SMbiosversion","MM21.88Z.009A.B00.0706281359"},
// defaults for a Mac Pro
static const SMStrEntryPair const sm_macpro_defaults[]={
{"SMbiosvendor","Apple Computer, Inc."},
{"SMbiosvendor","Apple Inc."},
{"SMbiosversion","MP31.88Z.006C.B05.0802291410"},
{"SMbiosdate","04/01/2008"},
{"SMmanufacter","Apple Computer, Inc."},
{"SMmanufacter","Apple Inc."},
{"SMproductname","MacPro3,1"},
{"SMsystemversion","1.0"},
{"SMserial","SOMESRLNMBR"},
{"SMfamily","MacPro"},
{"SMboardmanufacter","Apple Computer, Inc."},
{"SMboardmanufacter","Apple Inc."},
{"SMboardproduct","Mac-F4208DC8"},
{ "",""}
};
{"SMsystemversion","1.0"},
{"SMserial","SOMESRLNMBR"},
{"SMfamily","iMac"},
{"SMboardmanufacter","Apple Computer, Inc."},
{"SMboardmanufacter","Apple Inc."},
{"SMboardproduct","Mac-F2268DAE"},
{ "",""}
};
// defaults for a Mac Pro 4,1 core i7/Xeon
static const SMStrEntryPair const sm_macpro_core_defaults[]={
{"SMbiosvendor","Apple Computer, Inc."},
{"SMbiosvendor","Apple Inc."},
{"SMbiosversion","MP41.88Z.0081.B04.0903051113"},
{"SMbiosdate","11/06/2009"},
{"SMmanufacter","Apple Computer, Inc."},
{"SMmanufacter","Apple Inc."},
{"SMproductname","MacPro4,1"},
{"SMsystemversion","1.0"},
{"SMserial","SOMESRLNMBR"},
{"SMfamily","MacPro"},
{"SMboardmanufacter","Apple Computer, Inc."},
{"SMboardmanufacter","Apple Inc."},
{"SMboardproduct","Mac-F4208DC8"},
{ "",""}
};
inti;
const SMStrEntryPair*sm_defaults;
if (platformCPUFeature(CPU_FEATURE_MOBILE)) {
//Azi: reminder
// http://www.insanelymac.com/forum/index.php?s=&showtopic=225766&view=findpost&p=1557363
if (platformCPUFeature(CPU_FEATURE_MOBILE))
{
if (Platform.CPU.NoCores > 1) {
sm_defaults=sm_macbookpro_defaults;
} else {
case CPU_MODEL_NEHALEM_EX: // Intel Core i7 LGA1366 (45nm) 6 Core ???
{ // thanks to dgobe for i3/i5/i7 bus speed detection
int nhm_bus = 0x3F;
static long possible_nhm_bus[] = {0xFF, 0x7F, 0x3F};
static long possible_nhm_bus[] = {0xFF, 0x7F, 0x3F}; //Azi: static, dram_controllers
unsigned long did, vid;
int i;

Archive Download the corresponding diff file

Revision: 590