Chameleon

Chameleon Commit Details

Date:2012-07-20 03:40:51 (6 years 11 months ago)
Author:ErmaC
Commit:2019
Parents: 2018
Message:Merge Intel Graphics 4000 device IDs from Chimera (Commit 1999).
Changes:
M/branches/ErmaC/Trunk/i386/libsaio/pci.c
M/branches/ErmaC/Trunk/CHANGES
M/branches/ErmaC/Trunk/i386/libsaio/pci.h
M/branches/ErmaC/Trunk/i386/libsaio/gma.c

File differences

branches/ErmaC/Trunk/i386/libsaio/gma.c
11
22
33
4
5
46
57
68
......
139141
140142
141143
144
145
146
147
142148
143149
144150
......
292298
293299
294300
301
302
303
304
305
306
307
308
309
310
295311
296312
297313
/*
Original patch by Nawcom
http://forum.voodooprojects.org/index.php/topic,1029.0.html
Original Intel HDx000 code from valv
*/
#include "libsa.h"
{ 0x80860116, "Intel HD Graphics 3000 Mobile"},
{ 0x80860122, "Intel HD Graphics 3000"},
{ 0x80860126, "Intel HD Graphics 3000 Mobile"},
{ 0x80860152, "Intel HD Graphics 2500"},
{ 0x80860156, "Intel HD Graphics 2500 Mobile"},
{ 0x80860162, "Intel HD Graphics 4000"},
{ 0x80860166, "Intel HD Graphics 4000 Mobile"},
};
char *get_gma_model(uint32_t id) {
devprop_add_value(device, "AAPL,tbl-info",HD3000_tbl_info, 18);
devprop_add_value(device, "AAPL,os-info",HD3000_os_info, 20);
}
else if (model == (char *)"Intel HD Graphics 4000")
{
devprop_add_value(device, "built-in",&BuiltIn, 1);
devprop_add_value(device, "class-code",ClassFix, 4);
device_id = 0x00000166;// Inject a valid mobile GPU device id instead of patching kexts
devprop_add_value(device, "device-id",(uint8_t*)&device_id, sizeof(device_id));
devprop_add_value(device, "hda-gfx",(uint8_t *)"onboard-1", 10);
devprop_add_value(device, "AAPL,tbl-info",HD3000_tbl_info, 18);
devprop_add_value(device, "AAPL,os-info",HD3000_os_info, 20);
}
stringdata = malloc(sizeof(uint8_t) * string->length);
if (!stringdata)
branches/ErmaC/Trunk/i386/libsaio/pci.c
9696
9797
9898
99
10099
101100
102101
......
203202
204203
205204
206
205
207206
208207
209208
new->vendor_id= id & 0xffff;
new->device_id= (id >> 16) & 0xffff;
new->subsys_id.subsys_id= pci_config_read32(pci_addr, PCI_SUBSYSTEM_VENDOR_ID);
new->subclass= pci_config_read8(pci_addr, PCI_CLASS_PROG);
new->class_id= pci_config_read16(pci_addr, PCI_CLASS_DEVICE);
new->parent= start;
{
printf("%02x:%02x.%x [%04x%02x] [%04x:%04x] (subsys [%04x:%04x]):: %s\n",
current->dev.bits.bus, current->dev.bits.dev, current->dev.bits.func,
current->class_id, current->subclass, current->vendor_id, current->device_id,
current->class_id, current->vendor_id, current->device_id,
current->subsys_id.subsys.vendor_id, current->subsys_id.subsys.device_id,
get_pci_dev_path(current));
dump_pci_dt(current->children);
branches/ErmaC/Trunk/i386/libsaio/pci.h
3535
3636
3737
38
39
38
4039
4140
4241
} subsys;
uint32_tsubsys_id;
}subsys_id;
uint8_trevision;
uint8_tsubclass;
uint16_tclass_id;
struct pci_dt_t*parent;
branches/ErmaC/Trunk/CHANGES
1
12
23
34
- Merge Intel Graphics 4000 device IDs from Chimera (Commit 1999).
- Merge more cparm's (security, stability, bugs fixes) improvements from his branch.
http://forge.voodooprojects.org/p/chameleon/source/tree/HEAD/branches/cparm
- Merge "Restart fix Removed" from trunk r1992 by Slice's patch

Archive Download the corresponding diff file

Revision: 2019