Chameleon

Chameleon Commit Details

Date:2017-08-13 13:18:38 (6 years 11 months ago)
Author:ErmaC
Commit:2895
Parents: 2894
Message:typo only
Changes:
M/branches/ErmaC/Enoch/i386/libsaio/gfx_helper.c
M/branches/ErmaC/Enoch/i386/libsaio/gma.c

File differences

branches/ErmaC/Enoch/i386/libsaio/gma.c
2929
3030
3131
32
32
3333
3434
3535
http://forum.voodooprojects.org/index.php/topic,1029.0.html
Original Intel HDx000 code from valv
Intel Ivy Bridge, Haswell and Broadwell code from ErmaC:
Intel Ivy Bridge, Haswell, Broadwell and Skylake code from ErmaC:
- http://www.insanelymac.com/forum/topic/288241-intel-hd4000-inject-aaplig-platform-id/
*/
branches/ErmaC/Enoch/i386/libsaio/gfx_helper.c
1212
1313
1414
15
15
1616
1717
1818
......
4949
5050
5151
52
52
53
54
55
56
57
58
59
60
61
62
63
64
5365
5466
5567
......
109121
110122
111123
124
112125
113126
114127
......
150163
151164
152165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
153201
/*
NVIDIA card injection usage e.g (to be placed in the boot.plist):
NVIDIA and ATI card injection usage e.g (to be placed in the boot.plist):
<key>NVIDIA</key>
<array>
.
.
</array>
<key>ATI</key>
<array>
<dict>
<key>Chipset Name</key>
<string>ATI RADEON HD6670</string>
<key>IOPCIPrimaryMatch</key>
<string>0x10026758</string>
<key>VRam Size</key>
<string>2048</string>
</dict>
</array>
*/
cardList_t *cardList = NULL;
{
unsigned inti, count;
TagPtrNVDIATag;
TagPtrATITag;
char*model_name = NULL;
char*match_id = NULL;
char*sub_id = NULL;
}
}
}
if ((ATITag = XMLCastArray(XMLGetProperty(bootInfo->chameleonConfig.dictionary, (const char *)"ATI"))))
{
count = XMLTagCount(ATITag);
for (i=0; i<count; i++)
{
TagPtr element = XMLGetElement( NVDIATag, i );
if (element)
{
match_id = XMLCastString(XMLGetProperty(element, (const char*)"IOPCIPrimaryMatch")); //device-id
sub_id = XMLCastString(XMLGetProperty(element, (const char*)"IOPCISubDevId")); //sub device-id
model_name = XMLCastString(XMLGetProperty(element, (const char*)"Chipset Name"));
vram_size = XMLCastString(XMLGetProperty(element, (const char*)"VRam Size"));
if (match_id)
{
dev_id = strtoul(match_id, NULL, 16);
}
if (sub_id)
{
subdev_id = strtoul(sub_id, NULL, 16);
}
if (vram_size)
{
VramSize = strtoul(vram_size, NULL, 10);
}
add_card(model_name, dev_id, subdev_id, VramSize);
}
}
}
}

Archive Download the corresponding diff file

Revision: 2895