Chameleon

Chameleon Commit Details

Date:2015-10-29 19:09:18 (3 years 8 months ago)
Author:ErmaC
Commit:2783
Parents: 2782
Message:New nVidia and ATi cards IDs, general typo.
Changes:
M/trunk/i386/include/IOKit/graphics/IOFramebuffer.h
M/trunk/i386/include/IOKit/graphics/IOGraphicsTypes.h
M/trunk/i386/include/IOKit/graphics/IOGraphicsEngine.h
M/trunk/i386/libsaio/efi.h
M/trunk/i386/libsaio/bootstruct.c
M/trunk/i386/libsaio/nvidia.c
M/trunk/i386/libsaio/ati.c
M/trunk/i386/libsaio/stringTable.c
M/trunk/i386/libsaio/hfs.c
M/trunk/i386/include/IOKit/graphics/IODisplay.h
M/trunk/i386/libsaio/ati.h
M/trunk/i386/libsaio/state_generator.c
M/trunk/i386/libsaio/cpu.c
M/trunk/i386/include/IOKit/graphics/IOFramebufferShared.h
M/trunk/i386/libsaio/smbios_getters.c
M/trunk/i386/libsaio/platform.h
M/trunk/i386/libsaio/disk.c
M/trunk/i386/libsa/zalloc.c
M/trunk/i386/modules/Resolution/edid.c
M/trunk/i386/boot2/options.c
M/trunk/i386/include/IOKit/IONVRAM.h

File differences

