Chameleon

Chameleon Commit Details

Date:2011-05-31 23:00:31 (12 years 9 months ago)
Author:Azimutz
Commit:931
Parents: 930
Message:- Replacing some more getc by getchar, needed for successful compilation. This needs more verification. - Temporarily ?? adding dumpPhysAddr() function, needed for DEBUG_SPD. Doing this more as a reminder.
Changes:
M/branches/azimutz/Cleancut/i386/modules/IntelGraphicsEnabler/gma.c
M/branches/azimutz/Cleancut/i386/libsaio/platform.c
M/branches/azimutz/Cleancut/i386/libsaio/spd.c
M/branches/azimutz/Cleancut/i386/modules/ATiGraphicsEnabler/ati.c
M/branches/azimutz/Cleancut/i386/modules/Resolution/915resolution.c

File differences

branches/azimutz/Cleancut/i386/libsaio/spd.c
344344
345345
346346
347
347348
348
349
349350
350351
351352
slot->SerialNo);
#if DEBUG_SPD
// prevously located on mem.c; temporarily on platform.c now
dumpPhysAddr("spd content: ", slot->spd, spd_size);
getc();
getchar();
#endif
}
branches/azimutz/Cleancut/i386/libsaio/platform.c
2626
2727
2828
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
2973
3074
3175
PlatformInfo_t Platform;
pci_dt_t * dram_controller_dev = NULL;
//Azi: temporarily placing this here; from removed mem.c, needed by DEBUG_PLATFORM
// check if replaceable by other or completely remove?? whatever...
#define DC(c) (c >= 0x20 && c < 0x7f ? (char) c : '.')
#define STEP 16
void dumpPhysAddr(const char * title, void * a, int len)
{
int i,j;
u_int8_t* ad = (u_int8_t*) a;
char buffer[80];
char str[16];
if(ad==NULL) return;
printf("%s addr=0x%08x len=%04d\n",title ? title : "Dump of ", a, len);
printf("Ofs-00-01-02-03-04-05-06-07-08-09-0A-0B-0C-0D-0E-0F ASCII\n");
i = (len/STEP)*STEP;
for (j=0; j < i; j+=STEP)
{
printf("%02x: %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c\n",
j,
ad[j], ad[j+1], ad[j+2], ad[j+3] , ad[j+4], ad[j+5], ad[j+6], ad[j+7],
ad[j+8], ad[j+9], ad[j+10], ad[j+11] , ad[j+12], ad[j+13], ad[j+14], ad[j+15],
DC(ad[j]), DC(ad[j+1]), DC(ad[j+2]), DC(ad[j+3]) , DC(ad[j+4]), DC(ad[j+5]), DC(ad[j+6]), DC(ad[j+7]),
DC(ad[j+8]), DC(ad[j+9]), DC(ad[j+10]), DC(ad[j+11]) , DC(ad[j+12]), DC(ad[j+13]), DC(ad[j+14]), DC(ad[j+15])
);
}
if (len%STEP==0) return;
sprintf(buffer,"%02x:", i);
for (j=0; j < STEP; j++) {
if (j<(len%STEP))
sprintf(str, " %02x", ad[i+j]);
else
strcpy(str, " " );
strncat(buffer, str, sizeof(buffer));
}
strncat(buffer," ", sizeof(buffer));
for (j=0; j < (len%STEP); j++) {
sprintf(str, "%c", DC(ad[i+j]));
strncat(buffer, str, sizeof(buffer));
}
printf("%s\n",buffer);
}
/** Return if a CPU feature specified by feature is activated (true) or not (false) */
bool platformCPUFeature(uint32_t feature)
{
branches/azimutz/Cleancut/i386/modules/Resolution/915resolution.c
182182
183183
184184
185
185
186186
187187
188188
if((id & 0x0000FFFF) == 0x00008086) // Intel chipset
{
//printf("Unknown chipset 0x%llX, please email id to meklort@gmail.com", id);
//getc();
//getchar();
type = CT_UNKNOWN_INTEL;
//type = CT_UNKNOWN;
branches/azimutz/Cleancut/i386/modules/IntelGraphicsEnabler/gma.c
9999
100100
101101
102
102
103103
104104
105105
......
142142
143143
144144
145
145
146146
147147
148148
{
printf("Failed initializing dev-prop string dev-entry, press any key...\n");
getc();
getchar();
return false;
}
if(!stringdata)
{
printf("no stringdata press a key...\n");
getc();
getchar();
return false;
}
branches/azimutz/Cleancut/i386/modules/ATiGraphicsEnabler/ati.c
658658
659659
660660
661
661
662662
663663
664664
device = devprop_add_device(string, devicepath);
if (!device) {
printf("Failed initializing dev-prop string dev-entry, press any key...\n");
getc();
getchar();
return false;
}

Archive Download the corresponding diff file

Revision: 931