Chameleon

Chameleon Commit Details

Date:2010-12-27 13:37:31 (8 years 5 months ago)
Author:Sergey Slice
Commit:693
Parents: 692
Message:Resolutions and other changes
Changes:
M/branches/slice/i386/libsaio/pci.h
M/branches/slice/i386/modules/Makefile
M/branches/slice/ChamMek/ChamMek.xcodeproj/slice.mode1v3
M/branches/slice/i386/libsaio/md5c.c
M/branches/slice/i386/modules/MakeInc.dir
M/branches/slice/i386/modules/Resolution/915resolution.c
M/branches/slice/i386/modules/Resolution/Resolution.c
M/branches/slice/i386/modules/NVRAM/NVRAM.c
M/branches/slice/i386/modules/GraphicsEnabler/ati.c
M/branches/slice/i386/boot0/Makefile
M/branches/slice/i386/boot2/Makefile
M/branches/slice/ChamMek/ChamMek.xcodeproj/slice.pbxuser
M/branches/slice/i386/modules/Resolution/915resolution.h
M/branches/slice/i386/boot2/boot.c
M/branches/slice/i386/libsaio/bootstruct.h
M/branches/slice/i386/modules/GraphicsEnabler/gma.c
M/branches/slice/i386/cdboot/Makefile
M/branches/slice/i386/modules/klibc/strxspn.c
M/branches/slice/i386/modules/GUI/gui.c
M/branches/slice/i386/modules/Resolution/edid.c
M/branches/slice/i386/boot1/Makefile
M/branches/slice/i386/modules/klibc/strxspn.h
M/branches/slice/revision
M/branches/slice/i386/modules/Resolution/edid.h
M/branches/slice/i386/boot2/graphics.c
M/branches/slice/i386/modules/GUI/GUI_module.c
M/branches/slice/i386/modules/GUI/graphic_utils.c
M/branches/slice/i386/boot2/graphics.h
M/branches/slice/TODO
M/branches/slice/i386/boot2/modules.c
M/branches/slice/CHANGES
M/branches/slice/i386/modules/USBFix/usb.c

File differences