trunk/i386/libsaio/bootstruct.c
150150
151151
152152
153
154
153
154
155155
156156
157157
......
214214
215215
216216
217
218
219
220
221
217222
218223
219224
void *addr;
int i;
EfiMemoryRange *memoryMap= NULL;
MemoryRange *range= NULL;
EfiMemoryRange*memoryMap= NULL;
MemoryRange*range= NULL;
int memoryMapCount = bootInfo->memoryMapCount;
if (memoryMapCount == 0)
}
DT__FlattenDeviceTree((void **)&addr, &size);
if (!size)
{
stop("Couldn't get flatten device tree\n");
return;
}
bootArgs->deviceTreeP = (uint32_t)addr;
bootArgs->deviceTreeLength = size;
trunk/i386/libsaio/efi.h
156156
157157
158158
159
160
161
159162
160163
161164
#define EFI_ACPI_20_TABLE_GUID \
{0x8868E871, 0xE4f1, 0x11D3, {0xBC, 0x22, 0x0, 0x80, 0xC7, 0x3C, 0x88, 0x81} }
// ACPI 3.0 Table GUID in EFI System Table
#define EFI_ACPI_30_TABLE_GUID EFI_ACPI_20_TABLE_GUID
typedef union {
EFI_GUID Guid;
EFI_UINT8 Raw[16];
trunk/i386/libsaio/hfs.c
255255
256256
257257
258
258259
259260
260261
{
verbose("HFS signature was not present.\n");
gCurrentIH = 0;
return -1;
}
trunk/i386/libsaio/nvidia.c
11731173
11741174
11751175
1176
11761177
11771178
11781179
......
13571358
13581359
13591360
1361
13601362
13611363
13621364
......
13731375
13741376
13751377
1376
1378
1379
13771380
13781381
13791382
// 1100 - 110F
// 1110 - 111F
// 1120 - 112F
{ 0x10DE1128,"GeForce GTX 970M" },
// 1130 - 113F
// 1140 - 114F
{ 0x10DE1140,"GeForce GT 610M" },
//{ 0x10DE1601,"Graphics Device" }, //
//{ 0x10DE1602,"Graphics Device" }, //
//{ 0x10DE1603,"Graphics Device" }, //
{ 0x10DE1617,"GeForce GTX 980M" }, //
//{ 0x10DE1630,"Graphics Device" }, //
//{ 0x10DE1631,"Graphics Device" }, //
//{ 0x10DE1780,"Graphics Device" }, //
//{ 0x10DE17BD,"Graphics Device" }, //
{ 0x10DE17BE,"GM107 CS1" }, // GM107
//{ 0x10DE17C1,"Graphics Device" }, //
//{ 0x10DE17C2,"Graphics Device" }, //
{ 0x10DE17C2,"GeForce GTX Titan X" }, //
{ 0x10DE17C8,"GeForce GTX 980 TI" },
//{ 0x10DE17EE,"Graphics Device" }, //
//{ 0x10DE17EF,"Graphics Device" }, //
{ 0x10DE17F0,"Quadro M6000" }
trunk/i386/libsaio/ati.c
107107
108108
109109
110
110
111
111112
112113
113114
......
11801181
11811182
11821183
1183
1184
11841185
11851186
1186
1187
1187
1188
11881189
11891190
11901191
11911192
11921193
1193
1194
11941195
11951196
11961197
......
12151216
12161217
12171218
1218
1219
12191220
12201221
12211222
......
12961297
12971298
12981299
1299
1300
1301
1300
1301
1302
13021303
13031304
13041305
......
13071308
13081309
13091310
1310
1311
1312
1313
1311
1312
1313
1314
13141315
13151316
13161317
......
13211322
13221323
13231324
1324
1325
1326
1327
1328
1325
1326
1327
1328
1329
1330
1331
13291332
13301333
13311334
/* AMD9000Controller */
{"Exmoor",4},
{"Basset",4},
{"Greyhound",6}
{"Greyhound",6},
{"Labrador",6}
};
static radeon_card_info_t radeon_cards[] = {
// TAHITI
//Framebuffers: Aji - 4 Desktop, Buri - 4 Mobile, Chutoro - 5 Mobile, Dashimaki - 4, IkuraS - HMDI
// Ebi - 5 Mobile, Gari - 5 M, Futomaki - 4 D, Hamachi - 4 D, OPM - 6 Server, Ikura - 6
{ 0x6780,0x00000000, CHIP_FAMILY_TAHITI,"AMD Radeon HD 7900 Series",kFutomaki},
{ 0x6780,0x00000000, CHIP_FAMILY_TAHITI,"AMD Radeon HD 7900 Series",kIkuraS},
{ 0x6784,0x00000000, CHIP_FAMILY_TAHITI,"AMD Radeon HD 7900 Series",kFutomaki},
{ 0x6788,0x00000000, CHIP_FAMILY_TAHITI,"AMD Radeon HD 7900 Series",kFutomaki},
{ 0x678A,0x00000000, CHIP_FAMILY_TAHITI,"AMD Radeon HD 7900 Series",kFutomaki},
{ 0x6790,0x00000000, CHIP_FAMILY_TAHITI,"AMD Radeon HD 7900 Series",kFutomaki},
{ 0x678A,0x00000000, CHIP_FAMILY_TAHITI,"AMD FirePro W8000",kFutomaki},
{ 0x6790,0x00000000, CHIP_FAMILY_TAHITI,"AMD Radeon HD 7970",kFutomaki},
{ 0x6791,0x00000000, CHIP_FAMILY_TAHITI,"AMD Radeon HD 7900 Series",kFutomaki},
{ 0x6792,0x00000000, CHIP_FAMILY_TAHITI,"AMD Radeon HD 7900 Series",kFutomaki},
{ 0x6798,0x00000000, CHIP_FAMILY_TAHITI,"AMD Radeon HD 7970X/8970/R9 280X",kFutomaki},
{ 0x6799,0x00000000, CHIP_FAMILY_TAHITI,"AMD Radeon HD 7990 Series",kAji},
{ 0x679A,0x00000000, CHIP_FAMILY_TAHITI,"AMD Radeon HD 7950/8950/R9 280",kFutomaki},
{ 0x679B,0x00000000, CHIP_FAMILY_TAHITI,"AMD Radeon HD 7990 Series",kFutomaki},
{ 0x679B,0x00000000, CHIP_FAMILY_TAHITI,"AMD Radeon HD 7990 Series",kChutoro},
{ 0x679E,0x00000000, CHIP_FAMILY_TAHITI,"AMD Radeon HD 7870 XT",kFutomaki},
{ 0x679F,0x00000000, CHIP_FAMILY_TAHITI,"AMD Radeon HD 7950 Series",kFutomaki},
{ 0x6806,0x00000000, CHIP_FAMILY_PITCAIRN,"AMD Radeon HD 7600 Series",kFutomaki},
{ 0x6808,0x00000000, CHIP_FAMILY_PITCAIRN,"AMD Radeon HD 7600 Series",kFutomaki},
{ 0x6809,0x00000000, CHIP_FAMILY_PITCAIRN,"ATI FirePro V",kNull},
{ 0x6810,0x00000000, CHIP_FAMILY_PITCAIRN,"AMD Radeon R9 270X",kFutomaki},
{ 0x6810,0x00000000, CHIP_FAMILY_PITCAIRN,"AMD Radeon R9 270X",kNamako},
{ 0x6811,0x00000000, CHIP_FAMILY_PITCAIRN,"AMD Radeon R9 270",kFutomaki},
//{ 0x6816,0x00000000, CHIP_FAMILY_PITCAIRN,"AMD Radeon",kFutomaki},
//{ 0x6817,0x00000000, CHIP_FAMILY_PITCAIRN,"AMD Radeon",kFutomaki},
{ 0x68BF,0x00000000, CHIP_FAMILY_JUNIPER,"ATI Radeon HD 6750 Series",kHoolock},
// REDWOOD
{ 0x68C0,0x00000000, CHIP_FAMILY_REDWOOD,"ATI Radeon HD 5730 Series",kBaboon}, // Mobile
{ 0x68C1,0x00000000, CHIP_FAMILY_REDWOOD,"ATI Radeon HD 5650 Series",kBaboon}, // Mobile
{ 0x68C7,0x00000000, CHIP_FAMILY_REDWOOD,"ATI Mobility Radeon HD 5570",kEulemur}, // Mobile
{ 0x68C0,0x00000000, CHIP_FAMILY_REDWOOD,"ATI Radeon HD 5730 Series",kGalago}, // Mobile
{ 0x68C1,0x00000000, CHIP_FAMILY_REDWOOD,"ATI Radeon HD 5650 Series",kGalago}, // Mobile
{ 0x68C7,0x00000000, CHIP_FAMILY_REDWOOD,"ATI Mobility Radeon HD 5570",kGalago}, // Mobile
{ 0x68C8,0x00000000, CHIP_FAMILY_REDWOOD,"ATI FirePro v4800", kBaboon},
{ 0x68C9,0x00000000, CHIP_FAMILY_REDWOOD,"FirePro 3D V3800",kBaboon},
{ 0x68D8,0x00000000, CHIP_FAMILY_REDWOOD,"ATI Radeon HD 5670 Series",kBaboon},
{ 0x68DE,0x00000000, CHIP_FAMILY_REDWOOD,"ATI Radeon HD 5000 Series",kNull},
// CEDAR
{ 0x68E0,0x00000000, CHIP_FAMILY_CEDAR,"ATI Radeon HD 5470 Series",kEulemur},
{ 0x68E1,0x00000000, CHIP_FAMILY_CEDAR,"AMD Radeon HD 6230",kEulemur},
{ 0x68E4,0x00000000, CHIP_FAMILY_CEDAR,"ATI Radeon HD 6370M Series",kEulemur},
{ 0x68E5,0x00000000, CHIP_FAMILY_CEDAR,"ATI Radeon HD 6300M Series",kEulemur},
{ 0x68E0,0x00000000, CHIP_FAMILY_CEDAR,"ATI Radeon HD 5470 Series",kGalago},
{ 0x68E1,0x00000000, CHIP_FAMILY_CEDAR,"AMD Radeon HD 6230",kGalago},
{ 0x68E4,0x00000000, CHIP_FAMILY_CEDAR,"ATI Radeon HD 6370M Series",kGalago},
{ 0x68E5,0x00000000, CHIP_FAMILY_CEDAR,"ATI Radeon HD 6300M Series",kGalago},
//{ 0x68E8,0x00000000, CHIP_FAMILY_CEDAR,"ATI Radeon HD ??? Series",kNull},
//{ 0x68E9,0x00000000, CHIP_FAMILY_CEDAR,"ATI Radeon HD ??? Series",kNull},
{ 0x68F1,0x00000000, CHIP_FAMILY_CEDAR,"AMD FirePro 2460",kEulemur},
//{ 0x68FE,0x00000000, CHIP_FAMILY_CEDAR,"ATI Radeon HD ??? Series",kNull},
//
{ 0x6900,0x00000000, CHIP_FAMILY_TOPAS,"ATI Radeon R7 M260/M265", kBuri},
{ 0x6901,0x00000000, CHIP_FAMILY_TOPAS,"ATI Radeon R5 M255", kBuri},
{ 0x6921,0x00000000, CHIP_FAMILY_AMETHYST,"ATI Radeon R9 M295X", kBuri},
{ 0x6938,0x00000000, CHIP_FAMILY_AMETHYST,"ATI Radeon R9 M295X", kBuri},
{ 0x6939,0x00000000, CHIP_FAMILY_TONGA,"ATI Radeon R9 285", kFutomaki},
{ 0x6900,0x00000000, CHIP_FAMILY_TOPAS,"ATI Radeon R7 M260/M265", kExmoor},
{ 0x6901,0x00000000, CHIP_FAMILY_TOPAS,"ATI Radeon R5 M255", kExmoor},
{ 0x6920,0x00000000, CHIP_FAMILY_AMETHYST,"ATI Radeon R9 M395X", kLabrador},
{ 0x6921,0x00000000, CHIP_FAMILY_AMETHYST,"ATI Radeon R9 M295X", kExmoor},
{ 0x692B,0x00000000, CHIP_FAMILY_TONGA,"ATI Firepro W7100", kBaladi},
{ 0x6938,0x00000000, CHIP_FAMILY_AMETHYST,"ATI Radeon R9 M295X", kExmoor},
{ 0x6939,0x00000000, CHIP_FAMILY_TONGA,"ATI Radeon R9 285", kBaladi},
// R520
{ 0x7100, 0x00000000, CHIP_FAMILY_R520, "ATI Radeon HD Desktop ",kNull},
trunk/i386/libsaio/ati.h
196196
197197
198198
199
199200
200201
201202
kExmoor,
kBasset,
kGreyhound,
kLabrador,
kCfgEnd
} config_name_t;
trunk/i386/libsaio/cpu.c
530530
531531
532532
533
534
535
536
537
538
539
540
533541
534542
535543
p->CPU.NoCores= 4;
p->CPU.NoThreads= 4;
}
//workaround for Xeon Harpertown
if ( strstr(p->CPU.BrandString, "E5405") )
{
p->CPU.NoCores= 4;
p->CPU.NoThreads= 4;
}
}
break;
trunk/i386/libsaio/platform.h
3838
3939
4040
41
42
41
4342
4443
4544
4645
4746
48
49
50
47
48
49
5150
52
51
5352
5453
5554
56
57
58
55
56
57
5958
60
59
6160
62
61
6362
6463
65
64
6665
67
66
6867
69
70
71
72
73
74
75
68
69
70
71
72
73
74
75
76
77
78
79
80
7681
7782
7883
......
247252
248253
249254
255
256
257
258
259
260
261
262
263
250264
251265
252266
......
257271
258272
259273
274
275
276
277
260278
261279
262280
......
271289
272290
273291
274
275
292
276293
277294
278295
......
282299
283300
284301
285
302
286303
287304
288305
289306
290307
291308
309
310
311
312
313
314
315
316
317
318
319
292320
293
294
295
321
322
323
296324
297325
298326
#define CPUID_MODEL_DOTHAN0x0D// Dothan Pentium M, Celeron M (90nm)
#define CPUID_MODEL_YONAH0x0E// Sossaman, Yonah
#define CPUID_MODEL_MEROM0x0F// Allendale, Conroe, Kentsfield, Woodcrest, Clovertown, Tigerton, Merom
#define CPUID_MODEL_CONROE0x0F//
#define CPUID_MODEL_CELERON0x16// Merom, Conroe (65nm), Celeron (45nm)
#define CPUID_MODEL_CONROE0x16// Merom, Conroe (65nm), Celeron (45nm)
#define CPUID_MODEL_PENRYN0x17// Wolfdale, Yorkfield, Harpertown, Penryn
#define CPUID_MODEL_WOLFDALE0x17// Xeon 31xx, 33xx, 52xx, 54xx, Core 2 Quad 8xxx and 9xxx
#define CPUID_MODEL_NEHALEM0x1A// Bloomfield. Nehalem-EP, Nehalem-WS, Gainestown
#define CPUID_MODEL_ATOM0x1C// Pineview, Bonnell
#define CPUID_MODEL_XEON_MP0x1D// MP 7400
#define CPUID_MODEL_FIELDS0x1E// Lynnfield, Clarksfield, Jasper Forest
#define CPUID_MODEL_CLARKDALE0x1F// Havendale, Auburndale
#define CPUID_MODEL_DALES0x25// Clarkdale, Arrandale
#define CPUID_MODEL_FIELDS0x1E// Core i7 and i5 Processor - Clarksfield, Lynnfield, Jasper Forest
#define CPUID_MODEL_CLARKDALE0x1F// Core i7 and i5 Processor - Nehalem (Havendale, Auburndale)
#define CPUID_MODEL_DALES0x25// Westmere Client - Clarkdale, Arrandale
#define CPUID_MODEL_ATOM_SAN0x26// Lincroft
#define CPUID_MODEL_LINCROFT0x27// Bonnell
#define CPUID_MODEL_LINCROFT0x27// Bonnell, penwell
#define CPUID_MODEL_SANDYBRIDGE0x2A// Sandy Bridge
#define CPUID_MODEL_WESTMERE0x2C// Gulftown, Westmere-EP, Westmere-WS
#define CPUID_MODEL_JAKETOWN0x2D// Sandy Bridge-E, Sandy Bridge-EP
#define CPUID_MODEL_NEHALEM_EX0x2E// Beckton
#define CPUID_MODEL_WESTMERE_EX0x2F// Westmere-EX
//#define CPUID_MODEL_BONNELL_ATOM0x35// Atom Family Bonnell
#define CPUID_MODEL_NEHALEM_EX0x2E// Nehalem-EX Xeon - Beckton
#define CPUID_MODEL_WESTMERE_EX0x2F// Westmere-EX Xeon - Eagleton
#define CPUID_MODEL_CLOVERVIEW0x35// Atom Family Bonnell, cloverview
#define CPUID_MODEL_ATOM_20000x36// Cedarview / Saltwell
#define CPUID_MODEL_ATOM_37000x37// Atom E3000, Z3000 Atom Silvermont
#define CPUID_MODEL_ATOM_37000x37// Atom E3000, Z3000 Atom Silvermont **BYT
#define CPUID_MODEL_IVYBRIDGE0x3A// Ivy Bridge
#define CPUID_MODEL_HASWELL0x3C// Haswell DT
#define CPUID_MODEL_HASWELL0x3C// Haswell DT ex.i7 4790K
#define CPUID_MODEL_HASWELL_U50x3D// Haswell U5 5th generation Broadwell, Core M / Core-AVX2
#define CPUID_MODEL_IVYBRIDGE_XEON0x3E// Ivy Bridge Xeon
#define CPUID_MODEL_HASWELL_SVR0x3F// Haswell Server, Xeon E5-2600/1600 v3 (Haswell-E)
#define CPUID_MODEL_HASWELL_SVR0x3F// Haswell Server, Xeon E5-2600/1600 v3 (Haswell-E) **HSX
//#define CPUID_MODEL_HASWELL_H0x??// Haswell H
#define CPUID_MODEL_HASWELL_ULT0x45// Haswell ULT, 4th gen Core, Xeon E3-12xx v3
#define CPUID_MODEL_HASWELL_ULT0x45// Haswell ULT, 4th gen Core, Xeon E3-12xx v3 C8/C9/C10
#define CPUID_MODEL_HASWELL_ULX0x46// Crystal Well, 4th gen Core, Xeon E3-12xx v3
//#define CPUID_MODEL_0x4A// Future Atom E3000, Z3000 silvermont / atom
#define CPUID_MODEL_AVOTON0x4D// Silvermont/Avoton Atom C2000
//#define CPUID_MODEL_0x4E// Future Core
#define CPUID_MODEL_BRODWELL_SVR0x4F// Broadwell Server
#define CPUID_MODEL_BRODWELL_MSVR0x56// Broadwell Micro Server, Future Xeon
//#define CPUID_MODEL_0x5A// Silvermont, Future Atom E3000, Z3000
//#define CPUID_MODEL_0x5D// Silvermont, Future Atom E3000, Z3000
#define CPUID_MODEL_BROADWELL_HQ0x47// Broadwell BDW
#define CPUID_MODEL_MERRIFIELD0x4A// Future Atom E3000, Z3000 silvermont / atom (Marrifield)
#define CPUID_MODEL_BRASWELL0x4C// Atom (Braswell)
#define CPUID_MODEL_AVOTON0x4D// Silvermont/Avoton Atom C2000 **AVN
#define CPUID_MODEL_SKYLAKE0x4E// Future Core **SKL
#define CPUID_MODEL_BRODWELL_SVR0x4F// Broadwell Server **BDX
#define CPUID_MODEL_BRODWELL_MSVR0x56// Broadwell Micro Server, Future Xeon **BDX-DE
//#define CPUID_MODEL_KNIGHT0x57
#define CPUID_MODEL_ANNIDALE0x5A// Silvermont, Future Atom E3000, Z3000 (Annidale)
//#define CPUID_MODEL_GOLDMONT0x5C
#define CPUID_MODEL_VALLEYVIEW0x5D// Silvermont, Future Atom E3000, Z3000
#define CPUID_MODEL_SKYLAKE_S0x5E// Skylake **SKL
//#define CPUID_MODEL_CANNONLAKE0x66
/* CPUID Vendor */
#defineCPUID_VID_INTEL"GenuineIntel"
#define IA32_PLATFORM_DCA_CAP0x01F8
#define MSR_POWER_CTL0x01FC// MSR 000001FC 0000-0000-0004-005F
// Nehalem (NHM) adds support for additional MSRs
#define MSR_SMI_COUNT 0x034
#define MSR_NHM_PLATFORM_INFO 0x0ce
#define MSR_NHM_SNB_PKG_CST_CFG_CTL 0x0e2
#define MSR_PKG_C3_RESIDENCY 0x3f8
#define MSR_PKG_C6_RESIDENCY 0x3f9
#define MSR_CORE_C3_RESIDENCY 0x3fc
#define MSR_CORE_C6_RESIDENCY 0x3fd
// Sandy Bridge & JakeTown specific 'Running Average Power Limit' MSR's.
#define MSR_RAPL_POWER_UNIT0x606// R/O
//MSR 00000606 0000-0000-000A-1003
//Valid + 010=1024ns + 0x54=84mks
#define MSR_PKGC7_IRTL0x60C// RW time limit to go C7
//MSR 0000060C 0000-0000-0000-8854
// Sandy Bridge (SNB) adds support for additional MSRs
#define MSR_PKG_C7_RESIDENCY0x3FA
#define MSR_CORE_C7_RESIDENCY0x3FE
#define MSR_PKG_C2_RESIDENCY0x60D// same as TSC but in C2 only
#define MSR_PKG_RAPL_POWER_LIMIT0x610//MSR 00000610 0000-A580-0000-8960
// Sandy Bridge Uncore (IGPU) domain MSR's (Not on JakeTown).
#define MSR_PP1_POWER_LIMIT0x640
#define MSR_PP1_ENERGY_STATUS 0x641
//MSR 00000641 0000-0000-0000-0000
#define MSR_PP1_ENERGY_STATUS0x641
#define MSR_PP1_POLICY0x642
// JakeTown only Memory MSR's.
#define MSR_DRAM_PERF_STATUS0x61B
#define MSR_DRAM_POWER_INFO0x61C
//IVY_BRIDGE
// Ivy Bridge
#define MSR_CONFIG_TDP_NOMINAL0x648
#define MSR_CONFIG_TDP_LEVEL10x649
#define MSR_CONFIG_TDP_LEVEL20x64A
#define MSR_CONFIG_TDP_CONTROL0x64B// write once to lock
#define MSR_TURBO_ACTIVATION_RATIO0x64C
// Haswell (HSW) adds support for additional MSRs
#define MSR_PKG_C8_RESIDENCY 0x630
#define MSR_PKG_C9_RESIDENCY 0x631
#define MSR_PKG_C10_RESIDENCY 0x632
// Skylake (SKL) adds support for additional MSRs
#define MSR_PKG_WEIGHTED_CORE_C0_RES 0x658
#define MSR_PKG_ANY_CORE_C0_RES 0x659
#define MSR_PKG_ANY_GFXE_C0_RES 0x65A
#define MSR_PKG_BOTH_CORE_GFXE_C0_RES 0x65B
/* AMD Defined MSRs */
#define MSR_K6_EFER0xC0000080
#define MSR_K6_STAR0xC0000081
#define MSR_K6_WHCR0xC0000082
#define MSR_K6_EFER0xC0000080// extended feature register
#define MSR_K6_STAR0xC0000081// legacy mode SYSCALL target
#define MSR_K6_WHCR0xC0000082// long mode SYSCALL target
#define MSR_K6_UWCCR0xC0000085
#define MSR_K6_EPMR0xC0000086
#define MSR_K6_PSOR0xC0000087
trunk/i386/libsaio/disk.c
16971697
16981698
16991699
1700
1700
17011701
17021702
17031703
//==============================================================================
static bool getOSVersion(BVRef bvr, char *str)
{
bool valid = false;
bool valid = false;
config_file_t systemVersion;
char dirSpec[512];
trunk/i386/libsaio/stringTable.c
660660
661661
662662
663
664
663
664
665665
666
666
667667
668668
669669
{
char *dirspec[] = {
"/com.apple.recovery.boot/com.apple.Boot.plist",// OS X Recovery
"/OS X Install Data/com.apple.Boot.plist",// OS X Installer (10.8+)
"/Mac OS X Install Data/com.apple.Boot.plist",// OS X Installer (Lion 10.7)
"/OS X Install Data/com.apple.Boot.plist",// OS X Upgrade (10.8+)
"/Mac OS X Install Data/com.apple.Boot.plist",// OS X Upgrade (Lion 10.7)
//"/.IABootFiles/com.apple.Boot.plist",// OS X Installer
"/Library/Preferences/SystemConfiguration/com.apple.Boot.plist"// com.apple.Boot.plist
"/Library/Preferences/SystemConfiguration/com.apple.Boot.plist"// (Installed System or Installer)
};
int i, fd, count, ret=-1;
trunk/i386/libsaio/state_generator.c
298298
299299
300300
301
302
301303
302304
303305
case CPUID_MODEL_HASWELL_SVR://
case CPUID_MODEL_HASWELL_ULT://
case CPUID_MODEL_HASWELL_ULX://
case CPUID_MODEL_BROADWELL_HQ:
case CPUID_MODEL_SKYLAKE_S:
case CPUID_MODEL_ATOM_3700:
{
trunk/i386/libsaio/smbios_getters.c
208208
209209
210210
211
211
212212
213213
214214
......
384384
385385
386386
387
387388
388389
389390
......
428429
429430
430431
432
431433
432434
433435
return true;
case CPUID_MODEL_PRESLER:
case CPUID_MODEL_CELERON:
case CPUID_MODEL_CONROE:
case CPUID_MODEL_YONAH:// 0x0E - Intel Mobile Core Solo, Duo
value->word = 0x201;// 513
return true;
return true;
case CPUID_MODEL_HASWELL_U5:// 0x3D -
case CPUID_MODEL_SKYLAKE_S:// 0x5E
if (strstr(Platform.CPU.BrandString, CORE_M))
{
case CPUID_MODEL_HASWELL_SVR:// 0x3F -
case CPUID_MODEL_HASWELL_ULT:// 0x45 -
case CPUID_MODEL_HASWELL_ULX:// 0x46 -
case CPUID_MODEL_BROADWELL_HQ:// 0x47
if (strstr(Platform.CPU.BrandString, XEON))
{
trunk/i386/include/IOKit/graphics/IOFramebuffer.h
130130
131131
132132
133
134
135
136
137
133138
134139
140
141
142
143
144
145
135146
136147
137148
......
142153
143154
144155
156
145157
146158
147159
......
156168
157169
158170
171
159172
160173
161174
......
217230
218231
219232
220
233
234
221235
222236
223237
......
811825
812826
813827
828
829
830
831
832
814833
815834
816835
kIOFBNotifyDisplayDimsChange = 50,
kIOFBNotifyProbed = 60,
kIOFBNotifyVRAMReady = 70,
kIOFBNotifyWillNotify = 80,
kIOFBNotifyDidNotify = 81,
};
struct IOFramebufferNotificationNotify
{
IOIndex event;
void * info;
};
enum {
kFBDisplayUsablePowerState = 0x80000000,
kFBDisplayPowerStateMask = 0x0000ffff
struct StdFBShmem_t;
class IOFramebufferUserClient;
class IODisplay;
/*! @class IOFramebuffer : public IOGraphicsDevice
@abstract The base class for graphics devices to be made available as part of the desktop.
{
friend class IOFramebufferUserClient;
friend class IOFramebufferSharedUserClient;
friend class IOFramebufferParameterHandler;
friend class IODisplay;
OSDeclareDefaultStructors(IOFramebuffer)
unsigned int captured:1;
unsigned int sleepConnectCheck:1;
unsigned int messaged:1;
unsigned int _IOFramebuffer_reservedC:28;
unsigned int cursorEnable:1;
unsigned int _IOFramebuffer_reservedC:27;
IOFramebuffer * nextDependent;
OSSet * fbNotifications;
virtual IOReturn getNotificationSemaphore( IOSelect interruptType,
semaphore_t * semaphore );
IOReturn setBackingFramebuffer(const IOPixelInformation * info,
uint32_t bufferCount,
void * mappedAddress[]);
IOReturn switchBackingFramebuffer(uint32_t bufferIndex);
/* non WL clients apis
*/
IOReturn setAttributeExt( IOSelect attribute, uintptr_t value );
trunk/i386/include/IOKit/graphics/IODisplay.h
3535
3636
3737
38
39
40
3841
3942
4043
......
4548
4649
4750
51
4852
53
54
55
56
57
4958
5059
5160
......
6675
6776
6877
78
79
80
81
6982
7083
7184
7285
86
87
88
89
90
91
92
93
94
95
7396
7497
7598
......
93116
94117
95118
96
97
98
119
99120
100121
101
102
122
103123
104124
105125
......
126146
127147
128148
129
149
130150
131151
132152
......
180200
181201
182202
203
183204
184205
185206
......
207228
208229
209230
231
210232
211233
212234
extern const OSSymbol * gIODisplayContrastKey;
extern const OSSymbol * gIODisplayBrightnessKey;
extern const OSSymbol * gIODisplayLinearBrightnessKey;
extern const OSSymbol * gIODisplayUsableLinearBrightnessKey;
extern const OSSymbol * gIODisplayBrightnessFadeKey;
extern const OSSymbol * gIODisplayHorizontalPositionKey;
extern const OSSymbol * gIODisplayHorizontalSizeKey;
extern const OSSymbol * gIODisplayVerticalPositionKey;
extern const OSSymbol * gIODisplayRotationKey;
extern const OSSymbol * gIODisplayOverscanKey;
extern const OSSymbol * gIODisplayVideoBestKey;
extern const OSSymbol * gIODisplaySelectedColorModeKey;
extern const OSSymbol * gIODisplayRedGammaScaleKey;
extern const OSSymbol * gIODisplayGreenGammaScaleKey;
extern const OSSymbol * gIODisplayBlueGammaScaleKey;
extern const OSSymbol * gIODisplayGammaScaleKey;
extern const OSSymbol * gIODisplayParametersTheatreModeKey;
extern const OSSymbol * gIODisplayParametersTheatreModeWindowKey;
extern const OSSymbol * gIODisplayPowerModeKey;
extern const OSSymbol * gIODisplayManufacturerSpecificKey;
extern const OSSymbol * gIODisplayPowerStateKey;
extern const OSSymbol * gIODisplayControllerIDKey;
extern const OSSymbol * gIODisplayCapabilityStringKey;
extern const OSSymbol * gIODisplayParametersCommitKey;
extern const OSSymbol * gIODisplayParametersDefaultKey;
extern const OSSymbol * gIODisplayParametersFlushKey;
extern const OSSymbol * gIODisplayFadeTime1Key;
extern const OSSymbol * gIODisplayFadeTime2Key;
extern const OSSymbol * gIODisplayFadeTime3Key;
extern const OSSymbol * gIODisplayFadeStyleKey;
extern UInt32 gIODisplayFadeTime1;
extern UInt32 gIODisplayFadeTime2;
extern UInt32 gIODisplayFadeTime3;
extern UInt32 gIODisplayFadeStyle;
enum {
kIODisplayNumPowerStates = 4,
kIODisplayMaxPowerState = kIODisplayNumPowerStates - 1
IOIndex connection;
protected:
/*! @struct ExpansionData
@discussion This structure will be used to expand the capablilties of this class in the future.
*/
/* Reserved for future use. (Internal use only) */
struct ExpansionData { };
/*! @var reserved
Reserved for future use. (Internal use only) */
/* Reserved for future use. (Internal use only) */
ExpansionData * reserved;
public:
IONotifier * fNotifier;
// pointer to protected instance variables for power management
struct DisplayPMVars * fDisplayPMVars;
struct IODisplayPMVars * fDisplayPMVars;
// reserved for future expansion
void * _IODisplay_reserved[32];
virtual void initPowerManagement( IOService * provider);
virtual void dropOneLevel( void );
virtual void makeDisplayUsable( void );
void setDisplayPowerState(unsigned long state);
private:
OSMetaClassDeclareReservedUnused(IODisplay, 0);
static IOReturn _framebufferEvent( OSObject * self, void * ref,
IOFramebuffer *framebuffer, IOIndex event, void * info );
void searchParameterHandlers(IORegistryEntry * entry);
bool addParameterHandler( IODisplayParameterHandler * parameterHandler );
bool removeParameterHandler( IODisplayParameterHandler * parameterHandler );
static bool updateNumber( OSDictionary * params, const OSSymbol * key, SInt32 value );
trunk/i386/include/IOKit/graphics/IOGraphicsTypes.h
3131
3232
3333
34
34
3535
3636
3737
......
138138
139139
140140
141
142
141143
142144
143145
......
147149
148150
149151
150
152
153
154
151155
152156
153157
......
169173
170174
171175
172
176
177
178
179
180
173181
174182
175183
......
253261
254262
255263
264
256265
257266
258267
259
268
269
270
260271
261272
262273
263274
264275
265
276
277
266278
267279
268280
......
696708
697709
698710
711
712
699713
714
715
700716
701717
702718
......
710726
711727
712728
729
730
731
713732
714733
715734
......
750769
751770
752771
772
753773
754774
755775
756
776
757777
758778
759779
......
817837
818838
819839
840
841
842
843
844
845
820846
821847
822848
......
9851011
9861012
9871013
988
1014
1015
1016
9891017
9901018
9911019
......
10141042
10151043
10161044
1045
10171046
10181047
10191048
......
10701099
10711100
10721101
1102
10731103
10741104
10751105
10761106
10771107
1108
1109
10781110
10791111
10801112
10811113
10821114
1115
1116
10831117
10841118
10851119
......
10911125
10921126
10931127
1128
1129
10941130
10951131
10961132
......
11011137
11021138
11031139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
11041197
11051198
11061199
......
11101203
11111204
11121205
1206
11131207
11141208
11151209
11161210
1211
11171212
11181213
11191214
......
12171312
12181313
12191314
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
12341332
12351333
12361334
......
12441342
12451343
12461344
1345
12471346
1347
1348
1349
12481350
12491351
12501352
1353
12511354
12521355
12531356
extern "C" {
#endif
#define IOGRAPHICSTYPES_REV 24
#define IOGRAPHICSTYPES_REV 42
typedef SInt32 IOIndex;
typedef UInt32 IOSelect;
* kDisplayModeSimulscanFlag mode is available on multiple display connections. <br>
* kDisplayModeNotPresetFlag mode is not a factory preset for the display (geometry may need correction). <br>
* kDisplayModeStretchedFlag mode is stretched/distorted to match the display aspect ratio. <br>
* @field imageWidth Physical width of active image if known, in millimeters, otherwise zero. <br>
* @field imageHeight Physical height of active image if known, in millimeters, otherwise zero. <br>
* @field reserved Set to zero.
*/
IOFixed1616 refreshRate;
IOIndex maxDepthIndex;
UInt32 flags;
UInt32 reserved[ 4 ];
UInt16imageWidth;
UInt16imageHeight;
UInt32 reserved[ 3 ];
};
typedef struct IODisplayModeInformation IODisplayModeInformation;
kDisplayModeNotGraphicsQualityFlag = 0x00001000,
kDisplayModeValidateAgainstDisplay = 0x00002000,
kDisplayModeTelevisionFlag = 0x00100000,
kDisplayModeValidForMirroringFlag = 0x00200000
kDisplayModeValidForMirroringFlag = 0x00200000,
kDisplayModeAcceleratorBackedFlag = 0x00400000,
kDisplayModeValidForHiResFlag = 0x00800000,
kDisplayModeValidForAirPlayFlag = 0x01000000,
kDisplayModeNativeFlag = 0x02000000
};
enum {
kDisplayModeValidFlag = 0x00000001,
kIOCursorControlAttribute = 'crsc',
kIOSystemPowerAttribute = 'spwr',
kIOWindowServerActiveAttribute = 'wsrv',
kIOVRAMSaveAttribute = 'vrsv',
kIODeferCLUTSetAttribute = 'vclt',
kIOClamshellStateAttribute = 'clam'
kIOClamshellStateAttribute = 'clam',
kIOFBDisplayPortTrainingAttribute = 'dpta',
};
// values for kIOMirrorAttribute
enum {
kIOMirrorIsPrimary = 0x80000000,
kIOMirrorHWClipped = 0x40000000
kIOMirrorHWClipped = 0x40000000,
kIOMirrorIsMirrored = 0x20000000
};
// values for kIOMirrorDefaultAttribute
kConnectionRedGammaScale = 'rgsc',
kConnectionGreenGammaScale = 'ggsc',
kConnectionBlueGammaScale = 'bgsc',
kConnectionGammaScale = 'gsc ',
kConnectionFlushParameters = 'flus',
kConnectionVBLMultiplier = 'vblm',
kConnectionHandleDisplayPortEvent = 'dpir',
kConnectionPanelTimingDisable = 'pnlt',
kConnectionControllerDitherControl = '\0gdc',
kConnectionDisplayFlags = 'dflg',
kConnectionEnableAudio = 'aud ',
kConnectionAudioStreaming = 'auds',
};
// kConnectionFlags values
#define kIODisplaySupportsBasicAudioKey "IODisplaySupportsBasicAudio"
#define kIODisplaySupportsYCbCr444Key "IODisplaySupportsYCbCr444"
#define kIODisplaySupportsYCbCr422Key "IODisplaySupportsYCbCr422"
#define kIODisplaySelectedColorModeKey "cmod"
enum
{
kIODisplayColorMode = kConnectionColorMode,
kIODisplayColorMode = kConnectionColorMode,
};
#if 0
kIODisplayNeedsCEAUnderscan = 0x00000001,
};
enum
{
kIODisplayPowerStateOff =0,
kIODisplayPowerStateMinUsable =1,
kIODisplayPowerStateOn = 2,
};
#define IO_DISPLAY_CAN_FILL 0x00000040
#define IO_DISPLAY_CAN_BLIT 0x00000020
// DisplayPort link event
kIOFBDisplayPortLinkChangeInterruptType = 'dplk',
// MCCS
kIOFBMCCSInterruptType = 'mccs'
kIOFBMCCSInterruptType = 'mccs',
// early vram notification
kIOFBWakeInterruptType = 'vwak'
};
// IOAppleTimingID's
kIOTimingIDVESA_1024x768_75hz = 204, /* 1024x768 (75 Hz) VESA 1K-75Hz timing (very similar to kIOTimingIDApple_1024x768_75hz). */
kIOTimingIDVESA_1024x768_85hz = 208, /* 1024x768 (85 Hz) VESA timing. */
kIOTimingIDApple_1024x768_75hz = 210, /* 1024x768 (75 Hz) Apple 19" RGB. */
kIOTimingIDVESA_1152x864_75hz = 215, /* 1152x864 (75 Hz) VESA timing. */
kIOTimingIDApple_1152x870_75hz = 220, /* 1152x870 (75 Hz) Apple 21" RGB. */
kIOTimingIDAppleNTSC_ST = 230, /* 512x384 (60 Hz, interlaced, non-convolved). */
kIOTimingIDAppleNTSC_FF = 232, /* 640x480 (60 Hz, interlaced, non-convolved). */
#define kIOFBTimingRangeKey "IOFBTimingRange"
#define kIOFBScalerInfoKey "IOFBScalerInfo"
#define kIOFBCursorInfoKey "IOFBCursorInfo"
#define kIOFBHDMIDongleROMKey "IOFBHDMIDongleROM"
#define kIOFBHostAccessFlagsKey "IOFBHostAccessFlags"
#define kIOFBMemorySizeKey "IOFBMemorySize"
#define kIOFBNeedsRefreshKey "IOFBNeedsRefresh"
#define kIOFBProbeOptionsKey "IOFBProbeOptions"
#define kIOFBGammaWidthKey "IOFBGammaWidth"
#define kIOFBGammaCountKey "IOFBGammaCount"
#define kIOFBCLUTDeferKey "IOFBCLUTDefer"
#define kIOFBDisplayPortConfigurationDataKey "dpcd-registers"
// exists on the hibernate progress display device
#ifndef kIOHibernatePreviewActiveKey
};
#endif
#define kIOHibernateEFIGfxStatusKey "IOHibernateEFIGfxStatus"
// CFNumber/CFData
#define kIOFBAVSignalTypeKey "av-signal-type"
enum {
kIOFBAVSignalTypeDP = 0x00000010,
};
// kIOFBDisplayPortTrainingAttribute data
struct IOFBDPLinkConfig
{
uint16_t version; // 8 bit high (major); 8 bit low (minor)
uint8_t bitRate; // same encoding as the spec
uint8_t __reservedA[1]; // reserved set to zero
uint16_t t1Time; // minimum duration of the t1 pattern (microseconds)
uint16_t t2Time; // minimum duration of the t2 pattern
uint16_t t3Time; // minimum duration of the t3 pattern
uint8_t idlePatterns; // minimum number of idle patterns
uint8_t laneCount; // number of lanes in the link
uint8_t voltage;
uint8_t preEmphasis;
uint8_t downspread;
uint8_t scrambler;
uint8_t maxBitRate; // same encoding as the bitRate field
uint8_t maxLaneCount; // an integer
uint8_t maxDownspread; // 0 = Off. 1 = 0.5
uint8_t __reservedB[9];// reserved set to zero - fix align and provide 8 bytes of padding.
};
typedef struct IOFBDPLinkConfig IOFBDPLinkConfig;
enum
{
kIOFBBitRateRBR= 0x06,// 1.62 Gbps per lane
kIOFBBitRateHBR= 0x0A,// 2.70 Gbps per lane
kIOFBBitRateHBR2= 0x14,// 5.40 Gbps per lane
};
enum {
kIOFBLinkVoltageLevel0= 0x00,
kIOFBLinkVoltageLevel1= 0x01,
kIOFBLinkVoltageLevel2= 0x02,
kIOFBLinkVoltageLevel3= 0x03
};
enum
{
kIOFBLinkPreEmphasisLevel0 = 0x00,
kIOFBLinkPreEmphasisLevel1 = 0x01,
kIOFBLinkPreEmphasisLevel2 = 0x02,
kIOFBLinkPreEmphasisLevel3 = 0x03
};
enum
{
kIOFBLinkDownspreadNone = 0x0,
kIOFBLinkDownspreadMax = 0x1
};
enum
{
kIOFBLinkScramblerNormal = 0x0, // for external displays
kIOFBLinkScramblerAlternate = 0x1 // used for eDP
};
// diagnostic keys
#define kIOFBConfigKey "IOFBConfig"
#define kIOFBModeTMKey "TM"
#define kIOFBModeAIDKey "AID"
#define kIOFBModeDFKey "DF"
#define kIOFBModePIKey "PI"
// display property keys
#define kIODisplayEDIDKey "IODisplayEDID"
#define kIODisplayEDIDOriginalKey "IODisplayEDIDOriginal"
#define kIODisplayLocationKey "IODisplayLocation" // CFString
#define kIODisplayConnectFlagsKey "IODisplayConnectFlags" // CFNumber
#define kIODisplayHasBacklightKey "IODisplayHasBacklight" // CFBoolean
#define kIODisplayMinValueKey "min"
#define kIODisplayMaxValueKey "max"
#define kIODisplayBrightnessKey "brightness"
#define kIODisplayContrastKey "contrast"
#define kIODisplayHorizontalPositionKey "horizontal-position"
#define kIODisplayHorizontalSizeKey "horizontal-size"
#define kIODisplayVerticalPositionKey "vertical-position"
#define kIODisplayVerticalSizeKey "vertical-size"
#define kIODisplayTrapezoidKey "trapezoid"
#define kIODisplayPincushionKey "pincushion"
#define kIODisplayParallelogramKey "parallelogram"
#define kIODisplayRotationKey "rotation"
#define kIODisplayTheatreModeKey "theatre-mode"
#define kIODisplayTheatreModeWindowKey "theatre-mode-window"
#define kIODisplayOverscanKey "oscn"
#define kIODisplayVideoBestKey "vbst"
#define kIODisplayBrightnessKey "brightness"
#define kIODisplayLinearBrightnessKey "linear-brightness"
#define kIODisplayUsableLinearBrightnessKey "usable-linear-brightness"
#define kIODisplayBrightnessFadeKey "brightness-fade"
#define kIODisplayContrastKey "contrast"
#define kIODisplayHorizontalPositionKey "horizontal-position"
#define kIODisplayHorizontalSizeKey "horizontal-size"
#define kIODisplayVerticalPositionKey "vertical-position"
#define kIODisplayVerticalSizeKey "vertical-size"
#define kIODisplayTrapezoidKey "trapezoid"
#define kIODisplayPincushionKey "pincushion"
#define kIODisplayParallelogramKey "parallelogram"
#define kIODisplayRotationKey "rotation"
#define kIODisplayTheatreModeKey "theatre-mode"
#define kIODisplayTheatreModeWindowKey "theatre-mode-window"
#define kIODisplayOverscanKey "oscn"
#define kIODisplayVideoBestKey "vbst"
#define kIODisplaySpeakerVolumeKey "speaker-volume"
#define kIODisplaySpeakerSelectKey "speaker-select"
#define kIODisplayPowerModeKey "power-mode"
#define kIODisplayManufacturerSpecificKey "manufacturer-specific"
#define kIODisplayPowerStateKey "dsyp"
#define kIODisplayControllerIDKey"IODisplayControllerID"
#define kIODisplayCapabilityStringKey "IODisplayCapabilityString"
#define kIODisplayRedGammaScaleKey "rgsc"
#define kIODisplayGreenGammaScaleKey "ggsc"
#define kIODisplayBlueGammaScaleKey "bgsc"
#define kIODisplayGammaScaleKey "gsc "
#define kIODisplayParametersCommitKey "commit"
#define kIODisplayParametersDefaultKey "defaults"
trunk/i386/include/IOKit/graphics/IOGraphicsEngine.h
2929
3030
3131
32
32
3333
3434
3535
struct IOGraphicsEngineContext {
IOSharedLockData contextLock;
OSSpinLock contextLock;
IOOptionBits state;
void * owner;
UInt32 version;
trunk/i386/include/IOKit/graphics/IOFramebufferShared.h
2525
2626
2727
28
2829
2930
3031
......
174175
175176
176177
177
178
178179
179180
180181
......
192193
193194
194195
195
196
197
198
199
196200
197201
198202
#include <IOKit/hidsystem/IOHIDTypes.h>
#include <IOKit/graphics/IOGraphicsTypes.h>
#include <libkern/OSAtomic.h>
#ifdef __cplusplus
extern "C" {
*/
struct StdFBShmem_t {
ev_lock_data_t cursorSema;
OSSpinLock cursorSema;
int frame;
char cursorShow;
char cursorObscured;
AbsoluteTime vblDelta;
unsigned long long int vblCount;
#if IOFB_ARBITRARY_FRAMES_CURSOR
unsigned int reservedC[28];
unsigned long long int vblDrift;
unsigned long long int vblDeltaMeasured;
AbsoluteTime vblDeltaReal;
unsigned int reservedC[22];
#else
unsigned int reservedC[27];
unsigned char hardwareCursorFlags[kIOFBNumCursorFrames];
trunk/i386/include/IOKit/IONVRAM.h
11
2
2
3
34
45
56
......
7677
7778
7879
79
80
81
82
83
84
80
81
82
83
84
85
8586
8687
8788
8889
90
91
92
8993
9094
9195
......
125129
126130
127131
132
133
134
128135
129136
130137
......
133140
134141
135142
143
144
136145
137146
138147
......
162171
163172
164173
174
165175
166176
167177
/*
* Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
* Copyright (c) 1998-2006 Apple Computer, Inc. All rights reserved.
* Copyright (c) 2007-2012 Apple Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
OSDictionary *_ofDict;
OSDictionary *_nvramPartitionOffsets;
OSDictionary *_nvramPartitionLengths;
UInt32 _xpramPartitionOffset;
UInt32 _xpramPartitionSize;
UInt8 *_xpramImage;
UInt32 _nrPartitionOffset;
UInt32 _nrPartitionSize;
UInt8 *_nrImage;
UInt32 _resv0 __unused;
UInt32 _resv1 __unused;
IOLock *_ofLock;
UInt32 _resv2 __unused;
UInt32 _resv3 __unused;
UInt8 *_resv4 __unused;
UInt32 _piPartitionOffset;
UInt32 _piPartitionSize;
UInt8 *_piImage;
bool _systemPaniced;
SInt32 _lastDeviceSync;
bool _freshInterval;
bool _isProxied;
virtual UInt8 calculatePartitionChecksum(UInt8 *partitionHeader);
virtual IOReturn initOFVariables(void);
const OSSymbol *name,
OSData *value);
void initNVRAMImage(void);
void initProxyData(void);
public:
virtual bool init(IORegistryEntry *old, const IORegistryPlane *plane);
virtual void sync(void);
virtual bool serializeProperties(OSSerialize *s) const;
virtual OSObject *copyProperty(const OSSymbol *aKey) const;
virtual OSObject *copyProperty(const char *aKey) const;
virtual OSObject *getProperty(const OSSymbol *aKey) const;
virtual OSObject *getProperty(const char *aKey) const;
virtual bool setProperty(const OSSymbol *aKey, OSObject *anObject);
IOByteCount length);
virtual IOByteCount savePanicInfo(UInt8 *buffer, IOByteCount length);
virtual bool safeToSync(void);
};
#endif /* !_IOKIT_IONVRAM_H */
trunk/i386/boot2/options.c
16631663
16641664
16651665
1666
1667
1668
1669
1670
1671
1672
16661673
16671674
16681675
size = MAX_TEXT_FILE_SIZE;
}
buf = malloc(size);
if (!buf)
{
printf("Couldn't allocate memory for the buf in showTextFile\n");
return;
}
read(fd, buf, size);
close(fd);
showTextBuffer(buf, size);
trunk/i386/modules/Resolution/edid.c
410410
411411
412412
413
413
414414
415415
416416
return ret;
}
int getEDID( void * edidBlock, UInt8 block)
int getEDID( void *edidBlock, UInt8 block)
{
biosBuf_t bb;
bzero(&bb, sizeof(bb));
trunk/i386/libsa/zalloc.c
109109
110110
111111
112
112
113113
114
115
116
117
114
118115
119116
120117
size = ((size + 0xf) & ~0xf);
if (size == 0)
if (size == 0 && zerror)
{
if (zerror)
{
(*zerror)((char *)0xdeadbeef, 0, file, line);
}
(*zerror)((char *)0xdeadbeef, 0, file, line);
}
#if BEST_FIT
smallestSize = 0;

Archive Download the corresponding diff file

Revision: 2783