Chameleon

Chameleon Commit Details

Date:2012-06-14 17:45:52 (2 years 3 months ago)
Author:MacMan
Commit:1999
Parents: 1998
Message:Chimera 1.10.0: Added Intel HD Graphics 4000 device IDs, added new device IDs from the NVIDIA Linux 295.59 driver and additional AMD device IDs.
Changes:
M/branches/Chimera/Release/version
M/branches/Chimera/Release/i386/libsaio/nvidia.c
M/branches/Chimera/Release/i386/libsaio/ati.c
M/branches/Chimera/Release/i386/libsaio/gma.c

File differences

branches/Chimera/Release/version
1
1
1.9.2
1.10.0
branches/Chimera/Release/i386/libsaio/gma.c
119119
120120
121121
122
123122
124123
125124
......
134133
135134
136135
136
137
138
139
137140
138141
139142
......
285288
286289
287290
291
292
293
294
295
296
297
298
299
300
288301
289302
290303
{ 0x8086A012, "Mobile GMA3150"},
{ 0x80862772, "Desktop GMA950"},
{ 0x80862776, "Desktop GMA950"},
//{ 0x8086A001, "Desktop GMA3150" },
{ 0x8086A001, "Mobile GMA3150"},
{ 0x8086A002, "Desktop GMA3150" },
{ 0x80862A02, "GMAX3100"},
{ 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/Chimera/Release/i386/libsaio/nvidia.c
240240
241241
242242
243
243
244244
245245
246246
......
271271
272272
273273
274
275
276
277
274278
275279
276280
277281
282
278283
279284
280285
......
379384
380385
381386
387
388
389
382390
383391
384392
......
650658
651659
652660
661
653662
654663
655664
......
748757
749758
750759
751
752
753760
754761
755762
756
757763
758764
759765
......
761767
762768
763769
764
770
765771
766
767
768772
769773
770774
771775
772776
773777
778
774779
780
775781
776782
777783
778784
785
779786
780787
781788
......
786793
787794
788795
796
789797
790798
791
792
793799
794800
795801
796
797802
798803
799804
800
801805
802806
803807
804
805808
806809
807
808
809810
810811
811812
......
819820
820821
821822
823
824
822825
823826
824827
......
831834
832835
833836
837
838
839
840
834841
842
843
844
845
846
847
835848
849
836850
851
837852
838853
839854
......
841856
842857
843858
859
844860
861
845862
846863
847864
865
848866
849867
850868
851869
870
871
872
852873
853874
854
875
855876
856877
857878
858879
859
860880
861881
862882
......
868888
869889
870890
871
872891
873892
874893
......
886905
887906
888907
908
889909
890910
891911
892912
893913
914
915
894916
895917
896918
......
902924
903925
904926
927
928
929
930
905931
906932
907933
934
935
908936
909937
910938
939
911940
912941
913942
914943
944
915945
916946
917947
918948
949
950
951
952
953
919954
920955
921956
......
13231358
13241359
13251360
1361
13261362
13271363
13281364
......
13311367
13321368
13331369
1370
1371
1372
13341373
13351374
13361375
{ 0x10DE0294, "GeForce 7950 GX2" },
{ 0x10DE0295, "GeForce 7950 GT" },
{ 0x10DE0298, "GeForce Go 7900 GS" },
{ 0x10DE0299, "GeForce Go 7900 GTX" },
{ 0x10DE0299, "Quadro NVS 510M" },
{ 0x10DE029A, "Quadro FX 2500M" },
{ 0x10DE029B, "Quadro FX 1500M" },
{ 0x10DE029C, "Quadro FX 5500" },
{ 0x10DE031B, "GeForce FX Go5650" },
{ 0x10DE031C, "Quadro FX Go700" },
// 0320 - 032F
{ 0x10DE0320, "GeForce FX 5200" },
{ 0x10DE0321, "GeForce FX 5200 Ultra" },
{ 0x10DE0322, "GeForce FX 5200" },
{ 0x10DE0323, "GeForce FX 5200 LE" },
{ 0x10DE0324, "GeForce FX Go5200" },
{ 0x10DE0325, "GeForce FX Go5250" },
{ 0x10DE0326, "GeForce FX 5500" },
{ 0x10DE0328, "GeForce FX Go5200 32M/64M" },
{ 0x10DE0329, "GeForce FX Go5200" },
{ 0x10DE032A, "Quadro NVS 55/280 PCI" },
{ 0x10DE032B, "Quadro FX 500/600 PCI" },
{ 0x10DE032C, "GeForce FX Go53xx Series" },
// 0510 - 051F
// 0520 - 052F
// 0530 - 053F
{ 0x10DE0530, "GeForce 7190M / nForce 650M" },
{ 0x10DE0531, "GeForce 7150M / nForce 630M" },
{ 0x10DE0533, "GeForce 7000M / nForce 610M" },
{ 0x10DE053A, "GeForce 7050 PV / nForce 630a" },
{ 0x10DE053B, "GeForce 7050 PV / nForce 630a" },
{ 0x10DE053E, "GeForce 7025 / nForce 630a" },
{ 0x10DE0A2C, "NVS 5100M" },
{ 0x10DE0A2D, "GeForce GT 320M" },
// 0A30 - 0A3F
{ 0x10DE0A32, "GeForce GT 415" },
{ 0x10DE0A34, "GeForce GT 240M" },
{ 0x10DE0A35, "GeForce GT 325M" },
{ 0x10DE0A38, "Quadro 400" },
// 0DB0 - 0DBF
// 0DC0 - 0DCF
{ 0x10DE0DC0, "GeForce GT 440" },
{ 0x10DE0DC1, "D12-P1-35" },
{ 0x10DE0DC2, "D12-P1-35" },
{ 0x10DE0DC4, "GeForce GTS 450" },
{ 0x10DE0DC5, "GeForce GTS 450" },
{ 0x10DE0DC6, "GeForce GTS 450" },
{ 0x10DE0DCA, "GF10x" },
{ 0x10DE0DCD, "GeForce GT 555M" },
{ 0x10DE0DCE, "GeForce GT 555M" },
// 0DD0 - 0DDF
{ 0x10DE0DD2, "GeForce GT 445M" },
{ 0x10DE0DD3, "GeForce GT 435M" },
{ 0x10DE0DD6, "GeForce GT 550M" },
{ 0x10DE0DD8, "Quadro 2000" },
{ 0x10DE0DD8, "Quadro 2000 / Quadro 2000D" },
{ 0x10DE0DDA, "Quadro 2000M" },
{ 0x10DE0DDE, "GF106-ES" },
{ 0x10DE0DDF, "GF106-INT" },
// 0DE0 - 0DEF
{ 0x10DE0DE0, "GeForce GT 440" },
{ 0x10DE0DE1, "GeForce GT 430" },
{ 0x10DE0DE2, "GeForce GT 420" },
{ 0x10DE0DE4, "GeForce GT 520" },
{ 0x10DE0DE5, "GeForce GT 530" },
{ 0x10DE0DE8, "GeForce GT 620M" },
{ 0x10DE0DE9, "GeForce GT 630M" },
{ 0x10DE0DEA, "GeForce 610M" },
{ 0x10DE0DEB, "GeForce GT 555M" },
{ 0x10DE0DEC, "GeForce GT 525M" },
{ 0x10DE0DED, "GeForce GT 520M" },
{ 0x10DE0DEE, "GeForce GT 415M" },
{ 0x10DE0DEF, "NVS 5400M" },
// 0DF0 - 0DFF
{ 0x10DE0DF0, "GeForce GT 425M" },
{ 0x10DE0DF1, "GeForce GT 420M" },
{ 0x10DE0DF6, "GeForce GT 550M" },
{ 0x10DE0DF7, "GeForce GT 520M" },
{ 0x10DE0DF8, "Quadro 600" },
{ 0x10DE0DF9, "Quadro 500M" },
{ 0x10DE0DFA, "Quadro 1000M" },
{ 0x10DE0DFC, "NVS 5200M" },
{ 0x10DE0DFE, "GF108 ES" },
{ 0x10DE0DFF, "GF108 INT" },
// 0E00 - 0E0F
// 0E10 - 0E1F
// 0E20 - 0E2F
{ 0x10DE0E21, "D12U-25" },
{ 0x10DE0E22, "GeForce GTX 460" },
{ 0x10DE0E23, "GeForce GTX 460 SE" },
{ 0x10DE0E24, "GeForce GTX 460" },
{ 0x10DE0E25, "D12U-50" },
// 0E30 - 0E3F
{ 0x10DE0E30, "GeForce GTX 470M" },
{ 0x10DE0E31, "GeForce GTX 485M" },
{ 0x10DE0E38, "GF104GL" },
{ 0x10DE0E3A, "Quadro 3000M" },
{ 0x10DE0E3B, "Quadro 4000M" },
{ 0x10DE0E3E, "GF104-ES" },
{ 0x10DE0E3F, "GF104-INT" },
// 0E40 - 0E4F
// 0E50 - 0E5F
// 0E60 - 0E6F
// 0EE0 - 0EEF
// 0EF0 - 0EFF
// 0F00 - 0F0F
{ 0x10DE0F00, "GeForce GT 630" },
{ 0x10DE0F01, "GeForce GT 620" },
// 0F10 - 0F1F
// 0F20 - 0F2F
// 0F30 - 0F3F
// 0FA0 - 0FAF
// 0FB0 - 0FBF
// 0FC0 - 0FCF
{ 0x10DE0FC0, "GeForce GT 640" },
{ 0x10DE0FC1, "GeForce GT 640" },
{ 0x10DE0FC2, "GeForce GT 630" },
{ 0x10DE0FCE, "GeForce GT 640M LE" },
// 0FD0 - 0FDF
{ 0x10DE0FD1, "GeForce GT 650M" },
{ 0x10DE0FD2, "GeForce GT 640M" },
{ 0x10DE0FD3, "GeForce GT 640M LE" },
{ 0x10DE0FD4, "GeForce GTX 660M" },
{ 0x10DE0FD5, "GeForce GT 650M" },
{ 0x10DE0FD8, "GeForce GT 640M" },
// 0FE0 - 0FEF
{ 0x10DE0FE0, "GeForce GTX 660M" },
// 0FF0 - 0FFF
{ 0x10DE0FFF, "Quadro 410" },
// 1000 - 100F
// 1010 - 101F
// 1020 - 102F
// 1040 - 104F
{ 0x10DE1040, "GeForce GT 520" },
{ 0x10DE1042, "GeForce 510" },
{ 0x10DE1048, "GeForce 605" },
{ 0x10DE1049, "GeForce GT 620" },
{ 0x10DE104A, "GeForce GT 610" },
// 1050 - 105F
{ 0x10DE1050, "GeForce GT 520M" },
{ 0x10DE1051, "GeForce GT 520MX" },
{ 0x10DE1052, "GeForce GT 520M" },
{ 0x10DE1054, "GeForce GT 410M" },
{ 0x10DE1055, "GeForce 410M" },
{ 0x10DE1056, "Quadro NVS 4200M" },
{ 0x10DE1057, "Quadro NVS 4200M" },
{ 0x10DE1058, "GeForce 610M" },
{ 0x10DE1059, "GeForce 610M" },
{ 0x10DE105A, "GeForce 610M" },
// 1060 - 106F
// 1070 - 107F
{ 0x10DE107F, "NVIDIA GF119-ES" },
{ 0x10DE107D, "NVS 310" },
// 1080 - 108F
{ 0x10DE1080, "GeForce GTX 580" },
{ 0x10DE1081, "GeForce GTX 570" },
{ 0x10DE1082, "GeForce GTX 560 Ti" },
{ 0x10DE1083, "D13U" },
{ 0x10DE1084, "GeForce GTX 560" },
{ 0x10DE1086, "GeForce GTX 570" },
{ 0x10DE1087, "GeForce GTX 560 Ti 448" },
// { 0x10DE1091, 0x0974, "Tesla X2090" },
{ 0x10DE1094, "Tesla M2075" },
{ 0x10DE1096, "Tesla C2075" },
{ 0x10DE1098, "D13U" },
{ 0x10DE109A, "Quadro 5010M" },
{ 0x10DE109B, "Quadro 7000" },
// 10A0 - 10AF
// 1120 - 112F
// 1130 - 113F
// 1140 - 114F
{ 0x10DE1140, "GeForce GT 620M / GT 630M" },
// 1150 - 115F
// 1160 - 116F
// 1170 - 117F
// 1180 - 118F
{ 0x10DE1180, "GeForce GTX 680" },
{ 0x10DE1188, "GeForce GTX 690" },
{ 0x10DE1189, "GeForce GTX 670" },
// 1190 - 119F
// 11A0 - 11AF
// 11B0 - 11BF
{ 0x10DE1200, "GeForce GTX 560 Ti" },
{ 0x10DE1201, "GeForce GTX 560" },
{ 0x10DE1203, "GeForce GTX 460 SE v2" },
{ 0x10DE1205, "GeForce GTX 460 v2" },
{ 0x10DE1206, "GeForce GTX 555" },
{ 0x10DE1207, "GeForce GT 645" },
{ 0x10DE1208, "GeForce GTX 560 SE" },
// 1210 - 121F
{ 0x10DE1210, "GeForce GTX 570M" },
{ 0x10DE1211, "GeForce GTX 580M" },
{ 0x10DE1212, "GeForce GTX 675M" },
{ 0x10DE1213, "GeForce GTX 670M" },
// 1220 - 122F
// 1230 - 123F
// 1240 - 124F
{ 0x10DE1240, "GeForce GT 620M" },
{ 0x10DE1241, "GeForce GT 545" },
{ 0x10DE1243, "GeForce GT 545" },
{ 0x10DE1244, "GeForce GTX 550 Ti" },
{ 0x10DE1245, "GeForce GTS 450" },
{ 0x10DE1246, "GeForce GTX 550M" },
{ 0x10DE1247, "GeForce GT 555M / GT 635M" },
// { 0x10DE1247, 0x212A, "GT 635M" },
// { 0x10DE1247, 0x212B, "GT 635M" },
// { 0x10DE1247, 0x212C, "GT 635M" },
{ 0x10DE1248, "GeForce GT 555M / GT 635M" },
{ 0x10DE124B, "GeForce GT 640" },
{ 0x10DE1249, "GeForce GTS 450" },
{ 0x10DE124B, "GeForce GT 640" },
{ 0x10DE124D, "GeForce GT 555M / GT 635M" },
// 1250 - 125F
{ 0x10DE1251, "GeForce GTX 560M" },
// 1260 - 126F
case 0x0649: // 9600M GT
vram_size = 512*1024*1024; // 512 MB
break;
case 0x0A65: // GT 210
case 0x0DE0: // GT 440
case 0x0DE1: // GT 430
case 0x0DE2: // GT 420
case 0x0DF5: // GT 525M
vram_size = 1024*1024*1024; // 1 GB
break;
case 0x1251: // GTX 560M
vram_size = 1536*1024*1024; // 1.5 GB
break;
default:
break;
}
branches/Chimera/Release/i386/libsaio/ati.c
493493
494494
495495
496
497
496498
497499
498500
......
554556
555557
556558
559
560
557561
558562
559563
......
568572
569573
570574
575
576
571577
572578
573579
......
577583
578584
579585
580
586
587
581588
582589
583590
......
639646
640647
641648
649
642650
643651
644652
{ 0x68A1,0x1522103C, CHIP_FAMILY_CYPRESS,"ATI Mobility Radeon HD 5850",kHoolock},
{ 0x68A8,0x050E1025, CHIP_FAMILY_CYPRESS,"AMD Radeon HD 6850M",kUakari},
{ 0x68B8,0x25431002, CHIP_FAMILY_JUNIPER,"ATI Radeon HD 5770",kVervet},
{ 0x68B8,0x00CF106B, CHIP_FAMILY_JUNIPER,"ATI Radeon HD 5770",kHoolock},
{ 0x68D8,0x301017AF, CHIP_FAMILY_REDWOOD,"ATI Radeon HD 5730",kNull},
{ 0x68D8,0x301117AF, CHIP_FAMILY_REDWOOD,"ATI Radeon HD 5690",kNull},
{ 0x68D9,0x30501682, CHIP_FAMILY_REDWOOD,"ATI Radeon HD 5570",kEulemur},
{ 0x68D9,0x301017AF, CHIP_FAMILY_REDWOOD,"ATI Radeon HD 5630",kNull},
{ 0x68E0,0x1433103C, CHIP_FAMILY_CEDAR,"ATI Mobility Radeon HD 5470",kEulemur},
{ 0x68E1,0x1426103C, CHIP_FAMILY_CEDAR,"ATI Mobility Radeon HD 5430",kEulemur},
{ 0x68E1,0x3000174b, CHIP_FAMILY_CEDAR,"ATI Radeon HD 5450",kEulemur},
{ 0x68E4,0x1426103C, CHIP_FAMILY_CEDAR,"AMD Radeon HD 6370M ",kNull},
{ 0x68F9,0x03741043, CHIP_FAMILY_CEDAR,"ATI Radeon HD 5450",kEulemur},
{ 0x68F9,0x23401462, CHIP_FAMILY_CEDAR,"ATI Radeon HD 5450",kEulemur},
{ 0x68F9,0x21331462, CHIP_FAMILY_CEDAR,"ATI Radeon HD 5450",kEulemur},
{ 0x68F9,0x23401462, CHIP_FAMILY_CEDAR,"ATI Radeon HD 5450",kEulemur},
{ 0x68F9,0x5470174B, CHIP_FAMILY_CEDAR,"ATI Radeon HD 5470",kNull},
{ 0x68F9,0x5490174B, CHIP_FAMILY_CEDAR,"ATI Radeon HD 5490",kNull},
{ 0x6739,0x24411462, CHIP_FAMILY_BARTS,"AMD Radeon HD 6850",kDuckweed},
{ 0x6739,0x31101682, CHIP_FAMILY_BARTS,"AMD Radeon HD 6850",kDuckweed},
{ 0x6739,0x31171682, CHIP_FAMILY_BARTS,"AMD Radeon HD 6850",kDuckweed},
{ 0x6739,0xE177174B,CHIP_FAMILY_BARTS,"AMD Radeon HD 6850",kDuckweed},

Archive Download the corresponding diff file

Revision: 1999