branches/slice/i386/libsaio/bootstruct.h
3838
3939
4040
41
4142
43
44
45
4246
4347
4448
extern void *new_dsdt;
#define VGA_TEXT_MODE 0
//defined in /usr/../boot.h
//#define GRAPHICS_MODE 1
//#define FB_TEXT_MODE 2
/*
* Maximum number of boot drivers that can be loaded.
*/
branches/slice/i386/libsaio/pci.h
77
88
99
10
1011
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
1159
1260
1361
#ifndef __LIBSAIO_PCI_H
#define __LIBSAIO_PCI_H
/* Option ROM header */
typedef struct {
uint16_tsignature;// 0xAA55
uint8_trom_size;
uint32_tentry_point;
uint8_treserved[15];
uint16_tpci_header_offset;
uint16_texpansion_header_offset;
} option_rom_header_t;
/* Option ROM PCI Data Structure */
typedef struct {
uint32_tsignature;// 0x52494350'PCIR'
uint16_tvendor_id;
uint16_tdevice_id;
uint16_tvital_product_data_offset;
uint16_tstructure_length;
uint8_tstructure_revision;
uint8_tclass_code[3];
uint16_timage_length;
uint16_timage_revision;
uint8_tcode_type;
uint8_tindicator;
uint16_treserved;
} option_rom_pci_header_t;
//-----------------------------------------------------------------------------
// added by iNDi
typedef struct {
uint32_tsignature;// 0x24506E50 '$PnP'
uint8_trevision;// 1
uint8_tlength;//
uint16_toffset;
uint8_tchecksum;
uint32_tidentifier;
uint16_tmanufacturer;
uint16_tproduct;
uint8_tclass[3];
uint8_tindicators;
uint16_tboot_vector;
uint16_tdisconnect_vector;
uint16_tbootstrap_vector;
uint16_treserved;
uint16_tresource_vector;
} option_rom_pnp_header_t;
typedef struct {
uint32_t:2;
uint32_treg:6;
uint32_tfunc:3;
branches/slice/i386/libsaio/md5c.c
2828
2929
3030
31
31
3232
33
34
35
36
37
38
3933
4034
4135
......
4337
4438
4539
46
47
48
49
50
51
5240
5341
54
5542
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
9743
9844
9945
* edited for clarity and style only.
*/
#include <sys/types.h>
#include "libsaio.h"
#ifdef KERNEL
#include <sys/systm.h>
#else
#include <string.h>
#endif
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
# include <Kernel/libkern/crypto/md5.h>
#else
#endif
#ifdef KERNEL
#define memset(x,y,z)bzero(x,z);
#define memcpy(x,y,z)bcopy(y, x, z)
#endif
#if defined(__i386__) || defined(__alpha__)
#define Encode memcpy
#define Decode memcpy
#else /* __i386__ */
/*
* Encodes input (u_int32_t) into output (unsigned char). Assumes len is
* a multiple of 4.
*/
/* XXX not prototyped, and not compatible with memcpy(). */
static void
Encode (output, input, len)
unsigned char *output;
u_int32_t *input;
unsigned int len;
{
unsigned int i, j;
for (i = 0, j = 0; j < len; i++, j += 4) {
output[j] = (unsigned char)(input[i] & 0xff);
output[j+1] = (unsigned char)((input[i] >> 8) & 0xff);
output[j+2] = (unsigned char)((input[i] >> 16) & 0xff);
output[j+3] = (unsigned char)((input[i] >> 24) & 0xff);
}
}
/*
* Decodes input (unsigned char) into output (u_int32_t). Assumes len is
* a multiple of 4.
*/
static void
Decode (output, input, len)
u_int32_t *output;
const unsigned char *input;
unsigned int len;
{
unsigned int i, j;
for (i = 0, j = 0; j < len; i++, j += 4)
output[i] = ((u_int32_t)input[j]) | (((u_int32_t)input[j+1]) << 8) |
(((u_int32_t)input[j+2]) << 16) | (((u_int32_t)input[j+3]) << 24);
}
#endif /* i386 */
static unsigned char PADDING[64] = {
0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
branches/slice/i386/boot0/Makefile
22
33
44
5
5
6
67
78
89
DIR = boot0
include ../MakePaths.dir
NASM = /Developer/usr/bin/nasm
NASM = $(shell which nasm)
#/Developer/usr/bin/nasm
INSTALLDIR = $(DSTROOT)/usr/standalone/i386
DIRS_NEEDED = $(SYMROOT)
branches/slice/i386/boot1/Makefile
55
66
77
8
8
9
910
1011
1112
INSTALLDIR = $(DSTROOT)/usr/standalone/i386
DIRS_NEEDED = $(OBJROOT) $(SYMROOT)
NASM = /Developer/usr/bin/nasm
NASM = $(shell which nasm)
#/Developer/usr/bin/nasm
VERSIONED_FILES = boot1h
branches/slice/i386/boot2/graphics.c
540540
541541
542542
543
543544
544545
545546
......
722723
723724
724725
726
725727
726728
729
727730
728731
732
729733
730734
731735
}
}
}
void updateProgressBar(uint8_t * saveunder, int32_t firstBlob, int32_t select)
{
uint8_t * screen;
if (gVerboseMode) {
// Tell the kernel to use text mode on a linear frame buffer display
bootArgs->Video.v_display = FB_TEXT_MODE;
//video_mode(2);
} else {
bootArgs->Video.v_display = GRAPHICS_MODE;
//video_mode(1);
}
}
else video_mode(1);
}
if ( (mode == VGA_TEXT_MODE) || (err != errSuccess) )
branches/slice/i386/boot2/boot.c
7575
7676
7777
78
7879
7980
8081
......
108109
109110
110111
111
112
113
112
113
114
114115
115116
116117
......
209210
210211
211212
212
213
213214
214215
215216
......
283284
284285
285286
286
287
288
289287
290
291
292
293288
294289
295290
296
291
297292
298293
299294
300
301
302
303
304
305
306
307
308
295
309296
310
297
298
311299
312300
313301
314302
315303
316304
317
318305
319306
320307
321
322308
323309
324310
......
346332
347333
348334
349
335
350336
351337
352338
......
354340
355341
356342
357
343
358344
359345
360346
......
363349
364350
365351
366
352
367353
368354
369355
......
388374
389375
390376
391
392
393
394
395
396
397
398
399
400
377
378
379
401380
402381
403382
......
470449
471450
472451
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488452
489453
490454
......
556520
557521
558522
559
560
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
561545
562
563
564
546
565547
566
567548
568549
569550
570551
571552
572
573
553
554
555
574556
575557
576558
......
586568
587569
588570
571
589572
590573
591574
void *gRootPCIDev;
void *gPlatform;
void *gSMBIOS;
int gDualLink;
#ifndef OPTION_ROM
bool gEnableCDROMRescan;
bool gScanSingleDrive;
* Default path to kernel cache file
*/
//Slice - first one for Leopard
#define kDefaultCachePath "/System/Library/Caches/com.apple.kernelcaches/kernelcache"
#define kDefaultCachePathSnow "/System/Library/Caches/com.apple.kext.caches/Startup/kernelcache"
#define kDefaultCachePathTiger "/System/Library/Extensions.kextcache"
#define kDefaultCachePath "/System/Library/Caches/com.apple.kernelcaches/"
#define kDefaultCachePathSnow "/System/Library/Caches/com.apple.kext.caches/Startup/"
//#define kDefaultCachePathTiger "/System/Library/Extensions.kextcache"
//file://localhost/System/Library/Extensions.kextcache
setVideoMode( GRAPHICS_MODE, 0 );
// Draw gray screen. NOTE: no boot image, that's in the gui module
#ifndef OPTION_ROM
if(!gVerboseMode) drawColorRectangle(0, 0, DEFAULT_SCREEN_WIDTH, DEFAULT_SCREEN_HEIGHT, 0x01);
if(!gVerboseMode) drawColorRectangle(0, 0, DEFAULT_SCREEN_WIDTH, DEFAULT_SCREEN_HEIGHT, 0x01); //Slice -???
#endif
}
// Setup VGA text mode.
// Not sure if it is safe to call setVideoMode() before the
// config table has been loaded. Call video_mode() instead.
#if DEBUG
printf("before video_mode\n");
#endif
video_mode( 2 ); // 80x25 mono text mode.
#if DEBUG
printf("after video_mode\n");
#endif
// Scan and record the system's hardware information.
scan_platform();
// First get info for boot volume.
scanBootVolumes(gBIOSDev, 0);
bvChain = getBVChainForBIOSDev(gBIOSDev);
#if 0
BVRef next; /* list linkage pointer */
int biosdev; /* BIOS device number */
int type; /* device type (floppy, hd, network) */
unsigned int flags; /* attribute flags */
BVGetDescription description; /* BVGetDescription function */
int part_no; /* partition number (1 based) */
#endif
#if DEBUG
verbose("get bvChain dev=%02x type=%02x part_no=%d\n", bvChain->biosdev, bvChain->type, bvChain->part_no); //dev=0x80 - flash-stick
printf("get bvChain dev=%02x type=%02x part_no=%d\n", bvChain->biosdev, bvChain->type, bvChain->part_no); //dev=0x80 - flash-stick
getc();
#endif
setBootGlobals(bvChain);
// Load boot.plist config file
status = loadSystemConfig(&bootInfo->bootConfig);
if (getBoolForKey(kQuietBootKey, &quiet, &bootInfo->bootConfig) && quiet) {
gBootMode |= kBootModeQuiet;
}
// Override firstRun to get to the boot menu instantly by setting "Instant Menu"=y in system config
if (getBoolForKey(kInsantMenuKey, &instantMenu, &bootInfo->bootConfig) && instantMenu) {
firstRun = false;
gBootVolume = selectBootVolume(bvChain);
#if DEBUG
verbose("separated bvChain dev=%02x type=%02x part_no=%d\n", bvChain->biosdev, bvChain->type, bvChain->part_no); //dev=0x81 - HDD
printf("separated bvChain dev=%02x type=%02x part_no=%d\n", bvChain->biosdev, bvChain->type, bvChain->part_no); //dev=0x81 - HDD
pause();
#endif
if(init_module_system())
{
#if DEBUG
verbose("begin load_all_modules\n");
printf("begin load_all_modules\n");
pause();
#endif
execute_hook("ModulesLoaded", NULL, NULL, NULL, NULL);
#if DEBUG
verbose("ModulesLoaded\n");
printf("ModulesLoaded\n");
pause();
#endif
#endif
#if DEBUG
verbose("After rescan\n");
pause();
#endif
#if DEBUG
verbose(" Default: %x, ->biosdev: %x, ->part_no: %d ->flags: %x\n", gBootVolume, gBootVolume->biosdev, gBootVolume->part_no, gBootVolume->flags);
verbose(" bt(0,0): %x, ->biosdev: %x, ->part_no: %d ->flags: %x\n", gBIOSBootVolume, gBIOSBootVolume->biosdev, gBIOSBootVolume->part_no, gBIOSBootVolume->flags);
// getc();
printf(" Default: %x, ->biosdev: %x, ->part_no: %d ->flags: %x\n", gBootVolume, gBootVolume->biosdev, gBootVolume->part_no, gBootVolume->flags);
printf(" bt(0,0): %x, ->biosdev: %x, ->part_no: %d ->flags: %x\n", gBIOSBootVolume, gBIOSBootVolume->biosdev, gBIOSBootVolume->part_no, gBIOSBootVolume->flags);
getc();
/* Results
Rescan found 1 HDD and bvCount=4
bvr: 836bc10, dev: 80, part: 4, flags: 4a, vis: 1
}
// Other status (e.g. 0) means that we should proceed with boot.
/*
// Turn off any GUI elements
if( bootArgs->Video.v_display == GRAPHICS_MODE )
{
gui.devicelist.draw = false;
gui.bootprompt.draw = false;
gui.menu.draw = false;
gui.infobox.draw = false;
gui.logo.draw = false;
drawBackground();
updateVRAM();
}
*/
// Find out which version mac os we're booting.
getOSVersion(gMacOSVersion);
if (getValueForKey(kKernelCacheKey, &val, &len, &bootInfo->bootConfig) == true) {
strlcpy(gBootKernelCacheFile, val, len+1);
} else {
if(gMacOSVersion[3] == '6')
sprintf(gBootKernelCacheFile, "%s_%s.%08lX", kDefaultCachePathSnow, (archCpuType == CPU_TYPE_I386) ? "i386" : "x86_64", adler32);
if(gMacOSVersion[3] == '6') {
sprintf(gBootKernelCacheFile, "%skernelcache_%s", kDefaultCachePathSnow, (archCpuType == CPU_TYPE_I386) ? "i386" : "x86_64"); //, adler32);
//Slice - TODO
/*
- but the name is longer .adler32 and more...
kernelcache_i386.E102928C.qSs0
so will opendir and scan for some file
char* name;
long flagsC;
long timeC;
struct dirstuff* cacheDir = opendir(kDefaultCachePathSnow);
while(readdir(cacheDir, (const char**)&name, &flagsC, &timeC) >= 0)
{
if(strcmp(&name[0], gBootKernelCacheFile) == 0) //?
{
//char* tmp = malloc(strlen(name) + 1);
//strcpy(tmp, name);
}
}
*/
}
else //if(gMacOSVersion[3] == '5')
sprintf(gBootKernelCacheFile, "%s", kDefaultCachePath);
//else
//sprintf(gBootKernelCacheFile, "%s", kDefaultCachePathTiger);
sprintf(gBootKernelCacheFile, "%skernelcache", kDefaultCachePath);
}
msglog("Try cache %s\n", gBootKernelCacheFile);
// Check for cache file.
trycache = (((gBootMode & kBootModeSafe) == 0) &&
!gOverrideKernel &&
(gBootFileType == kBlockDeviceType) &&
(gMKextName[0] == '\0') &&
(gBootKernelCacheFile[0] != '\0') &&
(gMacOSVersion[3] != '4'));
(gBootKernelCacheFile[0] != '\0')); // &&
//(gMacOSVersion[3] != '4'));
verbose("Try cache %s %s\n", gBootKernelCacheFile, trycache?"YES":"NO");
verbose("Loading Darwin %s\n", gMacOSVersion);
if ((ret != 0) || ((flags & kFileTypeMask) != kFileTypeFlat)
|| (cachetime < kerneltime)) {
trycache = 0;
verbose("Try cache failed\n");
break;
}
ret = GetFileInfo("/System/Library/", "Extensions", &flags, &exttime);
branches/slice/i386/boot2/graphics.h
1717
1818
1919
20
20
2121
2222
2323
......
3636
3737
3838
39
39
4040
4141
4242
#define DEFAULT_SCREEN_WIDTH 1024
#define DEFAULT_SCREEN_HEIGHT 768
extern int gDualLink;;
unsigned long lookUpCLUTIndex( unsigned char index, unsigned char depth );
void drawColorRectangle( unsigned short x, unsigned short y, unsigned short width, unsigned short height, unsigned char colorIndex );
char *getVBEInfoString();
char *getVBEModeInfoString();
void getGraphicModeParams(unsigned long params[]);
unsigned short getGraphicModeParams(unsigned long params[]);
int setVESAGraphicsMode( unsigned short width, unsigned short height, unsigned char bitsPerPixel, unsigned short refreshRate );
branches/slice/i386/boot2/modules.c
1414
1515
1616
17
17
1818
19
19
2020
2121
2222
......
3838
3939
4040
41
41
4242
4343
4444
4545
46
46
4747
4848
4949
......
162162
163163
164164
165
165
166166
167167
168168
......
182182
183183
184184
185
185
186186
187187
188188
......
840840
841841
842842
843
843
844844
845845
846846
......
935935
936936
937937
938
938
939939
940940
941941
......
10301030
10311031
10321032
1033
1033
10341034
1035
1035
10361036
10371037
10381038
......
11981198
11991199
12001200
1201
1202
12031201
12041202
1205
12061203
12071204
12081205
......
13051302
13061303
13071304
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1305
#endif
#if DEBUG_MODULES
#define DBG(x...)verbose(x); //getc()
#define DBG(x...)verbose(x) //;getc()
#else
#define DBG(x...)
#define DBG(x...)//msglog(x)
#endif
// NOTE: Global so that modules can link with this
#if DEBUG_MODULES
void print_hook_list()
{
msglog("---Hook Table---\n");
DBG("---Hook Table---\n");
moduleHook_t* hooks = moduleCallbacks;
while(hooks)
{
msglog("Hook: %s\n", hooks->name);
DBG("Hook: %s\n", hooks->name);
hooks = hooks->next;
}
}
fh = open(modString, 0);
if(fh < 0)
{
verbose("Unable to locate module %s\n", modString);
DBG("Unable to locate module %s\n", modString);
getc();
return 0;
}
// Notify the system that it was laoded
module_loaded(module/*moduleName, moduleVersion, moduleCompat*/);
(*module_start)();// Start the module
verbose("Module %s Loaded.\n", module);
DBG("Module %s Loaded.\n", module);
}
else {
// The module does not have a valid start function
case BIND_OPCODE_SET_DYLIB_SPECIAL_IMM:
// NOTE: this is wrong, fortunately we don't use it
libraryOrdinal = -immediate;
libraryOrdinal = immediate ? (SInt8)(BIND_OPCODE_MASK | immediate) : immediate;
//DBG("BIND_OPCODE_SET_DYLIB_SPECIAL_IMM: %d\n", libraryOrdinal);
break;
}
else //if(strcmp(symbolName, SYMBOL_DYLD_STUB_BINDER) != 0)
{
verbose("Unable to bind symbol %s\n", symbolName);
verbose("Unable to bind symbol %s, libraryOrdinal = %d, symboFlags = %d, type = %d\n", symbolName, libraryOrdinal, symboFlags, type);
getc();
}
segmentAddress += tmp2 + sizeof(void*);
}
}
else //if(strcmp(symbolName, SYMBOL_DYLD_STUB_BINDER) != 0)
else
{
verbose("Unable to bind symbol %s\n", symbolName);
printf("Unable to bind symbol %s\n", symbolName);
getc();
}
}
#if DEBUG_MODULES
//if(strcmp(name, SYMBOL_DYLD_STUB_BINDER) != 0)
//{
verbose("Unable to locate symbol %s\n", name);
getc();
//}
#endif
return 0xFFFFFFFF;
}
{
// TODO: actualy impliment this function (asm)
stop("ERROR: dyld_stub_binder was called, should have been take care of by the linker.\n");
}
/* Nedded to divide 64bit numbers correctly. TODO: look into why modules need this
* And why it isn't needed when compiled into boot2
*/
uint64_t __udivdi3(uint64_t numerator, uint64_t denominator)
{
uint64_t quotient = 0, qbit = 1;
if (denominator)
{
while ((int64_t) denominator >= 0)
{
denominator <<= 1;
qbit <<= 1;
}
while (denominator)
{
if (denominator <= numerator)
{
numerator -= denominator;
quotient += qbit;
}
denominator >>= 1;
qbit >>= 1;
}
return quotient;
}
else {
stop("Divide by 0");
return 0;
}
}
}
branches/slice/i386/boot2/Makefile
8383
8484
8585
86
87
88
89
90
91
92
93
94
95
96
8697
8798
8899
-Wl,-sectcreate,__DATA,__Symbols,$(SYMROOT)/Symbols.dylib \
-o $(SYMROOT)/boot_embeded.sys $(filter %.o,$^) $(LIBS) -lcc_kext
#@ld -arch i386 \
#-undefined dynamic_lookup \
#-dylib -read_only_relocs suppress \
#-S -x -Z -dead_strip_dylibs \
#-no_uuid \
#-final_output Symbols.dylib \
#$(filter %.o,$^) $(LIBS) \
#-o $(OBJROOT)/Symbols_LINKER_ONLY.dylib
@make embed_symbols# this is done in a sub process after boot.sys exists so the strings are populated correctly
@##${RM} $(SYMROOT)/${SYMBOLS_MODULE}
branches/slice/i386/modules/NVRAM/NVRAM.c
1313
1414
1515
16
16
1717
1818
1919
......
8585
8686
8787
88
88
8989
9090
9191
......
156156
157157
158158
159
159
160160
161161
162
162163
163
164164
165165
166166
......
168168
169169
170170
171
172
171
172
173173
174174
175175
......
183183
184184
185185
186
186
187187
188
188
189189
190190
191191
192192
193
193
194194
195195
196196
197197
198
198
199199
200200
201201
202202
203
203
204204
205205
206206
207207
208208
209
209
210210
211211
212212
#include "smbios_patcher.h"
#ifndef DEBUG_NVRAM
#define DEBUG_NVRAM 1
#define DEBUG_NVRAM 0
#endif
#if DEBUG_NVRAM
//return;
msglog("NVRAM started with ModulesLoaded\n");
DBG("NVRAM started with ModulesLoaded\n");
//Slice create /options node -> /fakenvram
// I need to use fakenvram until I know what is happen
"Guid" -> "2B0585EB-D8B8-49A9-8B8C-E21B01AEF2B7"
*/
//end Slice
//
int i,j;
for (i=0; i<32; i++) {
DBG("NVRAM get a name %s\n", var[i].Name);
if (var[i].Name[0]) {
msglog("NVRAM get a name %s\n", var[i].Name);
if (isdigit(var[i].Name[0])) {
msglog(" ...it is digit...\n");
continue;
j=0;
while (var[i].Value[j++]);
DT__AddProperty(optionsNode, var[i].Name, j,&var[i].Value);
#if DEBUG_NVRAM
msglog("NVRAM add name=%s value=%s length=%d\n", var[i].Name, var[i].Value, j);
#if 1 //DEBUG_NVRAM
DBG("NVRAM add name=%s value=%s length=%d\n", var[i].Name, var[i].Value, j);
#endif
} else {
return;
{
int fd, fsize;
char* nvr = 0;
msglog("Start NVRAM reading\n");
DBG("Start NVRAM reading\n");
if ((fd = open(NVRAM_INF, 0)) < 0) {
msglog("[ERROR] open NVRAM failed\n");
DBG("[ERROR] open NVRAM failed\n");
return -1;
}
fsize = file_size(fd);
if (!fsize) {
msglog(" zero NVRAM file\n");
DBG(" zero NVRAM file\n");
close (fd);
return -1;
}
if ((nvr = malloc(fsize)) == NULL) {
verbose("[ERROR] alloc NVRAM memory failed\n");
DBG("[ERROR] alloc NVRAM memory failed\n");
close (fd);
return -1;
}
if (read (fd, nvr, fsize) != fsize) {
verbose("[ERROR] read %s failed\n", NVRAM_INF);
DBG("[ERROR] read %s failed\n", NVRAM_INF);
close (fd);
return -1;
}
close (fd);
if ((var = malloc(fsize)) == NULL) {
verbose("[ERROR] alloc VAR memory failed\n");
DBG("[ERROR] alloc VAR memory failed\n");
return -1;
}
int i = 0;
branches/slice/i386/modules/klibc/strxspn.c
22
33
44
5
6
7
85
96
107
* strpbrk
*/
#include <string.h>
#include <stddef.h>
#include <inttypes.h>
#include <limits.h>
#include "strxspn.h"
branches/slice/i386/modules/klibc/strxspn.h
66
77
88
9
910
1011
1112
#define STRXSPN_H
#include <stddef.h>
#include <string.h>
extern size_t __strxspn(const char *s, const char *map, int parity);
branches/slice/i386/modules/GUI/gui.c
159159
160160
161161
162
162163
163164
164165
......
713714
714715
715716
717
716718
717719
718
719
720
721
720722
721723
722724
......
726728
727729
728730
729
731
730732
731733
732734
733735
734736
735737
736
737
738
739
740
741
742
743
744
738745
739746
740747
741748
742
749
750
743751
744752
745753
{ .text = "Boot" },
{ .text = "Boot Verbose" },
{ .text = "Boot Ignore Caches" },
//{ .text = "Boot Safe Mode" },
{ .text = "Boot Single User" },
{ .text = "Memory Info" },
{ .text = "Video Info" },
if(is_module_loaded("Resolution.dylib"))
{
getResolution(&screen_params[0], &screen_params[1], &screen_params[2]);
gDualLink =((screen_params[0] * screen_params[1]) > (1<<20))?1:0;
msglog("GUI module screen width=%d height=%d\n",(int)screen_params[0], (int)screen_params[1]);
}
if (((int)screen_params[0]<800) || ((int)screen_params[1]<600))
{
//if (((int)screen_params[0]<800) || ((int)screen_params[1]<600))
//{
if (getIntForKey("screen_width", &val, &bootInfo->themeConfig) && val > 0)
{
screen_params[0] = val;
screen_params[1] = val;
}
msglog("GUI theme screen width=%d height=%d\n",screen_params[0], screen_params[1]);
}
//}
if (((int)screen_params[0]<800) || ((int)screen_params[1]<600))
{
screen_params[0] = DEFAULT_SCREEN_WIDTH;
screen_params[1] = DEFAULT_SCREEN_HEIGHT;
msglog("GUI default screen width=%d height=%d\n",screen_params[0], screen_params[1]);
}
/*if (((int)screen_params[0]>1280) || ((int)screen_params[1]>1024))
{
screen_params[0] = 1280;
screen_params[1] = 1024;
verbose("GUI MAX VESA screen width=%d height=%d\n",screen_params[0], screen_params[1]);
}*/
screen_params[2] = 32;
// Initalizing GUI structure.
bzero(&gui, sizeof(gui_t));
// find best matching vesa mode for our requested width & height
getGraphicModeParams(screen_params);
int modeV = getGraphicModeParams(screen_params);
verbose("GUI: set mode %d: %dx%dx%d\n", modeV, screen_params[0], screen_params[1], screen_params[2]);
// set our screen structure with the mode width & height
gui.screen.width = screen_params[0];
branches/slice/i386/modules/GUI/GUI_module.c
7474
7575
7676
77
77
7878
7979
8080
}
else
{
setVideoMode( GRAPHICS_MODE, 0 );
setVideoMode( GRAPHICS_MODE, 0 ); //Slice - Why GRAPHICS_MODE if gVerboseMode?
}
}
branches/slice/i386/modules/GUI/graphic_utils.c
304304
305305
306306
307
307
308308
309309
310310
......
326326
327327
328328
329
329330
330331
331332
void getGraphicModeParams(unsigned long params[]) {
unsigned short getGraphicModeParams(unsigned long params[]) {
params[3] = 0;
params[0] = minfo.XResolution;
params[1] = minfo.YResolution;
params[2] = 32;
return mode;
}
branches/slice/i386/modules/MakeInc.dir
4242
4343
4444
45
46
4547
4648
4749
-weak_library $(SYMROOT)/*.dylib \
-o $(SYMROOT)/$(MODULE_NAME).dylib
#@cp -rf include/* ../module_includes/ &> /dev/null || true
@if [ -f "$(SYMROOT)/../uClibc++.dylib" ]; then if [ x"$(shell nm $(OBJROOT)/*.o 2>/dev/null | grep " __Z")" == x"" ]; then mv $(SYMROOT)/../uClibc++.dylib $(SYMROOT)/uClibc++.dylib; fi; fi;
else
branches/slice/i386/modules/GraphicsEnabler/gma.c
77
88
99
10
1011
1112
1213
......
1718
1819
1920
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
4346
4447
4548
......
124127
125128
126129
130
127131
128132
129133
......
134138
135139
136140
137
138
139
140
141
142
143
144
145
146
147
148
141
142
143
144
145
146
147
148
149
150
151
152
153
149154
155
156
150157
151
158
152159
153160
154161
155
162
156163
157164
158165
#include "platform.h"
#include "device_inject.h"
#include "gma.h"
#include "graphics.h"
#ifndef DEBUG_GMA
#define DEBUG_GMA 0
#else
#define DBG(x...)
#endif
uint8_t GMAX3100_vals[22][4] = {
{ 0x01,0x00,0x00,0x00 },
{ 0x01,0x00,0x00,0x00 },
{ 0x01,0x00,0x00,0x00 },
{ 0x00,0x00,0x00,0x08 },
{ 0x64,0x00,0x00,0x00 },
{ 0x00,0x00,0x00,0x08 },
{ 0x01,0x00,0x00,0x00 },
{ 0x20,0x00,0x00,0x00 },
{ 0x00,0x00,0x00,0x00 },
{ 0x01,0x00,0x00,0x00 },
{ 0x20,0x03,0x00,0x00 },
{ 0x00,0x00,0x00,0x00 },
{ 0x00,0x00,0x00,0x00 },
{ 0x00,0x00,0x00,0x00 },
{ 0x08,0x52,0x00,0x00 },
{ 0x00,0x00,0x00,0x00 },
{ 0x00,0x00,0x00,0x00 },
{ 0x01,0x00,0x00,0x00 },
{ 0x01,0x00,0x00,0x00 },
{ 0x3B,0x00,0x00,0x00 },
{ 0x00,0x00,0x00,0x00 }
//Slice - correct all values, still not sure
uint8_t GMAX3100_vals[23][4] = {
{ 0x01,0x00,0x00,0x00 },//0 "AAPL,HasPanel"
{ 0x01,0x00,0x00,0x00 },//1 "AAPL,SelfRefreshSupported"
{ 0x01,0x00,0x00,0x00 },//2 "AAPL,aux-power-connected"
{ 0x01,0x00,0x00,0x08 },//3 "AAPL,backlight-control"
{ 0x00,0x00,0x00,0x00 },//4 "AAPL00,blackscreen-preferences"
{ 0x56,0x00,0x00,0x08 },//5 "AAPL01,BacklightIntensity"
{ 0x00,0x00,0x00,0x00 },//6 "AAPL01,blackscreen-preferences"
{ 0x01,0x00,0x00,0x00 },//7 "AAPL01,DataJustify"
{ 0x20,0x00,0x00,0x00 },//8 "AAPL01,Depth"
{ 0x01,0x00,0x00,0x00 },//9 "AAPL01,Dither"
{ 0x20,0x03,0x00,0x00 },//10 "AAPL01,Height"
{ 0x00,0x00,0x00,0x00 },//11 "AAPL01,Interlace"
{ 0x00,0x00,0x00,0x00 },//12 "AAPL01,Inverter"
{ 0x08,0x52,0x00,0x00 },//13 "AAPL01,InverterCurrent"
{ 0x00,0x00,0x00,0x00 },//14 "AAPL01,LinkFormat"
{ 0x00,0x00,0x00,0x00 },//15 "AAPL01,LinkType"
{ 0x01,0x00,0x00,0x00 },//16 "AAPL01,Pipe"
{ 0x01,0x00,0x00,0x00 },//17 "AAPL01,PixelFormat"
{ 0x01,0x00,0x00,0x00 },//18 "AAPL01,Refresh"
{ 0x3B,0x00,0x00,0x00 },//19 "AAPL01,Stretch"
{ 0xc8,0x95,0x00,0x00 },//20 "AAPL01,InverterFrequency"
{ 0x6B,0x10,0x00,0x00 },//21 "subsystem-vendor-id"
{ 0xA2,0x00,0x00,0x00 }//22 "subsystem-id"
};
uint8_t reg_TRUE[] = { 0x01 ,0x00 ,0x00 ,0x00 };
uint8_t reg_FALSE[] = { 0x00,0x00,0x00,0x00 };
}
else if (model == (char *)"GMAX3100")
{
BuiltIn = gDualLink;
devprop_add_value(device, "AAPL,HasPanel",GMAX3100_vals[0], 4);
devprop_add_value(device, "AAPL,SelfRefreshSupported",GMAX3100_vals[1], 4);
devprop_add_value(device, "AAPL,aux-power-connected",GMAX3100_vals[2], 4);
devprop_add_value(device, "AAPL01,DataJustify",GMAX3100_vals[7], 4);
devprop_add_value(device, "AAPL01,Depth",GMAX3100_vals[8], 4);
devprop_add_value(device, "AAPL01,Dither",GMAX3100_vals[9], 4);
devprop_add_value(device, "AAPL01,DualLink",GMAX3100_vals[10], 4);
devprop_add_value(device, "AAPL01,Height",GMAX3100_vals[11], 4);
devprop_add_value(device, "AAPL01,Interlace",GMAX3100_vals[12], 4);
devprop_add_value(device, "AAPL01,Inverter",GMAX3100_vals[13], 4);
devprop_add_value(device, "AAPL01,InverterCurrent",GMAX3100_vals[14], 4);
devprop_add_value(device, "AAPL01,InverterCurrency",GMAX3100_vals[15], 4);
devprop_add_value(device, "AAPL01,LinkFormat",GMAX3100_vals[16], 4);
devprop_add_value(device, "AAPL01,LinkType",GMAX3100_vals[17], 4);
devprop_add_value(device, "AAPL01,Pipe",GMAX3100_vals[18], 4);
devprop_add_value(device, "AAPL01,PixelFormat",GMAX3100_vals[19], 4);
devprop_add_value(device, "AAPL01,Refresh",GMAX3100_vals[20], 4);
devprop_add_value(device, "AAPL01,Stretch",GMAX3100_vals[21], 4);
devprop_add_value(device, "AAPL01,DualLink", &BuiltIn, 1);//GMAX3100_vals[10]
devprop_add_value(device, "AAPL01,Height",GMAX3100_vals[10], 4);
devprop_add_value(device, "AAPL01,Interlace",GMAX3100_vals[11], 4);
devprop_add_value(device, "AAPL01,Inverter",GMAX3100_vals[12], 4);
devprop_add_value(device, "AAPL01,InverterCurrent",GMAX3100_vals[13], 4);
//devprop_add_value(device, "AAPL01,InverterCurrency",GMAX3100_vals[15], 4);
devprop_add_value(device, "AAPL01,LinkFormat",GMAX3100_vals[14], 4);
devprop_add_value(device, "AAPL01,LinkType",GMAX3100_vals[15], 4);
devprop_add_value(device, "AAPL01,Pipe",GMAX3100_vals[16], 4);
devprop_add_value(device, "AAPL01,PixelFormat",GMAX3100_vals[17], 4);
devprop_add_value(device, "AAPL01,Refresh",GMAX3100_vals[18], 4);
devprop_add_value(device, "AAPL01,Stretch",GMAX3100_vals[19], 4);
devprop_add_value(device, "AAPL01,InverterFrequency",GMAX3100_vals[20], 4);
devprop_add_value(device, "class-code", ClassFix, 4);
devprop_add_value(device, "subsystem-vendor-id", GMAX3100_vals[21], 4);
devprop_add_value(device, "subsystem-id", GMAX3100_vals[22], 4);
}
stringdata = malloc(sizeof(uint8_t) * string->length);
if(!stringdata)
{
verbose("no stringdata press a key...\n");
verbose("no GMA stringdata press a key...\n");
getc();
return false;
}
branches/slice/i386/modules/GraphicsEnabler/ati.c
7373
7474
7575
76
76
7777
7878
7979
8080
81
81
8282
8383
8484
......
9191
9292
9393
94
95
94
95
9696
9797
9898
......
678678
679679
680680
681
681
682682
683683
684684
const char *ati_efi_version[]= { "ATY,EFIVersion", "01.00.318" };
const char *ati_efi_versionB[]= { "ATY,EFIVersionB", "113-SBSJ1G04-00R-02" };
const char *ati_efi_versionE[]= { "ATY,EFIVersionE", "113-B7710A-318" };
struct ati_data_key ati_mclk= { 0x04, "ATY,MCLK", {0x70, 0x2e, 0x11, 0x00} };
struct ati_data_key ati_mclk= { 0x04, "ATY,MCLK", {0x70, 0x2e, 0x11, 0x00} }; //"ATY,MCLK" = 0x186a0
struct ati_data_key ati_mem_rev_id= { 0x02, "ATY,MemRevisionID", {0x03, 0x00} };
struct ati_data_key ati_mem_vend_id= { 0x02, "ATY,MemVendorID", {0x02, 0x00} };
const char *ati_mrt[]= { "ATY,MRT", " " };
const char *ati_romno[]= { "ATY,Rom#", "113-B7710C-176" };
struct ati_data_key ati_sclk= { 0x04, "ATY,SCLK", {0x28, 0xdb, 0x0b, 0x00} };
struct ati_data_key ati_sclk= { 0x04, "ATY,SCLK", {0x28, 0xdb, 0x0b, 0x00} }; //"ATY,SCLK" = 0x11b33
struct ati_data_key ati_vendor_id= { 0x02, "ATY,VendorID", {0x02, 0x10} };
struct ati_data_key ati_platform_info= { 0x80, "ATY,PlatformInfo", {0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00} };
struct ati_data_key ati_mvad= { 0x40, "MVAD", {0x3f, 0x5c, 0x82, 0x02, 0xff, 0x90, 0x00, 0x54, 0x60, 0x00, 0xac, 0x10, 0xa0, 0x17, 0x00, 0x03, 0xb0, 0x68, 0x00, 0x0a, 0xa0, 0x0a, 0x30, 0x00, 0x20, 0x00, 0x40, 0x06, 0x6e, 0x06, 0x03, 0x00, 0x06, 0x00, 0x40, 0x06, 0x00, 0x0a, 0x10, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x00, 0x10, 0x06, 0x92, 0x20, 0x00, 0x03} };
struct ati_data_key ati_fb_offset_n4= { 0x08, "ATY,FrameBufferOffset", {0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00} };
struct ati_data_key ati_hwgpio_n4= { 0x04, "ATY,HWGPIO", {0x23, 0xa8, 0x48, 0x00} };
struct ati_data_key ati_iospace_offset_n4= { 0x08, "ATY,IOSpaceOffset", {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00} };
struct ati_data_key ati_mclk_n4= { 0x04, "ATY,MCLK", {0x00, 0x35, 0x0c, 0x00} };
struct ati_data_key ati_sclk_n4= { 0x04, "ATY,SCLK", {0x60, 0xae, 0x0a, 0x00} };
struct ati_data_key ati_mclk_n4= { 0x04, "ATY,MCLK", {0x00, 0x35, 0x0c, 0x00} }; //"ATY,MCLK" = 0x186a0
struct ati_data_key ati_sclk_n4= { 0x04, "ATY,SCLK", {0x60, 0xae, 0x0a, 0x00} }; //"ATY,SCLK" = 0x11b33 (HD5850)
struct ati_data_key ati_refclk_n4= { 0x04, "ATY,RefCLK", {0x8c, 0x0a, 0x00, 0x00} };
struct ati_data_key ati_regspace_offset_n4= { 0x08, "ATY,RegisterSpaceOffset", {0x00, 0x00, 0x00, 0x00, 0x90, 0xa2, 0x00, 0x00} };
struct ati_data_key ati_vram_memsize_0= { 0x08, "@0,VRAM,memsize", {0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00} };
}
model = get_ati_model((ati_dev->vendor_id << 16) | ati_dev->device_id);
framebuffer = getStringForKey(kAtiConfig, &bootInfo->bootConfig);
framebuffer = (char*)getStringForKey(kAtiConfig, &bootInfo->bootConfig);
if (!framebuffer) {
framebuffer = get_ati_fb((ati_dev->vendor_id << 16) | ati_dev->device_id);
}
branches/slice/i386/modules/USBFix/usb.c
330330
331331
332332
333
333
334334
335335
336336
base = pci_config_read32(pci_dev->dev.addr, 0x20);
port_base = (base >> 5) & 0x07ff;
msglog("UHCI controller [%04x:%04x] at %02x:%2x.%x base %x(%x)\n",
msglog("UHCI controller [%04x:%04x] at %02x:%2x.%x base %x(%x) reset\n",
pci_dev->vendor_id, pci_dev->device_id,
pci_dev->dev.bits.bus, pci_dev->dev.bits.dev, pci_dev->dev.bits.func,
port_base, base);
branches/slice/i386/modules/Resolution/915resolution.c
2121
2222
2323
24
2425
25
2626
2727
2828
......
3030
3131
3232
33
3334
3435
3536
......
319320
320321
321322
322
323
323324
324325
325326
......
381382
382383
383384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
384407
385408
386409
......
578601
579602
580603
581
582
583
604
605
606
607
608
609
610
611
584612
585613
586614
......
589617
590618
591619
620
592621
593
594622
595623
596624
......
629657
630658
631659
660
661
662
632663
633664
634665
UInt32 x = 0, y = 0, bp = 0;
getResolution(&x, &y, &bp);
verbose("getResolution: %dx%dx%d\n", (int)x, (int)y, (int)bp);
if (x != 0 &&
y != 0 &&
bp != 0)
vbios_map * map;
map = open_vbios(CT_UNKWN);
//verbose("open_vbios\n");
if(map)
{
unlock_vbios(map);
int i = 0;
while (i < 512)
{ // we don't need to look through the whole bios, just the firs 512 bytes
{ // we don't need to look through the whole bios, just the first 512 bytes
if ((map->bios_ptr[i] == 'N')
&& (map->bios_ptr[i+1] == 'V')
&& (map->bios_ptr[i+2] == 'I')
close_vbios(map);
return 0;
}*/
//Slice - Intel = 49 6E 74 65 6C located @ 0xBE6
/*
PCIptr @0x18 = 0x0040
version @0x20 = 0x0AE0
*/
int i = 0;
while (i < 4096)
{ // we don't need to look through the whole bios, just the first 0x1000 bytes
if ((map->bios_ptr[i] == 0x49)
&& (map->bios_ptr[i+1] == 0x6E)
&& (map->bios_ptr[i+2] == 0x74)
&& (map->bios_ptr[i+3] == 0x65)
&& (map->bios_ptr[i+4] == 0x6C))
{
verbose( "Intel VideoBIOS detected. \n");
map->bios = BT_INTEL;
close_vbios(map);
return 0;
//break;
}
i++;
}
/*
* check for others
{
char* edidInfo = readEDID();
if(!edidInfo) return 1;
mode->pixel_clock = (edidInfo[55] << 8) | edidInfo[54];
if(edidInfo == 0) return 1;
//Slice
if(fb_parse_edid((struct EDID *)edidInfo, mode) == 0)
{
free( edidInfo );
return 1;
}
/*mode->pixel_clock = (edidInfo[55] << 8) | edidInfo[54];
mode->h_active = edidInfo[56] | ((edidInfo[58] & 0xF0) << 4);
mode->h_blanking = ((edidInfo[58] & 0x0F) << 8) | edidInfo[57];
mode->v_active = edidInfo[59] | ((edidInfo[61] & 0xF0) << 4);
mode->h_sync_width = (edidInfo[65] & 0x30) | edidInfo[63];
mode->v_sync_offset = (edidInfo[65] & 0x0C) | ((edidInfo[64] & 0x0C) >> 2);
mode->v_sync_width = ((edidInfo[65] & 0x3) << 2) | (edidInfo[64] & 0x03);
*/
free( edidInfo );
if(!mode->h_active) return 1;
//for (i=0; i < map->mode_table_size; i++) {
//if (map->mode_table[0].mode == mode) {
switch(map->bios) {
case BT_INTEL:
return;
case BT_1:
{
vbios_resolution_type1 * res = map_type1_resolution(map, map->mode_table[i].resolution);
branches/slice/i386/modules/Resolution/Resolution.c
99
1010
1111
12
1213
1314
1415
void Resolution_start()
{
//verbose("Resolution_start\n");
patchVideoBios();
}
branches/slice/i386/modules/Resolution/edid.c
187187
188188
189189
190
190
191191
192192
193193
......
198198
199199
200200
201
202
201
202
203
204
205
206
207
208
209
203210
204211
205212
......
221228
222229
223230
224
231
225232
226233
227
234
228235
229236
230237
......
251258
252259
253260
254
261
255262
256263
257264
258
265
266
267
259268
260269
261270
262271
272
273
274
275
276
263277
264278
265279
......
303317
304318
305319
306
320
307321
308322
309323
}
//----------------------------------------------------------------------------------
int fb_parse_edid(struct EDID *edid, UInt32* x, UInt32* y)
int fb_parse_edid(struct EDID *edid, edid_mode* var) //(struct EDID *edid, UInt32* x, UInt32* y)
{
int i;
unsigned char *block;
for (i = 0; i < 4; i++, block += DETAILED_TIMING_DESCRIPTION_SIZE) {
if (edid_is_timing_block(block)) {
*x = H_ACTIVE;
*y = V_ACTIVE;
var->h_active = H_ACTIVE;
var->v_active = V_ACTIVE;
var->h_sync_offset = H_SYNC_OFFSET;
var->h_sync_width = H_SYNC_WIDTH;
var->h_blanking = H_BLANKING;
var->v_blanking = V_BLANKING;
var->pixel_clock = PIXEL_CLOCK;
var->h_sync_width = H_SYNC_WIDTH;
var->v_sync_width = V_SYNC_WIDTH;
/*
var->xres = var->xres_virtual = H_ACTIVE;
var->yres = var->yres_virtual = V_ACTIVE;
if (VSYNC_POSITIVE)
var->sync |= FB_SYNC_VERT_HIGH_ACT;
*/
return 0;
return 1;
}
}
return 1;
return 0;
}
void getResolution(UInt32* x, UInt32* y, UInt32* bp)
char* edidInfo = readEDID();
if(!edidInfo) return;
edid_mode mode;
// TODO: check *all* resolutions reported and either use the highest, or the native resolution (if there is a flag for that)
//xResolution = edidInfo[56] | ((edidInfo[58] & 0xF0) << 4);
//yResolution = edidInfo[59] | ((edidInfo[61] & 0xF0) << 4);
if(fb_parse_edid(edidInfo, &xResolution, &yResolution))
//Slice - done here
if(fb_parse_edid((struct EDID *)edidInfo, &mode) == 0)
{
xResolution = DEFAULT_SCREEN_WIDTH;
yResolution = DEFAULT_SCREEN_HEIGHT;
}
else {
xResolution = mode.h_active;
yResolution = mode.v_active;
}
/*
0x00 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0x00 0x32 0x0C
0x00 0xDF 0x00 0x00 0x00 0x00 0xFF 0xFF 0xFF 0x00
SInt16 status;
UInt16 blocks_left = 1;
msglog("readEDID\n");
//msglog("readEDID\n");
do
{
// TODO: This currently only retrieves the *last* block, make the block buffer expand as needed / calculated from the first block
branches/slice/i386/modules/Resolution/915resolution.h
1414
1515
1616
17
18
19
20
21
22
23
24
25
26
27
2817
29
30
3118
3219
3320
......
116103
117104
118105
119
106
120107
121108
122109
#include "shortatombios.h"
#include "edid.h"
typedef struct _edid_mode {
unsigned short pixel_clock;
unsigned short h_active;
unsigned short h_blanking;
unsigned short v_active;
unsigned short v_blanking;
unsigned short h_sync_offset;
unsigned short h_sync_width;
unsigned short v_sync_offset;
unsigned short v_sync_width;
} edid_mode;
void patchVideoBios();
typedef enum {
BT_UNKWN, BT_1, BT_2, BT_3, BT_ATI_1, BT_ATI_2, BT_NVDA
BT_UNKWN, BT_1, BT_2, BT_3, BT_ATI_1, BT_ATI_2, BT_NVDA, BT_INTEL
} bios_type;
branches/slice/i386/modules/Resolution/edid.h
55
66
77
8
89
910
1011
......
1415
1516
1617
17
18
1819
1920
2021
......
150151
151152
152153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
153168
154169
170
155171
156172
* Created by Evan Lojewski on 12/1/09.
* Copyright 2009. All rights reserved.
*
* Slice 2010
*/
//#ifndef __EDID_H__
//#define __EDID_H__
#define EDID_BLOCK_SIZE128
#define EDID_V1_BLOCKS_TO_GO_OFFSET 126
//Slice - some more info aabout EDID
//Slice - some more info about EDID
#define EDID_LENGTH0x80
#define EDID_HEADER0x00
#define EDID_HEADER_END0x07
UInt8checksum;//127
};
typedef struct _edid_mode {
unsigned short pixel_clock;
unsigned short h_active;
unsigned short h_blanking;
unsigned short v_active;
unsigned short v_blanking;
unsigned short h_sync_offset;
unsigned short h_sync_width;
unsigned short v_sync_offset;
unsigned short v_sync_width;
} edid_mode;
char* readEDID();
void getResolution(UInt32* x, UInt32* y, UInt32* bp);
int fb_parse_edid(struct EDID *edid, edid_mode* var);
//#endif
branches/slice/i386/modules/Makefile
2626
2727
2828
29
29
3030
3131
3232
VPATH = $(OBJROOT):$(SYMROOT)
# The order of building is important.
SUBDIRS = klibc uClibc++ Resolution KernelPatcher GUI KextPatcher GraphicsEnabler HPET USBFix Memory Networking NetbookInstaller ACPIPatcher NVRAM HelloWorld
SUBDIRS = klibc uClibc++ Resolution KernelPatcher GUI KextPatcher GraphicsEnabler HPET USBFix Memory Networking NetbookInstaller ACPIPatcher NVRAM ATI5000Enabler HelloWorld
#SUBDIRS = HelloWorld
all embedtheme optionrom tags debug install installhdrs: objroot_dirs lazydylib1.o
branches/slice/i386/cdboot/Makefile
22
33
44
5
5
6
67
78
89
DIR = cdboot
include ../MakePaths.dir
NASM = /Developer/usr/bin/nasm
NASM = $(shell which nasm)
#/Developer/usr/bin/nasm
INSTALLDIR = $(DSTROOT)/usr/standalone/i386
DIRS_NEEDED = $(SYMROOT)
branches/slice/revision
1
1
676:689
676:691
branches/slice/ChamMek/ChamMek.xcodeproj/slice.pbxuser
7676
7777
7878
79
80
79
80
8181
8282
8383
......
8686
8787
8888
89
89
90
91
9092
9193
9294
9395
9496
9597
98
99
96100
97101
98
99102
100103
101104
......
103106
104107
105108
109
106110
107111
112
108113
109114
110115
......
117122
118123
119124
125
126
127
128
120129
121130
122131
......
124133
125134
126135
136
137
138
139
140
141
142
143
144
145
146
147
127148
128149
129
130150
131
132
133151
134
135152
136153
137154
138155
139156
140157
158
141159
142160
143161
162
163
164
165
144166
145167
146168
......
248270
249271
250272
273
274
275
276
277
278
279
251280
252281
253282
......
255284
256285
257286
258
287
259288
260
261
262
263
289
290
291
292
264293
265
266
294
295
267296
268
297
298
299
300
301
302
303
304
269305
270
271
272
306
307
308
273309
274310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
275327
276328
277329
......
374426
375427
376428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
377463
378464
379465
......
394480
395481
396482
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414483
415484
416485
......
530599
531600
532601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
533619
534620
535621
......
564650
565651
566652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
567670
568671
569672
......
628731
629732
630733
734
735
736
737
738
739
740
631741
632742
633743
......
775885
776886
777887
888
889
890
891
892
893
894
895
896
897
778898
779899
780900
......
823943
824944
825945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
826988
827989
828990
......
9511113
9521114
9531115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
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
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
9541334
9551335
9561336
......
9711351
9721352
9731353
974
975
976
977
978
979
980
981
982
1354
1355
1356
1357
1358
1359
9831360
9841361
9851362
......
9981375
9991376
10001377
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1378
10121379
10131380
10141381
10151382
10161383
1384
1385
1386
1387
1388
10171389
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
10341390
10351391
10361392
......
10411397
10421398
10431399
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
10541400
10551401
10561402
......
10681414
10691415
10701416
1071
1072
1073
1074
1075
1076
1077
10781417
10791418
10801419
......
11741513
11751514
11761515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
11771526
11781527
11791528
......
12251574
12261575
12271576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
12281636
12291637
12301638
PBXSymbolsDataSource_ReferenceNameID,
);
};
PBXPerProjectTemplateStateSaveDate = 314916942;
PBXWorkspaceStateSaveDate = 314916942;
PBXPerProjectTemplateStateSaveDate = 315140248;
PBXWorkspaceStateSaveDate = 315140248;
};
perUserProjectItems = {
120DFB1712BA3A4D00C7EAC8 /* PBXTextBookmark */ = 120DFB1712BA3A4D00C7EAC8 /* PBXTextBookmark */;
12121ED112B261EA00207E55 /* PBXTextBookmark */ = 12121ED112B261EA00207E55 /* PBXTextBookmark */;
1216139E12B65BB50019961E /* PBXTextBookmark */ = 1216139E12B65BB50019961E /* PBXTextBookmark */;
121613FF12B65D970019961E /* PBXTextBookmark */ = 121613FF12B65D970019961E /* PBXTextBookmark */;
1236A82312BD6023003F1DA9 /* PBXTextBookmark */ = 1236A82312BD6023003F1DA9 /* PBXTextBookmark */;
123C5F8D12C8AB2C00DFC2D4 /* PBXTextBookmark */ = 123C5F8D12C8AB2C00DFC2D4 /* PBXTextBookmark */;
123C5F8E12C8AB2C00DFC2D4 /* PBXTextBookmark */ = 123C5F8E12C8AB2C00DFC2D4 /* PBXTextBookmark */;
123C5F9012C8AB2C00DFC2D4 /* PBXTextBookmark */ = 123C5F9012C8AB2C00DFC2D4 /* PBXTextBookmark */;
124C493212B8D846005AA276 /* PBXTextBookmark */ = 124C493212B8D846005AA276 /* PBXTextBookmark */;
124C493712B8D846005AA276 /* PBXTextBookmark */ = 124C493712B8D846005AA276 /* PBXTextBookmark */;
124C494212B8E8C2005AA276 /* PBXTextBookmark */ = 124C494212B8E8C2005AA276 /* PBXTextBookmark */;
124C494312B8E8C2005AA276 /* PBXTextBookmark */ = 124C494312B8E8C2005AA276 /* PBXTextBookmark */;
124C494512B8E8C2005AA276 /* PBXTextBookmark */ = 124C494512B8E8C2005AA276 /* PBXTextBookmark */;
124C494B12B8EA5D005AA276 /* PBXTextBookmark */ = 124C494B12B8EA5D005AA276 /* PBXTextBookmark */;
1265C97612C7554E0050D02E /* PBXTextBookmark */ = 1265C97612C7554E0050D02E /* PBXTextBookmark */;
1265C97712C7554E0050D02E /* PBXTextBookmark */ = 1265C97712C7554E0050D02E /* PBXTextBookmark */;
1267813012B7B13E00A25CED /* PBXTextBookmark */ = 1267813012B7B13E00A25CED /* PBXTextBookmark */;
12679BA312BE822E00E3637F /* PBXTextBookmark */ = 12679BA312BE822E00E3637F /* PBXTextBookmark */;
1279BD7112BF4D8700612F62 /* PBXTextBookmark */ = 1279BD7112BF4D8700612F62 /* PBXTextBookmark */;
1288318212C3608100EA4CB2 /* PBXTextBookmark */ = 1288318212C3608100EA4CB2 /* PBXTextBookmark */;
128835DC12C366AB00EA4CB2 /* PBXTextBookmark */ = 128835DC12C366AB00EA4CB2 /* PBXTextBookmark */;
128A97B712C2336000600556 /* PBXTextBookmark */ = 128A97B712C2336000600556 /* PBXTextBookmark */;
128A9AF412C233CE00600556 /* PBXTextBookmark */ = 128A9AF412C233CE00600556 /* PBXTextBookmark */;
1299A51F12B3C328007ED516 /* PBXTextBookmark */ = 1299A51F12B3C328007ED516 /* PBXTextBookmark */;
1299A55612B3C4DF007ED516 /* PBXTextBookmark */ = 1299A55612B3C4DF007ED516 /* PBXTextBookmark */;
12A7376E12C854A600769789 /* PBXTextBookmark */ = 12A7376E12C854A600769789 /* PBXTextBookmark */;
12AB04BD12B663F5005A745F /* PBXTextBookmark */ = 12AB04BD12B663F5005A745F /* PBXTextBookmark */;
12AB04EC12B665EA005A745F /* PBXTextBookmark */ = 12AB04EC12B665EA005A745F /* PBXTextBookmark */;
12AD499312C7ADAB0082CD39 /* PBXTextBookmark */ = 12AD499312C7ADAB0082CD39 /* PBXTextBookmark */;
12AF764312BA614B003BBFD3 /* PBXTextBookmark */ = 12AF764312BA614B003BBFD3 /* PBXTextBookmark */;
12B46E6612B75631006C2B9C /* PBXTextBookmark */ = 12B46E6612B75631006C2B9C /* PBXTextBookmark */;
12B46E6812B75631006C2B9C /* PBXTextBookmark */ = 12B46E6812B75631006C2B9C /* PBXTextBookmark */;
12B90A5212B2AE1300FE287A /* PBXTextBookmark */ = 12B90A5212B2AE1300FE287A /* PBXTextBookmark */;
12B9F42612B29A4A00FE287A /* PBXTextBookmark */ = 12B9F42612B29A4A00FE287A /* PBXTextBookmark */;
12BF14DA12B3CF8E00D798FE /* PBXTextBookmark */ = 12BF14DA12B3CF8E00D798FE /* PBXTextBookmark */;
12C246F412C87C7C007E8339 /* PBXTextBookmark */ = 12C246F412C87C7C007E8339 /* PBXTextBookmark */;
12C2907612C8962900984F8F /* PBXTextBookmark */ = 12C2907612C8962900984F8F /* PBXTextBookmark */;
12C672F312C7C6BE0058B09B /* PBXTextBookmark */ = 12C672F312C7C6BE0058B09B /* PBXTextBookmark */;
12C672F512C7C6BE0058B09B /* PBXTextBookmark */ = 12C672F512C7C6BE0058B09B /* PBXTextBookmark */;
12C7009812B7BCE7006BD382 /* PBXTextBookmark */ = 12C7009812B7BCE7006BD382 /* PBXTextBookmark */;
12C7009912B7BCE7006BD382 /* PBXTextBookmark */ = 12C7009912B7BCE7006BD382 /* PBXTextBookmark */;
12C704E512B7BD3E006BD382 /* PBXTextBookmark */ = 12C704E512B7BD3E006BD382 /* PBXTextBookmark */;
12C7FC4E12B7BCD3006BD382 /* PlistBookmark */ = 12C7FC4E12B7BCD3006BD382 /* PlistBookmark */;
12C8CB6812B5529D003DA1E4 /* PBXTextBookmark */ = 12C8CB6812B5529D003DA1E4 /* PBXTextBookmark */;
12CC44C812B3947B007E0C76 /* PBXTextBookmark */ = 12CC44C812B3947B007E0C76 /* PBXTextBookmark */;
12D2040912C890B700CE318D /* PBXTextBookmark */ = 12D2040912C890B700CE318D /* PBXTextBookmark */;
12D331A312C61E950093EEDB /* PBXTextBookmark */ = 12D331A312C61E950093EEDB /* PBXTextBookmark */;
12D331BE12C621050093EEDB /* PBXTextBookmark */ = 12D331BE12C621050093EEDB /* PBXTextBookmark */;
12D331CC12C622FE0093EEDB /* PBXTextBookmark */ = 12D331CC12C622FE0093EEDB /* PBXTextBookmark */;
12D3321612C63DF20093EEDB /* PBXTextBookmark */ = 12D3321612C63DF20093EEDB /* PBXTextBookmark */;
12D3324112C63EB70093EEDB /* PBXTextBookmark */ = 12D3324112C63EB70093EEDB /* PBXTextBookmark */;
12D3329E12C669090093EEDB /* PBXTextBookmark */ = 12D3329E12C669090093EEDB /* PBXTextBookmark */;
12D332A512C669090093EEDB /* PBXTextBookmark */ = 12D332A512C669090093EEDB /* PBXTextBookmark */;
12D332AA12C669090093EEDB /* PBXTextBookmark */ = 12D332AA12C669090093EEDB /* PBXTextBookmark */;
12D378BF12C7F8F8000F1C6A /* PBXTextBookmark */ = 12D378BF12C7F8F8000F1C6A /* PBXTextBookmark */;
12D378C012C7F8F8000F1C6A /* PBXTextBookmark */ = 12D378C012C7F8F8000F1C6A /* PBXTextBookmark */;
12D37D3212C7FAB8000F1C6A /* PBXTextBookmark */ = 12D37D3212C7FAB8000F1C6A /* PBXTextBookmark */;
12D6232512BA5F380032F367 /* PBXTextBookmark */ = 12D6232512BA5F380032F367 /* PBXTextBookmark */;
12D6232612BA5F380032F367 /* PBXTextBookmark */ = 12D6232612BA5F380032F367 /* PBXTextBookmark */;
12DA422E12C52DAC009281B3 /* PBXTextBookmark */ = 12DA422E12C52DAC009281B3 /* PBXTextBookmark */;
12DA422F12C52DAC009281B3 /* PBXTextBookmark */ = 12DA422F12C52DAC009281B3 /* PBXTextBookmark */;
12DA42D612C54017009281B3 /* PBXTextBookmark */ = 12DA42D612C54017009281B3 /* PBXTextBookmark */;
12DA42E912C54134009281B3 /* PBXTextBookmark */ = 12DA42E912C54134009281B3 /* PBXTextBookmark */;
12DCD38E12BBA5D600A20635 /* PBXTextBookmark */ = 12DCD38E12BBA5D600A20635 /* PBXTextBookmark */;
12DF661812C4DD28006DBA03 /* PBXTextBookmark */ = 12DF661812C4DD28006DBA03 /* PBXTextBookmark */;
12E17AE612B2BA9B00607D8E /* PBXTextBookmark */ = 12E17AE612B2BA9B00607D8E /* PBXTextBookmark */;
12E6FB5712BB458400C2A021 /* PBXTextBookmark */ = 12E6FB5712BB458400C2A021 /* PBXTextBookmark */;
12EFD98A12B510D9002A1712 /* PBXTextBookmark */ = 12EFD98A12B510D9002A1712 /* PBXTextBookmark */;
12EFE2FD12B51ED5002A1712 /* PBXTextBookmark */ = 12EFE2FD12B51ED5002A1712 /* PBXTextBookmark */;
12EFE65A12B547A7002A1712 /* PBXTextBookmark */ = 12EFE65A12B547A7002A1712 /* PBXTextBookmark */;
12EFE95E12B549B6002A1712 /* PBXTextBookmark */ = 12EFE95E12B549B6002A1712 /* PBXTextBookmark */;
12F1147112C7A41D0064D7EE /* PBXTextBookmark */ = 12F1147112C7A41D0064D7EE /* PBXTextBookmark */;
12F7FF0012BB9F3200949DEC /* PBXTextBookmark */ = 12F7FF0012BB9F3200949DEC /* PBXTextBookmark */;
12FC0E7512BB4B5200E9CFA8 /* PBXTextBookmark */ = 12FC0E7512BB4B5200E9CFA8 /* PBXTextBookmark */;
12FC0E9412BB65A800E9CFA8 /* PBXTextBookmark */ = 12FC0E9412BB65A800E9CFA8 /* PBXTextBookmark */;
12FE983612C7CEEB001B1702 /* PBXTextBookmark */ = 12FE983612C7CEEB001B1702 /* PBXTextBookmark */;
12FE984A12C7E11C001B1702 /* PBXTextBookmark */ = 12FE984A12C7E11C001B1702 /* PBXTextBookmark */;
12FE987912C7E281001B1702 /* PBXTextBookmark */ = 12FE987912C7E281001B1702 /* PBXTextBookmark */;
12FE987A12C7E281001B1702 /* PBXTextBookmark */ = 12FE987A12C7E281001B1702 /* PBXTextBookmark */;
};
sourceControlManager = 12C26D3712B0DDFC00AF7F4B /* Source Control */;
userBuildSettings = {
vrLen = 895;
vrLoc = 563;
};
121E9E4112C6A6F9000B6ED3 /* gma.c */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.c;
name = gma.c;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/modules/GraphicsEnabler/gma.c;
sourceTree = "<absolute>";
};
121EA43012B7B9DD002449B3 /* smbios_patcher.c */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.c;
path = /Users/slice/Projects/fakesmc/Chameleon/RC5m/i386/libsaio/smbios_patcher.c;
sourceTree = "<absolute>";
};
1236A82312BD6023003F1DA9 /* PBXTextBookmark */ = {
123C5F8D12C8AB2C00DFC2D4 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 1269260B12BC9B1B004D09F1 /* acpi_patcher.c */;
name = "acpi_patcher.c: 137";
rLen = 6;
rLoc = 3329;
fRef = 12C2907A12C8962900984F8F /* gui.c */;
name = "gui.c: 1957";
rLen = 16;
rLoc = 52932;
rType = 0;
vrLen = 588;
vrLoc = 2933;
vrLen = 882;
vrLoc = 52522;
};
123FA2D012C4E34C000DF4A6 /* gui.c */ = {
123C5F8E12C8AB2C00DFC2D4 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 123C5F8F12C8AB2C00DFC2D4 /* edid.h */;
rLen = 13;
rLoc = 5294;
rType = 0;
};
123C5F8F12C8AB2C00DFC2D4 /* edid.h */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.c;
name = gui.c;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/modules/GUI/gui.c;
lastKnownFileType = sourcecode.c.h;
name = edid.h;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/modules/Resolution/edid.h;
sourceTree = "<absolute>";
};
123C5F9012C8AB2C00DFC2D4 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 123C5F9112C8AB2C00DFC2D4 /* edid.h */;
name = "edid.h: 170";
rLen = 13;
rLoc = 5294;
rType = 0;
vrLen = 691;
vrLoc = 4662;
};
123C5F9112C8AB2C00DFC2D4 /* edid.h */ = {
isa = PBXFileReference;
name = edid.h;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/modules/Resolution/edid.h;
sourceTree = "<absolute>";
};
124C492812B8C915005AA276 /* Memory.c */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.c;
vrLen = 554;
vrLoc = 5486;
};
1265C97612C7554E0050D02E /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 121E9E4112C6A6F9000B6ED3 /* gma.c */;
name = "gma.c: 21";
rLen = 0;
rLoc = 423;
rType = 0;
vrLen = 1355;
vrLoc = 348;
};
1265C97712C7554E0050D02E /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 1265C97812C7554E0050D02E /* basic_definitions */;
name = "basic_definitions: 1";
rLen = 0;
rLoc = 0;
rType = 0;
vrLen = 366;
vrLoc = 1283;
};
1265C97812C7554E0050D02E /* basic_definitions */ = {
isa = PBXFileReference;
lastKnownFileType = text;
name = basic_definitions;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/modules/include/basic_definitions;
sourceTree = "<absolute>";
};
1265D11B12C778D90050D02E /* bitset */ = {
isa = PBXFileReference;
lastKnownFileType = text;
name = bitset;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/modules/include/bitset;
sourceTree = "<absolute>";
};
1267813012B7B13E00A25CED /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12B46E6D12B75631006C2B9C /* smbios_patcher.h */;
vrLen = 894;
vrLoc = 14871;
};
1269260B12BC9B1B004D09F1 /* acpi_patcher.c */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.c;
name = acpi_patcher.c;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/modules/ACPIPatcher/acpi_patcher.c;
sourceTree = "<absolute>";
};
1279BD7112BF4D8700612F62 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12D170AB12BF114400B78E60 /* cpu.c */;
name = "cpu.c: 13";
rLen = 0;
rLoc = 269;
rType = 0;
vrLen = 446;
vrLoc = 0;
};
1279BD7512BF4D8700612F62 /* ACPIPatcher.c */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.c;
path = /Users/slice/Projects/fakesmc/Chameleon/RC5m/i386/boot2/modules.c;
sourceTree = "<absolute>";
};
12A7376E12C854A600769789 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12D37D3612C7FAB8000F1C6A /* GUI_module.c */;
name = "GUI_module.c: 503";
rLen = 38;
rLoc = 11043;
rType = 0;
vrLen = 698;
vrLoc = 9616;
};
12A7377212C854A600769789 /* vbe.c */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.c;
name = vbe.c;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/libsaio/vbe.c;
sourceTree = "<absolute>";
};
12AB04BD12B663F5005A745F /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12B903AB12B2A00E00FE287A /* platform.h */;
vrLen = 400;
vrLoc = 3028;
};
12AD499312C7ADAB0082CD39 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12B4E87B12C7A7E6005BEB1E /* NVRAM.c */;
name = "NVRAM.c: 69";
rLen = 13;
rLoc = 1876;
rType = 0;
vrLen = 604;
vrLoc = 1490;
};
12AD499712C7ADAB0082CD39 /* modules.h */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.h;
name = modules.h;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/boot2/modules.h;
sourceTree = "<absolute>";
};
12AF764312BA614B003BBFD3 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12EFD98D12B510D9002A1712 /* revision */;
path = /Users/slice/Projects/fakesmc/Chameleon/RC5m/i386/libsaio/smbios_patcher.h;
sourceTree = "<absolute>";
};
12B4E87B12C7A7E6005BEB1E /* NVRAM.c */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.c;
name = NVRAM.c;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/modules/NVRAM/NVRAM.c;
sourceTree = "<absolute>";
};
12B903AB12B2A00E00FE287A /* platform.h */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.h;
vrLen = 665;
vrLoc = 3;
};
12C246F412C87C7C007E8339 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12A7377212C854A600769789 /* vbe.c */;
name = "vbe.c: 245";
rLen = 7;
rLoc = 7689;
rType = 0;
vrLen = 735;
vrLoc = 7282;
};
12C26D2E12B0DDF400AF7F4B /* ChamMek */ = {
isa = PBXExecutable;
activeArgIndices = (
path = /Users/slice/Projects/Chameleons/chameleon/branches/meklort/i386/modules/KernelPatcher/kernel_patcher.h;
sourceTree = "<absolute>";
};
12C2907612C8962900984F8F /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12D2040D12C890B700CE318D /* graphics.c */;
name = "graphics.c: 722";
rLen = 16;
rLoc = 20490;
rType = 0;
vrLen = 784;
vrLoc = 20063;
};
12C2907A12C8962900984F8F /* gui.c */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.c;
name = gui.c;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/modules/GUI/gui.c;
sourceTree = "<absolute>";
uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {903, 26559}}";
sepNavSelRange = "{52932, 16}";
sepNavVisRange = "{52522, 882}";
};
};
12C672F312C7C6BE0058B09B /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12AD499712C7ADAB0082CD39 /* modules.h */;
name = "modules.h: 19";
rLen = 13;
rLoc = 418;
rType = 0;
vrLen = 655;
vrLoc = 0;
};
12C672F512C7C6BE0058B09B /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12D332A912C669090093EEDB /* gui.h */;
name = "gui.h: 28";
rLen = 16;
rLoc = 572;
rType = 0;
vrLen = 540;
vrLoc = 0;
};
12C7009812B7BCE7006BD382 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12C7FC5C12B7BCD6006BD382 /* basic_definitions */;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/libsaio/cpu.c;
sourceTree = "<absolute>";
};
12D2040912C890B700CE318D /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12D4921B12C88EE6009975E9 /* boot.c */;
name = "boot.c: 657";
rLen = 12;
rLoc = 20109;
rType = 0;
vrLen = 821;
vrLoc = 19575;
};
12D2040D12C890B700CE318D /* graphics.c */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.c;
name = graphics.c;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/boot2/graphics.c;
sourceTree = "<absolute>";
};
12D3316C12C61CA80093EEDB /* bootstruct.h */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.h;
name = bootstruct.h;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/libsaio/bootstruct.h;
sourceTree = "<absolute>";
};
12D331A312C61E950093EEDB /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12D3316C12C61CA80093EEDB /* bootstruct.h */;
name = "bootstruct.h: 43";
rLen = 0;
rLoc = 1435;
rType = 0;
vrLen = 633;
vrLoc = 1150;
};
12D331A712C61E950093EEDB /* boot.h */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.h;
name = boot.h;
path = /System/Library/Frameworks/System.framework/PrivateHeaders/pexpert/pexpert/i386/boot.h;
sourceTree = "<absolute>";
};
12D331BE12C621050093EEDB /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12D331A712C61E950093EEDB /* boot.h */;
name = "boot.h: 97";
rLen = 12;
rLoc = 2853;
rType = 0;
vrLen = 922;
vrLoc = 2332;
};
12D331C012C621050093EEDB /* acpi_patcher.c */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.c;
name = acpi_patcher.c;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/modules/ACPIPatcher/acpi_patcher.c;
sourceTree = "<absolute>";
};
12D331CC12C622FE0093EEDB /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12D331C012C621050093EEDB /* acpi_patcher.c */;
name = "acpi_patcher.c: 683";
rLen = 15;
rLoc = 18749;
rType = 0;
vrLen = 1074;
vrLoc = 18246;
};
12D331EE12C63CB30093EEDB /* ati5.c */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.c;
name = ati5.c;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/modules/ATI5000Enabler/ati5.c;
sourceTree = "<absolute>";
};
12D3321612C63DF20093EEDB /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12D331EE12C63CB30093EEDB /* ati5.c */;
name = "ati5.c: 1";
rLen = 0;
rLoc = 0;
rType = 0;
vrLen = 608;
vrLoc = 0;
};
12D3321A12C63DF20093EEDB /* pci.h */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.h;
name = pci.h;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/libsaio/pci.h;
sourceTree = "<absolute>";
};
12D3324112C63EB70093EEDB /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12D3321A12C63DF20093EEDB /* pci.h */;
name = "pci.h: 107";
rLen = 0;
rLoc = 2409;
rType = 0;
vrLen = 1242;
vrLoc = 3316;
};
12D3329E12C669090093EEDB /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12D3329F12C669090093EEDB /* lazydylib1.c */;
name = "lazydylib1.c: 1";
rLen = 0;
rLoc = 0;
rType = 0;
vrLen = 216;
vrLoc = 0;
};
12D3329F12C669090093EEDB /* lazydylib1.c */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.c;
name = lazydylib1.c;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/modules/lazydylib1.c;
sourceTree = "<absolute>";
};
12D332A512C669090093EEDB /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12D332A612C669090093EEDB /* graphics.h */;
name = "graphics.h: 20";
rLen = 0;
rLoc = 352;
rType = 0;
vrLen = 962;
vrLoc = 122;
};
12D332A612C669090093EEDB /* graphics.h */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.h;
name = graphics.h;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/boot2/graphics.h;
sourceTree = "<absolute>";
};
12D332A912C669090093EEDB /* gui.h */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.h;
name = gui.h;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/modules/GUI/gui.h;
sourceTree = "<absolute>";
};
12D332AA12C669090093EEDB /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12D332AB12C669090093EEDB /* gma.h */;
name = "gma.h: 1";
rLen = 0;
rLoc = 0;
rType = 0;
vrLen = 352;
vrLoc = 0;
};
12D332AB12C669090093EEDB /* gma.h */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.h;
name = gma.h;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/modules/GraphicsEnabler/gma.h;
sourceTree = "<absolute>";
};
12D378B312C7F861000F1C6A /* modules.c */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.c;
name = modules.c;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/boot2/modules.c;
sourceTree = "<absolute>";
};
12D378BF12C7F8F8000F1C6A /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12D378B312C7F861000F1C6A /* modules.c */;
name = "modules.c: 231";
rLen = 17;
rLoc = 5480;
rType = 0;
vrLen = 723;
vrLoc = 5087;
};
12D378C012C7F8F8000F1C6A /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12D170AB12BF114400B78E60 /* cpu.c */;
name = "cpu.c: 13";
rLen = 0;
rLoc = 269;
rType = 0;
vrLen = 1002;
vrLoc = 2849;
};
12D378C312C7F8F8000F1C6A /* cpu.h */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.h;
name = cpu.h;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/libsaio/cpu.h;
sourceTree = "<absolute>";
};
12D37D3212C7FAB8000F1C6A /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12D378C312C7F8F8000F1C6A /* cpu.h */;
name = "cpu.h: 1";
rLen = 0;
rLoc = 0;
rType = 0;
vrLen = 802;
vrLoc = 2605;
};
12D37D3612C7FAB8000F1C6A /* GUI_module.c */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.c;
name = GUI_module.c;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/modules/GUI/GUI_module.c;
sourceTree = "<absolute>";
};
12D4921B12C88EE6009975E9 /* boot.c */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.c;
name = boot.c;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/boot2/boot.c;
sourceTree = "<absolute>";
};
12D6232512BA5F380032F367 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12078D9812BA5AF400A1C013 /* fake_efi.c */;
vrLen = 419;
vrLoc = 398;
};
12DA422E12C52DAC009281B3 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 123FA2D012C4E34C000DF4A6 /* gui.c */;
name = "gui.c: 715";
rLen = 13;
rLoc = 21602;
rType = 0;
vrLen = 717;
vrLoc = 21319;
12D928BE12C7C8EB00269820 /* Makefile */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.make;
name = Makefile;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/modules/ATI5000Enabler/Makefile;
sourceTree = "<absolute>";
};
12DA422F12C52DAC009281B3 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/libsaio/libsaio.h;
sourceTree = "<absolute>";
};
12DA42D612C54017009281B3 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12DA42D712C54017009281B3 /* edid.c */;
name = "edid.c: 258";
rLen = 0;
rLoc = 12049;
rType = 0;
vrLen = 904;
vrLoc = 5801;
};
12DA42D712C54017009281B3 /* edid.c */ = {
12DA42EA12C54134009281B3 /* edid.c */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.c;
name = edid.c;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/modules/Resolution/edid.c;
sourceTree = "<absolute>";
uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {1048, 5200}}";
sepNavSelRange = "{6812, 0}";
sepNavVisRange = "{8696, 1093}";
};
};
12DA42E912C54134009281B3 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12DA42EA12C54134009281B3 /* edid.c */;
name = "edid.c: 258";
rLen = 0;
rLoc = 6449;
rType = 0;
vrLen = 1256;
vrLoc = 5986;
};
12DA42EA12C54134009281B3 /* edid.c */ = {
isa = PBXFileReference;
name = edid.c;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/modules/Resolution/edid.c;
sourceTree = "<absolute>";
};
12DCD38E12BBA5D600A20635 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12F7FF0412BB9F3200949DEC /* ntfs_private.h */;
vrLen = 1189;
vrLoc = 0;
};
12DF661812C4DD28006DBA03 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12E415F412C4D87A005D21AE /* boot.c */;
name = "boot.c: 488";
rLen = 0;
rLoc = 14514;
rType = 0;
vrLen = 1168;
vrLoc = 16104;
};
12E17AE612B2BA9B00607D8E /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12B90A5712B2AE1300FE287A /* 915resolution.h */;
path = /Users/slice/Projects/fakesmc/Chameleon/RC5m/i386/libsaio/saio_types.h;
sourceTree = "<absolute>";
};
12E415F412C4D87A005D21AE /* boot.c */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.c;
name = boot.c;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/boot2/boot.c;
sourceTree = "<absolute>";
};
12E6FB4712BB438700C2A021 /* Makefile */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.make;
path = /Users/slice/Projects/fakesmc/Chameleon/RC5m/i386/libsaio/pci_root.c;
sourceTree = "<absolute>";
};
12F1147112C7A41D0064D7EE /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 1265D11B12C778D90050D02E /* bitset */;
name = "bitset: 1";
rLen = 0;
rLoc = 0;
rType = 0;
vrLen = 991;
vrLoc = 0;
};
12F7FF0012BB9F3200949DEC /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12FC25E812BB825300E9CFA8 /* drivers.c */;
path = /Users/slice/Projects/fakesmc/Chameleon/RC5m/i386/boot2/drivers.c;
sourceTree = "<absolute>";
};
12FE983612C7CEEB001B1702 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12D928BE12C7C8EB00269820 /* Makefile */;
name = "Makefile: 1";
rLen = 7;
rLoc = 14;
rType = 0;
vrLen = 736;
vrLoc = 0;
};
12FE984A12C7E11C001B1702 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12FE984B12C7E11C001B1702 /* Resolution.c */;
name = "Resolution.c: 13";
rLen = 14;
rLoc = 247;
rType = 0;
vrLen = 236;
vrLoc = 0;
};
12FE984B12C7E11C001B1702 /* Resolution.c */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.c;
name = Resolution.c;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/modules/Resolution/Resolution.c;
sourceTree = "<absolute>";
};
12FE985E12C7E1F7001B1702 /* 915resolution.c */ = {
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.c;
name = 915resolution.c;
path = /Users/slice/Projects/Chameleons/chameleon/branches/slice/i386/modules/Resolution/915resolution.c;
sourceTree = "<absolute>";
uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {1048, 11999}}";
sepNavSelRange = "{5145, 36}";
sepNavVisRange = "{4459, 1188}";
};
};
12FE987912C7E281001B1702 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12FE985E12C7E1F7001B1702 /* 915resolution.c */;
name = "915resolution.c: 419";
rLen = 0;
rLoc = 8937;
rType = 0;
vrLen = 670;
vrLoc = 2670;
};
12FE987A12C7E281001B1702 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 12DA42EA12C54134009281B3 /* edid.c */;
name = "edid.c: 190";
rLen = 13;
rLoc = 4618;
rType = 0;
vrLen = 987;
vrLoc = 4129;
};
8DD76FA90486AB0100D96B5E /* ChamMek */ = {
activeExec = 0;
executables = (
branches/slice/ChamMek/ChamMek.xcodeproj/slice.mode1v3
274274
275275
276276
277
278
279
280
277
281278
282279
283280
......
302299
303300
304301
305
302
306303
307304
308305
......
320317
321318
322319
323
320
324321
325322
326323
......
328325
329326
330327
331
328
332329
333330
334331
335
332
336333
337334
338335
......
383380
384381
385382
386
387383
388
389384
390385
391386
392387
393388
394
395
396389
397
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
398417
399418
400419
......
406425
407426
408427
409
428
410429
411
430
412431
413432
414433
415434
416
435
417436
418437
419438
......
426445
427446
428447
429
448
430449
431
450
432451
433452
434453
435454
436
455
437456
438457
439458
......
452471
453472
454473
455
474
456475
457
476
458477
459478
460479
......
592611
593612
594613
614
595615
596616
597617
598618
599
619
600620
601621
602622
......
673693
674694
675695
676
696
677697
678698
679699
......
795815
796816
797817
798
818
799819
800
801
802
803
804
820
821
822
823
824
805825
806826
807827
......
833853
834854
835855
836
856
837857
838858
839859
......
842862
843863
844864
845
865
846866
847867
848868
......
868888
869889
870890
871
891
872892
873893
874894
......
891911
892912
893913
894
895
914
915
896916
897917
898918
899919
900
920
901921
902922
903923
<key>PBXSmartGroupTreeModuleOutlineStateSelectionKey</key>
<array>
<array>
<integer>17</integer>
<integer>2</integer>
<integer>1</integer>
<integer>0</integer>
<integer>27</integer>
</array>
</array>
<key>PBXSmartGroupTreeModuleOutlineStateVisibleRectKey</key>
<real>164</real>
</array>
<key>RubberWindowFrame</key>
<string>264 184 1172 694 0 0 1440 878 </string>
<string>172 181 1172 694 0 0 1440 878 </string>
</dict>
<key>Module</key>
<string>PBXSmartGroupTreeModule</string>
<key>PBXProjectModuleGUID</key>
<string>1CE0B20306471E060097A5F4</string>
<key>PBXProjectModuleLabel</key>
<string>edid.c</string>
<string>edid.h</string>
<key>PBXSplitModuleInNavigatorKey</key>
<dict>
<key>Split0</key>
<key>PBXProjectModuleGUID</key>
<string>1CE0B20406471E060097A5F4</string>
<key>PBXProjectModuleLabel</key>
<string>edid.c</string>
<string>edid.h</string>
<key>_historyCapacity</key>
<integer>0</integer>
<key>bookmark</key>
<string>12DA42E912C54134009281B3</string>
<string>123C5F9012C8AB2C00DFC2D4</string>
<key>history</key>
<array>
<string>12121ED112B261EA00207E55</string>
<string>12FC0E9412BB65A800E9CFA8</string>
<string>12F7FF0012BB9F3200949DEC</string>
<string>12DCD38E12BBA5D600A20635</string>
<string>1236A82312BD6023003F1DA9</string>
<string>12679BA312BE822E00E3637F</string>
<string>1279BD7112BF4D8700612F62</string>
<string>128A97B712C2336000600556</string>
<string>128A97B812C2336000600556</string>
<string>128A9AF412C233CE00600556</string>
<string>1288318212C3608100EA4CB2</string>
<string>128835DC12C366AB00EA4CB2</string>
<string>12DF661812C4DD28006DBA03</string>
<string>12DA422E12C52DAC009281B3</string>
<string>12DA422F12C52DAC009281B3</string>
<string>12DA42D612C54017009281B3</string>
<string>12D331A312C61E950093EEDB</string>
<string>12D331BE12C621050093EEDB</string>
<string>12D331CC12C622FE0093EEDB</string>
<string>12D3321612C63DF20093EEDB</string>
<string>12D3324112C63EB70093EEDB</string>
<string>12D3329E12C669090093EEDB</string>
<string>12D332A512C669090093EEDB</string>
<string>12D332AA12C669090093EEDB</string>
<string>1265C97612C7554E0050D02E</string>
<string>1265C97712C7554E0050D02E</string>
<string>12F1147112C7A41D0064D7EE</string>
<string>12AD499312C7ADAB0082CD39</string>
<string>12C672F312C7C6BE0058B09B</string>
<string>12C672F512C7C6BE0058B09B</string>
<string>12FE983612C7CEEB001B1702</string>
<string>12FE984A12C7E11C001B1702</string>
<string>12FE987912C7E281001B1702</string>
<string>12FE987A12C7E281001B1702</string>
<string>12D378BF12C7F8F8000F1C6A</string>
<string>12D378C012C7F8F8000F1C6A</string>
<string>12D37D3212C7FAB8000F1C6A</string>
<string>12A7376E12C854A600769789</string>
<string>12C246F412C87C7C007E8339</string>
<string>12D2040912C890B700CE318D</string>
<string>12C2907612C8962900984F8F</string>
<string>123C5F8D12C8AB2C00DFC2D4</string>
<string>123C5F8E12C8AB2C00DFC2D4</string>
</array>
</dict>
<key>SplitCount</key>
<key>GeometryConfiguration</key>
<dict>
<key>Frame</key>
<string>{{0, 0}, {964, 466}}</string>
<string>{{0, 0}, {964, 379}}</string>
<key>RubberWindowFrame</key>
<string>264 184 1172 694 0 0 1440 878 </string>
<string>172 181 1172 694 0 0 1440 878 </string>
</dict>
<key>Module</key>
<string>PBXNavigatorGroup</string>
<key>Proportion</key>
<string>466pt</string>
<string>379pt</string>
</dict>
<dict>
<key>ContentConfiguration</key>
<key>GeometryConfiguration</key>
<dict>
<key>Frame</key>
<string>{{0, 471}, {964, 182}}</string>
<string>{{0, 384}, {964, 269}}</string>
<key>RubberWindowFrame</key>
<string>264 184 1172 694 0 0 1440 878 </string>
<string>172 181 1172 694 0 0 1440 878 </string>
</dict>
<key>Module</key>
<string>XCDetailModule</string>
<key>Proportion</key>
<string>182pt</string>
<string>269pt</string>
</dict>
</array>
<key>Proportion</key>
</array>
<key>TableOfContents</key>
<array>
<string>12DA42EB12C54134009281B3</string>
<string>123C5F9212C8AB2C00DFC2D4</string>
<string>1CE0B1FE06471DED0097A5F4</string>
<string>12DA42EC12C54134009281B3</string>
<string>123C5F9312C8AB2C00DFC2D4</string>
<string>1CE0B20306471E060097A5F4</string>
<string>1CE0B20506471E060097A5F4</string>
</array>
<integer>5</integer>
<key>WindowOrderList</key>
<array>
<string>1C530D57069F1CE1000CFCEE</string>
<string>12C26D3512B0DDFC00AF7F4B</string>
<string>/Users/slice/Projects/Chameleons/chameleon/branches/slice/ChamMek/ChamMek.xcodeproj</string>
</array>
<key>WindowString</key>
<string>264 184 1172 694 0 0 1440 878 </string>
<string>172 181 1172 694 0 0 1440 878 </string>
<key>WindowToolsV3</key>
<array>
<dict>
<key>TableOfContents</key>
<array>
<string>12C26D3512B0DDFC00AF7F4B</string>
<string>12DA42ED12C54134009281B3</string>
<string>123C5F8012C8AAFE00DFC2D4</string>
<string>1CD0528F0623707200166675</string>
<string>XCMainBuildResultsModuleGUID</string>
</array>
<key>TableOfContents</key>
<array>
<string>1CD10A99069EF8BA00B06720</string>
<string>12DA42DB12C54017009281B3</string>
<string>12FE988012C7E281001B1702</string>
<string>1C162984064C10D400B95A72</string>
<string>12DA42DC12C54017009281B3</string>
<string>12DA42DD12C54017009281B3</string>
<string>12DA42DE12C54017009281B3</string>
<string>12DA42DF12C54017009281B3</string>
<string>12DA42E012C54017009281B3</string>
<string>12FE988112C7E281001B1702</string>
<string>12FE988212C7E281001B1702</string>
<string>12FE988312C7E281001B1702</string>
<string>12FE988412C7E281001B1702</string>
<string>12FE988512C7E281001B1702</string>
</array>
<key>ToolbarConfiguration</key>
<string>xcode.toolbar.config.debugV3</string>
<key>PBXProjectModuleGUID</key>
<string>1CDD528C0622207200134675</string>
<key>PBXProjectModuleLabel</key>
<string>&lt;No Editor&gt;</string>
<string>915resolution.c</string>
<key>StatusBarVisibility</key>
<true/>
</dict>
<key>Frame</key>
<string>{{0, 0}, {1109, 510}}</string>
<key>RubberWindowFrame</key>
<string>80 62 1109 816 0 0 1440 878 </string>
<string>316 62 1109 816 0 0 1440 878 </string>
</dict>
<key>Module</key>
<string>PBXNavigatorGroup</string>
<key>Frame</key>
<string>{{0, 515}, {1109, 260}}</string>
<key>RubberWindowFrame</key>
<string>80 62 1109 816 0 0 1440 878 </string>
<string>316 62 1109 816 0 0 1440 878 </string>
</dict>
<key>Module</key>
<string>PBXProjectFindModule</string>
<key>TableOfContents</key>
<array>
<string>1C530D57069F1CE1000CFCEE</string>
<string>12DA422A12C52D7F009281B3</string>
<string>12DA422B12C52D7F009281B3</string>
<string>123C5F8912C8AAFE00DFC2D4</string>
<string>123C5F8A12C8AAFE00DFC2D4</string>
<string>1CDD528C0622207200134675</string>
<string>1CD0528E0623707200166675</string>
</array>
<key>WindowString</key>
<string>80 62 1109 816 0 0 1440 878 </string>
<string>316 62 1109 816 0 0 1440 878 </string>
<key>WindowToolGUID</key>
<string>1C530D57069F1CE1000CFCEE</string>
<key>WindowToolIsVisible</key>
branches/slice/TODO
11
22
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
330
431
532
......
6895
6996
7097
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
TODO List for Chameleon Boot Loader
====================================
27.12.2010 Slice
- numerous errors, mistakes, reservation, non-finished codes... Spaghetti sources!
- kernelcache never used (adler32 is wrong?)
- more careful CPU detection
- readNVRAM is wrong
- graphicsEnabler for X3100 is not good
- ATI Radeon enabler is not perfect
16.12.2010 Slice
- I want to implement NVRAM for use with nvram, bless, StartupDisk.prefPane, and with VoodooHDA in future.
1. Write a script rc.shutdown.local and place it into /etc
<--------------
#!/bin/sh
nvram -p >nvram.inf
echo Hello! NVRAM is saved!
-------------->
2. Read and interpret nvram.inf to place variables into /options node
3. Prepare some other boot-time variables in the node (platform-uuid, BootOrder, FirmwareFeatures, efi-boot-device and so on)
4. Implement boot flag -c to clear growing amount of nvram savings.
- ATI GraphicsEnabler is not perfect.
1. ATY,SCLK, ATY,MCLK, ATY,RefCLK must be read from VideoBIOS but not constant values. Excluded!
2. FakeDeviceID needed
- Intel GraphicsEnabler needs to be corrected by calculating LCD info. Done!
--------------------------------------------------------------------------------------------------------
- Integrate Prasys current work on options and quick shortcut modified version of 18seven
- Add autodetection of efistring algorythm to enabke graphics enabler to beanbled by default while not conflicting whith other efi string overriden content
- Case unsensitive parsing for the bootConfig options:
should help the common/novice user to setup more easily.
16.12.2010 Slice
- I want to implement NVRAM for use with nvram, bless, StartupDisk.prefPane, and with VoodooHDA in future.
1. Write a script rc.shutdown.local and place it into /etc
<--------------
#!/bin/sh
nvram -p >nvram.inf
echo Hello! NVRAM is saved!
-------------->
2. Read and interpret nvram.inf to place variables into /options node
3. Prepare some other boot-time variables in the node (platform-uuid, BootOrder, FirmwareFeatures, efi-boot-device and so on)
4. Implement boot flag -c to clear growing amount of nvram savings.
- ATI GraphicsEnabler is not perfect.
1. ATY,SCLK, ATY,MCLK, ATY,RefCLK must be read from VideoBIOS but not constant values.
2. FakeDeviceID needed
- Intel GraphicsEnabler needs to be corrected by calculating LCD info.
branches/slice/CHANGES
11
2
3
4
5
6
7
28
39
410
Slice:
rev692
- add ATI 5xxx Enabler module on Kabyl's sources (not checked)
- corrections to open standards: EFI, UUID, SMBIOS, ACPI, EDID
- getResolution from BIOS EDID now works
- exclude Intel BIOS from patch, because it has other structure
rev673
- not agree with claim "Removed obsolete -f option, use -x instead"
-f - ignore kernel cache (rebuild it)
-x - boot with restricted set of drivers (without Graphics card etc.)

Archive Download the corresponding diff file

Revision: 693