summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nvkm/engine/device/pci.c
blob: e3c783d0e2ab486abc37e09e5430b5013155392a (plain)
1
2
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
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
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
417
418
419
420
421
422
423
424
425
426
427
428
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
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
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
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
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
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
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
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
/*
 * Copyright 2015 Red Hat Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 *
 * Authors: Ben Skeggs <bskeggs@redhat.com>
 */
#include <core/pci.h>
#include "priv.h"

struct nvkm_device_pci_device {
	u16 device;
	const char *name;
	const struct nvkm_device_pci_vendor *vendor;
};

struct nvkm_device_pci_vendor {
	u16 vendor;
	u16 device;
	const char *name;
	const struct nvkm_device_quirk quirk;
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0189[] = {
	/* Apple iMac G4 NV18 */
	{ 0x10de, 0x0010, NULL, { .tv_gpio = 4 } },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_01f0[] = {
	/* MSI nForce2 IGP */
	{ 0x1462, 0x5710, NULL, { .tv_pin_mask = 0xc } },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0322[] = {
	/* Zotac FX5200 */
	{ 0x19da, 0x1035, NULL, { .tv_pin_mask = 0xc } },
	{ 0x19da, 0x2035, NULL, { .tv_pin_mask = 0xc } },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_05e7[] = {
	{ 0x10de, 0x0595, "Tesla T10 Processor" },
	{ 0x10de, 0x068f, "Tesla T10 Processor" },
	{ 0x10de, 0x0697, "Tesla M1060" },
	{ 0x10de, 0x0714, "Tesla M1060" },
	{ 0x10de, 0x0743, "Tesla M1060" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0609[] = {
	{ 0x106b, 0x00a7, "GeForce 8800 GS" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_062e[] = {
	{ 0x106b, 0x0605, "GeForce GT 130" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0649[] = {
	{ 0x1043, 0x202d, "GeForce GT 220M" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0652[] = {
	{ 0x152d, 0x0850, "GeForce GT 240M LE" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0654[] = {
	{ 0x1043, 0x14a2, "GeForce GT 320M" },
	{ 0x1043, 0x14d2, "GeForce GT 320M" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0655[] = {
	{ 0x106b, 0x0633, "GeForce GT 120" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0656[] = {
	{ 0x106b, 0x0693, "GeForce GT 120" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_06d1[] = {
	{ 0x10de, 0x0771, "Tesla C2050" },
	{ 0x10de, 0x0772, "Tesla C2070" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_06d2[] = {
	{ 0x10de, 0x088f, "Tesla X2070" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_06de[] = {
	{ 0x10de, 0x0773, "Tesla S2050" },
	{ 0x10de, 0x082f, "Tesla M2050" },
	{ 0x10de, 0x0840, "Tesla X2070" },
	{ 0x10de, 0x0842, "Tesla M2050" },
	{ 0x10de, 0x0846, "Tesla M2050" },
	{ 0x10de, 0x0866, "Tesla M2050" },
	{ 0x10de, 0x0907, "Tesla M2050" },
	{ 0x10de, 0x091e, "Tesla M2050" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_06e8[] = {
	{ 0x103c, 0x360b, "GeForce 9200M GE" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_06f9[] = {
	{ 0x10de, 0x060d, "Quadro FX 370 Low Profile" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_06ff[] = {
	{ 0x10de, 0x0711, "HICx8 + Graphics" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0866[] = {
	{ 0x106b, 0x00b1, "GeForce 9400M" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0872[] = {
	{ 0x1043, 0x1c42, "GeForce G205M" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0873[] = {
	{ 0x1043, 0x1c52, "GeForce G205M" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0a6e[] = {
	{ 0x17aa, 0x3607, "Second Generation ION" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0a70[] = {
	{ 0x17aa, 0x3605, "Second Generation ION" },
	{ 0x17aa, 0x3617, "Second Generation ION" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0a73[] = {
	{ 0x17aa, 0x3607, "Second Generation ION" },
	{ 0x17aa, 0x3610, "Second Generation ION" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0a74[] = {
	{ 0x17aa, 0x903a, "GeForce G210" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0a75[] = {
	{ 0x17aa, 0x3605, "Second Generation ION" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0a7a[] = {
	{ 0x1462, 0xaa51, "GeForce 405" },
	{ 0x1462, 0xaa58, "GeForce 405" },
	{ 0x1462, 0xac71, "GeForce 405" },
	{ 0x1462, 0xac82, "GeForce 405" },
	{ 0x1642, 0x3980, "GeForce 405" },
	{ 0x17aa, 0x3950, "GeForce 405M" },
	{ 0x17aa, 0x397d, "GeForce 405M" },
	{ 0x1b0a, 0x90b4, "GeForce 405" },
	{ 0x1bfd, 0x0003, "GeForce 405" },
	{ 0x1bfd, 0x8006, "GeForce 405" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0dd8[] = {
	{ 0x10de, 0x0914, "Quadro 2000D" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0de9[] = {
	{ 0x1025, 0x0692, "GeForce GT 620M" },
	{ 0x1025, 0x0725, "GeForce GT 620M" },
	{ 0x1025, 0x0728, "GeForce GT 620M" },
	{ 0x1025, 0x072b, "GeForce GT 620M" },
	{ 0x1025, 0x072e, "GeForce GT 620M" },
	{ 0x1025, 0x0753, "GeForce GT 620M" },
	{ 0x1025, 0x0754, "GeForce GT 620M" },
	{ 0x17aa, 0x3977, "GeForce GT 640M LE" },
	{ 0x1b0a, 0x2210, "GeForce GT 635M" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0dea[] = {
	{ 0x17aa, 0x365a, "GeForce 615" },
	{ 0x17aa, 0x365b, "GeForce 615" },
	{ 0x17aa, 0x365e, "GeForce 615" },
	{ 0x17aa, 0x3660, "GeForce 615" },
	{ 0x17aa, 0x366c, "GeForce 615" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0df4[] = {
	{ 0x152d, 0x0952, "GeForce GT 630M" },
	{ 0x152d, 0x0953, "GeForce GT 630M" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0fcd[] = {
	{ 0x17aa, 0x3801, NULL, { .War00C800_0 = true } }, /* Lenovo Y510P */
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0fd2[] = {
	{ 0x1028, 0x0595, "GeForce GT 640M LE" },
	{ 0x1028, 0x05b2, "GeForce GT 640M LE" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_0fe3[] = {
	{ 0x103c, 0x2b16, "GeForce GT 745A" },
	{ 0x17aa, 0x3675, "GeForce GT 745A" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_104b[] = {
	{ 0x1043, 0x844c, "GeForce GT 625" },
	{ 0x1043, 0x846b, "GeForce GT 625" },
	{ 0x1462, 0xb590, "GeForce GT 625" },
	{ 0x174b, 0x0625, "GeForce GT 625" },
	{ 0x174b, 0xa625, "GeForce GT 625" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_1058[] = {
	{ 0x103c, 0x2af1, "GeForce 610" },
	{ 0x17aa, 0x3682, "GeForce 800A" },
	{ 0x17aa, 0x3692, "GeForce 705A" },
	{ 0x17aa, 0x3695, "GeForce 800A" },
	{ 0x17aa, 0x36a8, "GeForce 800A" },
	{ 0x17aa, 0x36ac, "GeForce 800A" },
	{ 0x17aa, 0x36ad, "GeForce 800A" },
	{ 0x705a, 0x3682, "GeForce 800A" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_105b[] = {
	{ 0x103c, 0x2afb, "GeForce 705A" },
	{ 0x17aa, 0x36a1, "GeForce 800A" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_1091[] = {
	{ 0x10de, 0x088e, "Tesla X2090" },
	{ 0x10de, 0x0891, "Tesla X2090" },
	{ 0x10de, 0x0974, "Tesla X2090" },
	{ 0x10de, 0x098d, "Tesla X2090" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_1096[] = {
	{ 0x10de, 0x0911, "Tesla C2050" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_1140[] = {
	{ 0x1019, 0x999f, "GeForce GT 720M" },
	{ 0x1025, 0x0600, "GeForce GT 620M" },
	{ 0x1025, 0x0606, "GeForce GT 620M" },
	{ 0x1025, 0x064a, "GeForce GT 620M" },
	{ 0x1025, 0x064c, "GeForce GT 620M" },
	{ 0x1025, 0x067a, "GeForce GT 620M" },
	{ 0x1025, 0x0680, "GeForce GT 620M" },
	{ 0x1025, 0x0686, "GeForce 710M" },
	{ 0x1025, 0x0689, "GeForce 710M" },
	{ 0x1025, 0x068b, "GeForce 710M" },
	{ 0x1025, 0x068d, "GeForce 710M" },
	{ 0x1025, 0x068e, "GeForce 710M" },
	{ 0x1025, 0x0691, "GeForce 710M" },
	{ 0x1025, 0x0692, "GeForce GT 620M" },
	{ 0x1025, 0x0694, "GeForce GT 620M" },
	{ 0x1025, 0x0702, "GeForce GT 620M" },
	{ 0x1025, 0x0719, "GeForce GT 620M" },
	{ 0x1025, 0x0725, "GeForce GT 620M" },
	{ 0x1025, 0x0728, "GeForce GT 620M" },
	{ 0x1025, 0x072b, "GeForce GT 620M" },
	{ 0x1025, 0x072e, "GeForce GT 620M" },
	{ 0x1025, 0x0732, "GeForce GT 620M" },
	{ 0x1025, 0x0763, "GeForce GT 720M" },
	{ 0x1025, 0x0773, "GeForce 710M" },
	{ 0x1025, 0x0774, "GeForce 710M" },
	{ 0x1025, 0x0776, "GeForce GT 720M" },
	{ 0x1025, 0x077a, "GeForce 710M" },
	{ 0x1025, 0x077b, "GeForce 710M" },
	{ 0x1025, 0x077c, "GeForce 710M" },
	{ 0x1025, 0x077d, "GeForce 710M" },
	{ 0x1025, 0x077e, "GeForce 710M" },
	{ 0x1025, 0x077f, "GeForce 710M" },
	{ 0x1025, 0x0781, "GeForce GT 720M" },
	{ 0x1025, 0x0798, "GeForce GT 720M" },
	{ 0x1025, 0x0799, "GeForce GT 720M" },
	{ 0x1025, 0x079b, "GeForce GT 720M" },
	{ 0x1025, 0x079c, "GeForce GT 720M" },
	{ 0x1025, 0x0807, "GeForce GT 720M" },
	{ 0x1025, 0x0821, "GeForce 820M" },
	{ 0x1025, 0x0823, "GeForce GT 720M" },
	{ 0x1025, 0x0830, "GeForce GT 720M" },
	{ 0x1025, 0x0833, "GeForce GT 720M" },
	{ 0x1025, 0x0837, "GeForce GT 720M" },
	{ 0x1025, 0x083e, "GeForce 820M" },
	{ 0x1025, 0x0841, "GeForce 710M" },
	{ 0x1025, 0x0853, "GeForce 820M" },
	{ 0x1025, 0x0854, "GeForce 820M" },
	{ 0x1025, 0x0855, "GeForce 820M" },
	{ 0x1025, 0x0856, "GeForce 820M" },
	{ 0x1025, 0x0857, "GeForce 820M" },
	{ 0x1025, 0x0858, "GeForce 820M" },
	{ 0x1025, 0x0863, "GeForce 820M" },
	{ 0x1025, 0x0868, "GeForce 820M" },
	{ 0x1025, 0x0869, "GeForce 810M" },
	{ 0x1025, 0x0873, "GeForce 820M" },
	{ 0x1025, 0x0878, "GeForce 820M" },
	{ 0x1025, 0x087b, "GeForce 820M" },
	{ 0x1025, 0x087f, "GeForce 820M" },
	{ 0x1025, 0x0881, "GeForce 820M" },
	{ 0x1025, 0x0885, "GeForce 820M" },
	{ 0x1025, 0x088a, "GeForce 820M" },
	{ 0x1025, 0x089b, "GeForce 820M" },
	{ 0x1025, 0x0921, "GeForce 820M" },
	{ 0x1025, 0x092e, "GeForce 810M" },
	{ 0x1025, 0x092f, "GeForce 820M" },
	{ 0x1025, 0x0932, "GeForce 820M" },
	{ 0x1025, 0x093a, "GeForce 820M" },
	{ 0x1025, 0x093c, "GeForce 820M" },
	{ 0x1025, 0x093f, "GeForce 820M" },
	{ 0x1025, 0x0941, "GeForce 820M" },
	{ 0x1025, 0x0945, "GeForce 820M" },
	{ 0x1025, 0x0954, "GeForce 820M" },
	{ 0x1025, 0x0965, "GeForce 820M" },
	{ 0x1028, 0x054d, "GeForce GT 630M" },
	{ 0x1028, 0x054e, "GeForce GT 630M" },
	{ 0x1028, 0x0554, "GeForce GT 620M" },
	{ 0x1028, 0x0557, "GeForce GT 620M" },
	{ 0x1028, 0x0562, "GeForce GT625M" },
	{ 0x1028, 0x0565, "GeForce GT 630M" },
	{ 0x1028, 0x0568, "GeForce GT 630M" },
	{ 0x1028, 0x0590, "GeForce GT 630M" },
	{ 0x1028, 0x0592, "GeForce GT625M" },
	{ 0x1028, 0x0594, "GeForce GT625M" },
	{ 0x1028, 0x0595, "GeForce GT625M" },
	{ 0x1028, 0x05a2, "GeForce GT625M" },
	{ 0x1028, 0x05b1, "GeForce GT625M" },
	{ 0x1028, 0x05b3, "GeForce GT625M" },
	{ 0x1028, 0x05da, "GeForce GT 630M" },
	{ 0x1028, 0x05de, "GeForce GT 720M" },
	{ 0x1028, 0x05e0, "GeForce GT 720M" },
	{ 0x1028, 0x05e8, "GeForce GT 630M" },
	{ 0x1028, 0x05f4, "GeForce GT 720M" },
	{ 0x1028, 0x060f, "GeForce GT 720M" },
	{ 0x1028, 0x062f, "GeForce GT 720M" },
	{ 0x1028, 0x064e, "GeForce 820M" },
	{ 0x1028, 0x0652, "GeForce 820M" },
	{ 0x1028, 0x0653, "GeForce 820M" },
	{ 0x1028, 0x0655, "GeForce 820M" },
	{ 0x1028, 0x065e, "GeForce 820M" },
	{ 0x1028, 0x0662, "GeForce 820M" },
	{ 0x1028, 0x068d, "GeForce 820M" },
	{ 0x1028, 0x06ad, "GeForce 820M" },
	{ 0x1028, 0x06ae, "GeForce 820M" },
	{ 0x1028, 0x06af, "GeForce 820M" },
	{ 0x1028, 0x06b0, "GeForce 820M" },
	{ 0x1028, 0x06c0, "GeForce 820M" },
	{ 0x1028, 0x06c1, "GeForce 820M" },
	{ 0x103c, 0x18ef, "GeForce GT 630M" },
	{ 0x103c, 0x18f9, "GeForce GT 630M" },
	{ 0x103c, 0x18fb, "GeForce GT 630M" },
	{ 0x103c, 0x18fd, "GeForce GT 630M" },
	{ 0x103c, 0x18ff, "GeForce GT 630M" },
	{ 0x103c, 0x218a, "GeForce 820M" },
	{ 0x103c, 0x21bb, "GeForce 820M" },
	{ 0x103c, 0x21bc, "GeForce 820M" },
	{ 0x103c, 0x220e, "GeForce 820M" },
	{ 0x103c, 0x2210, "GeForce 820M" },
	{ 0x103c, 0x2212, "GeForce 820M" },
	{ 0x103c, 0x2214, "GeForce 820M" },
	{ 0x103c, 0x2218, "GeForce 820M" },
	{ 0x103c, 0x225b, "GeForce 820M" },
	{ 0x103c, 0x225d, "GeForce 820M" },
	{ 0x103c, 0x226d, "GeForce 820M" },
	{ 0x103c, 0x226f, "GeForce 820M" },
	{ 0x103c, 0x22d2, "GeForce 820M" },
	{ 0x103c, 0x22d9, "GeForce 820M" },
	{ 0x103c, 0x2335, "GeForce 820M" },
	{ 0x103c, 0x2337, "GeForce 820M" },
	{ 0x103c, 0x2aef, "GeForce GT 720A" },
	{ 0x103c, 0x2af9, "GeForce 710A" },
	{ 0x1043, 0x10dd, "NVS 5200M" },
	{ 0x1043, 0x10ed, "NVS 5200M" },
	{ 0x1043, 0x11fd, "GeForce GT 720M" },
	{ 0x1043, 0x124d, "GeForce GT 720M" },
	{ 0x1043, 0x126d, "GeForce GT 720M" },
	{ 0x1043, 0x131d, "GeForce GT 720M" },
	{ 0x1043, 0x13fd, "GeForce GT 720M" },
	{ 0x1043, 0x14c7, "GeForce GT 720M" },
	{ 0x1043, 0x1507, "GeForce GT 620M" },
	{ 0x1043, 0x15ad, "GeForce 820M" },
	{ 0x1043, 0x15ed, "GeForce 820M" },
	{ 0x1043, 0x160d, "GeForce 820M" },
	{ 0x1043, 0x163d, "GeForce 820M" },
	{ 0x1043, 0x165d, "GeForce 820M" },
	{ 0x1043, 0x166d, "GeForce 820M" },
	{ 0x1043, 0x16cd, "GeForce 820M" },
	{ 0x1043, 0x16dd, "GeForce 820M" },
	{ 0x1043, 0x170d, "GeForce 820M" },
	{ 0x1043, 0x176d, "GeForce 820M" },
	{ 0x1043, 0x178d, "GeForce 820M" },
	{ 0x1043, 0x179d, "GeForce 820M" },
	{ 0x1043, 0x2132, "GeForce GT 620M" },
	{ 0x1043, 0x2136, "NVS 5200M" },
	{ 0x1043, 0x21ba, "GeForce GT 720M" },
	{ 0x1043, 0x21fa, "GeForce GT 720M" },
	{ 0x1043, 0x220a, "GeForce GT 720M" },
	{ 0x1043, 0x221a, "GeForce GT 720M" },
	{ 0x1043, 0x223a, "GeForce GT 710M" },
	{ 0x1043, 0x224a, "GeForce GT 710M" },
	{ 0x1043, 0x227a, "GeForce 820M" },
	{ 0x1043, 0x228a, "GeForce 820M" },
	{ 0x1043, 0x22fa, "GeForce 820M" },
	{ 0x1043, 0x232a, "GeForce 820M" },
	{ 0x1043, 0x233a, "GeForce 820M" },
	{ 0x1043, 0x235a, "GeForce 820M" },
	{ 0x1043, 0x236a, "GeForce 820M" },
	{ 0x1043, 0x238a, "GeForce 820M" },
	{ 0x1043, 0x8595, "GeForce GT 720M" },
	{ 0x1043, 0x85ea, "GeForce GT 720M" },
	{ 0x1043, 0x85eb, "GeForce 820M" },
	{ 0x1043, 0x85ec, "GeForce 820M" },
	{ 0x1043, 0x85ee, "GeForce GT 720M" },
	{ 0x1043, 0x85f3, "GeForce 820M" },
	{ 0x1043, 0x860e, "GeForce 820M" },
	{ 0x1043, 0x861a, "GeForce 820M" },
	{ 0x1043, 0x861b, "GeForce 820M" },
	{ 0x1043, 0x8628, "GeForce 820M" },
	{ 0x1043, 0x8643, "GeForce 820M" },
	{ 0x1043, 0x864c, "GeForce 820M" },
	{ 0x1043, 0x8652, "GeForce 820M" },
	{ 0x1043, 0x8660, "GeForce 820M" },
	{ 0x1043, 0x8661, "GeForce 820M" },
	{ 0x105b, 0x0dac, "GeForce GT 720M" },
	{ 0x105b, 0x0dad, "GeForce GT 720M" },
	{ 0x105b, 0x0ef3, "GeForce GT 720M" },
	{ 0x10cf, 0x17f5, "GeForce GT 720M" },
	{ 0x1179, 0xfa01, "GeForce 710M" },
	{ 0x1179, 0xfa02, "GeForce 710M" },
	{ 0x1179, 0xfa03, "GeForce 710M" },
	{ 0x1179, 0xfa05, "GeForce 710M" },
	{ 0x1179, 0xfa11, "GeForce 710M" },
	{ 0x1179, 0xfa13, "GeForce 710M" },
	{ 0x1179, 0xfa18, "GeForce 710M" },
	{ 0x1179, 0xfa19, "GeForce 710M" },
	{ 0x1179, 0xfa21, "GeForce 710M" },
	{ 0x1179, 0xfa23, "GeForce 710M" },
	{ 0x1179, 0xfa2a, "GeForce 710M" },
	{ 0x1179, 0xfa32, "GeForce 710M" },
	{ 0x1179, 0xfa33, "GeForce 710M" },
	{ 0x1179, 0xfa36, "GeForce 710M" },
	{ 0x1179, 0xfa38, "GeForce 710M" },
	{ 0x1179, 0xfa42, "GeForce 710M" },
	{ 0x1179, 0xfa43, "GeForce 710M" },
	{ 0x1179, 0xfa45, "GeForce 710M" },
	{ 0x1179, 0xfa47, "GeForce 710M" },
	{ 0x1179, 0xfa49, "GeForce 710M" },
	{ 0x1179, 0xfa58, "GeForce 710M" },
	{ 0x1179, 0xfa59, "GeForce 710M" },
	{ 0x1179, 0xfa88, "GeForce 710M" },
	{ 0x1179, 0xfa89, "GeForce 710M" },
	{ 0x144d, 0xb092, "GeForce GT 620M" },
	{ 0x144d, 0xc0d5, "GeForce GT 630M" },
	{ 0x144d, 0xc0d7, "GeForce GT 620M" },
	{ 0x144d, 0xc0e2, "NVS 5200M" },
	{ 0x144d, 0xc0e3, "NVS 5200M" },
	{ 0x144d, 0xc0e4, "NVS 5200M" },
	{ 0x144d, 0xc10d, "GeForce 820M" },
	{ 0x144d, 0xc652, "GeForce GT 620M" },
	{ 0x144d, 0xc709, "GeForce 710M" },
	{ 0x144d, 0xc711, "GeForce 710M" },
	{ 0x144d, 0xc736, "GeForce 710M" },
	{ 0x144d, 0xc737, "GeForce 710M" },
	{ 0x144d, 0xc745, "GeForce 820M" },
	{ 0x144d, 0xc750, "GeForce 820M" },
	{ 0x1462, 0x10b8, "GeForce GT 710M" },
	{ 0x1462, 0x10e9, "GeForce GT 720M" },
	{ 0x1462, 0x1116, "GeForce 820M" },
	{ 0x1462, 0xaa33, "GeForce 720M" },
	{ 0x1462, 0xaaa2, "GeForce GT 720M" },
	{ 0x1462, 0xaaa3, "GeForce 820M" },
	{ 0x1462, 0xacb2, "GeForce GT 720M" },
	{ 0x1462, 0xacc1, "GeForce GT 720M" },
	{ 0x1462, 0xae61, "GeForce 720M" },
	{ 0x1462, 0xae65, "GeForce GT 720M" },
	{ 0x1462, 0xae6a, "GeForce 820M" },
	{ 0x1462, 0xae71, "GeForce GT 720M" },
	{ 0x14c0, 0x0083, "GeForce 820M" },
	{ 0x152d, 0x0926, "GeForce 620M" },
	{ 0x152d, 0x0982, "GeForce GT 630M" },
	{ 0x152d, 0x0983, "GeForce GT 630M" },
	{ 0x152d, 0x1005, "GeForce GT820M" },
	{ 0x152d, 0x1012, "GeForce 710M" },
	{ 0x152d, 0x1019, "GeForce 820M" },
	{ 0x152d, 0x1030, "GeForce GT 630M" },
	{ 0x152d, 0x1055, "GeForce 710M" },
	{ 0x152d, 0x1067, "GeForce GT 720M" },
	{ 0x152d, 0x1092, "GeForce 820M" },
	{ 0x17aa, 0x2200, "NVS 5200M" },
	{ 0x17aa, 0x2213, "GeForce GT 720M" },
	{ 0x17aa, 0x2220, "GeForce GT 720M" },
	{ 0x17aa, 0x309c, "GeForce GT 720A" },
	{ 0x17aa, 0x30b4, "GeForce 820A" },
	{ 0x17aa, 0x30b7, "GeForce 720A" },
	{ 0x17aa, 0x30e4, "GeForce 820A" },
	{ 0x17aa, 0x361b, "GeForce 820A" },
	{ 0x17aa, 0x361c, "GeForce 820A" },
	{ 0x17aa, 0x361d, "GeForce 820A" },
	{ 0x17aa, 0x3656, "GeForce GT620M" },
	{ 0x17aa, 0x365a, "GeForce 705M" },
	{ 0x17aa, 0x365e, "GeForce 800M" },
	{ 0x17aa, 0x3661, "GeForce 820A" },
	{ 0x17aa, 0x366c, "GeForce 800M" },
	{ 0x17aa, 0x3685, "GeForce 800M" },
	{ 0x17aa, 0x3686, "GeForce 800M" },
	{ 0x17aa, 0x3687, "GeForce 705A" },
	{ 0x17aa, 0x3696, "GeForce 820A" },
	{ 0x17aa, 0x369b, "GeForce 820A" },
	{ 0x17aa, 0x369c, "GeForce 820A" },
	{ 0x17aa, 0x369d, "GeForce 820A" },
	{ 0x17aa, 0x369e, "GeForce 820A" },
	{ 0x17aa, 0x36a6, "GeForce 820A" },
	{ 0x17aa, 0x36a7, "GeForce 820A" },
	{ 0x17aa, 0x36a9, "GeForce 820A" },
	{ 0x17aa, 0x36af, "GeForce 820A" },
	{ 0x17aa, 0x36b0, "GeForce 820A" },
	{ 0x17aa, 0x36b6, "GeForce 820A" },
	{ 0x17aa, 0x3800, "GeForce GT 720M" },
	{ 0x17aa, 0x3801, "GeForce GT 720M" },
	{ 0x17aa, 0x3802, "GeForce GT 720M" },
	{ 0x17aa, 0x3803, "GeForce GT 720M" },
	{ 0x17aa, 0x3804, "GeForce GT 720M" },
	{ 0x17aa, 0x3806, "GeForce GT 720M" },
	{ 0x17aa, 0x3808, "GeForce GT 720M" },
	{ 0x17aa, 0x380d, "GeForce 820M" },
	{ 0x17aa, 0x380e, "GeForce 820M" },
	{ 0x17aa, 0x380f, "GeForce 820M" },
	{ 0x17aa, 0x3811, "GeForce 820M" },
	{ 0x17aa, 0x3812, "GeForce 820M" },
	{ 0x17aa, 0x3813, "GeForce 820M" },
	{ 0x17aa, 0x3816, "GeForce 820M" },
	{ 0x17aa, 0x3817, "GeForce 820M" },
	{ 0x17aa, 0x3818, "GeForce 820M" },
	{ 0x17aa, 0x381a, "GeForce 820M" },
	{ 0x17aa, 0x381c, "GeForce 820M" },
	{ 0x17aa, 0x381d, "GeForce 820M" },
	{ 0x17aa, 0x3901, "GeForce 610M" },
	{ 0x17aa, 0x3902, "GeForce 710M" },
	{ 0x17aa, 0x3903, "GeForce 710M" },
	{ 0x17aa, 0x3904, "GeForce GT 625M" },
	{ 0x17aa, 0x3905, "GeForce GT 720M" },
	{ 0x17aa, 0x3907, "GeForce 820M" },
	{ 0x17aa, 0x3910, "GeForce GT 720M" },
	{ 0x17aa, 0x3912, "GeForce GT 720M" },
	{ 0x17aa, 0x3913, "GeForce 820M" },
	{ 0x17aa, 0x3915, "GeForce 820M" },
	{ 0x17aa, 0x3983, "GeForce 610M" },
	{ 0x17aa, 0x5001, "GeForce 610M" },
	{ 0x17aa, 0x5003, "GeForce GT 720M" },
	{ 0x17aa, 0x5005, "GeForce 705M" },
	{ 0x17aa, 0x500d, "GeForce GT 620M" },
	{ 0x17aa, 0x5014, "GeForce 710M" },
	{ 0x17aa, 0x5017, "GeForce 710M" },
	{ 0x17aa, 0x5019, "GeForce 710M" },
	{ 0x17aa, 0x501a, "GeForce 710M" },
	{ 0x17aa, 0x501f, "GeForce GT 720M" },
	{ 0x17aa, 0x5025, "GeForce 710M" },
	{ 0x17aa, 0x5027, "GeForce 710M" },
	{ 0x17aa, 0x502a, "GeForce 710M" },
	{ 0x17aa, 0x502b, "GeForce GT 720M" },
	{ 0x17aa, 0x502d, "GeForce 710M" },
	{ 0x17aa, 0x502e, "GeForce GT 720M" },
	{ 0x17aa, 0x502f, "GeForce GT 720M" },
	{ 0x17aa, 0x5030, "GeForce 705M" },
	{ 0x17aa, 0x5031, "GeForce 705M" },
	{ 0x17aa, 0x5032, "GeForce 820M" },
	{ 0x17aa, 0x5033, "GeForce 820M" },
	{ 0x17aa, 0x503e, "GeForce 710M" },
	{ 0x17aa, 0x503f, "GeForce 820M" },
	{ 0x17aa, 0x5040, "GeForce 820M" },
	{ 0x1854, 0x0177, "GeForce 710M" },
	{ 0x1854, 0x0180, "GeForce 710M" },
	{ 0x1854, 0x0190, "GeForce GT 720M" },
	{ 0x1854, 0x0192, "GeForce GT 720M" },
	{ 0x1854, 0x0224, "GeForce 820M" },
	{ 0x1b0a, 0x20dd, "GeForce GT 620M" },
	{ 0x1b0a, 0x20df, "GeForce GT 620M" },
	{ 0x1b0a, 0x210e, "GeForce 820M" },
	{ 0x1b0a, 0x2202, "GeForce GT 720M" },
	{ 0x1b0a, 0x90d7, "GeForce 820M" },
	{ 0x1b0a, 0x90dd, "GeForce 820M" },
	{ 0x1b50, 0x5530, "GeForce 820M" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_1185[] = {
	{ 0x10de, 0x106f, "GeForce GTX 760" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_1189[] = {
	{ 0x10de, 0x1074, "GeForce GTX 760 Ti OEM" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_1199[] = {
	{ 0x1458, 0xd001, "GeForce GTX 760" },
	{ 0x1462, 0x1106, "GeForce GTX 780M", { .War00C800_0 = true } }, /* Medion Erazer X7827 */
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_11e3[] = {
	{ 0x17aa, 0x3683, "GeForce GTX 760A" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_11fc[] = {
	{ 0x1179, 0x0001, NULL, { .War00C800_0 = true } }, /* Toshiba Tecra W50 */
	{ 0x17aa, 0x2211, NULL, { .War00C800_0 = true } }, /* Lenovo W541 */
	{ 0x17aa, 0x221e, NULL, { .War00C800_0 = true } }, /* Lenovo W541 */
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_1247[] = {
	{ 0x1043, 0x212a, "GeForce GT 635M" },
	{ 0x1043, 0x212b, "GeForce GT 635M" },
	{ 0x1043, 0x212c, "GeForce GT 635M" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_124d[] = {
	{ 0x1462, 0x10cc, "GeForce GT 635M" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_1290[] = {
	{ 0x103c, 0x2afa, "GeForce 730A" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_1292[] = {
	{ 0x17aa, 0x3675, "GeForce GT 740A" },
	{ 0x17aa, 0x367c, "GeForce GT 740A" },
	{ 0x17aa, 0x3684, "GeForce GT 740A" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_1295[] = {
	{ 0x103c, 0x2b0d, "GeForce 710A" },
	{ 0x103c, 0x2b0f, "GeForce 710A" },
	{ 0x103c, 0x2b20, "GeForce 810A" },
	{ 0x103c, 0x2b21, "GeForce 810A" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_1299[] = {
	{ 0x17aa, 0x369b, "GeForce 920A" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_1340[] = {
	{ 0x103c, 0x2b2b, "GeForce 830A" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_1341[] = {
	{ 0x17aa, 0x3697, "GeForce 840A" },
	{ 0x17aa, 0x3699, "GeForce 840A" },
	{ 0x17aa, 0x369c, "GeForce 840A" },
	{ 0x17aa, 0x36af, "GeForce 840A" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_1346[] = {
	{ 0x17aa, 0x30ba, "GeForce 930A" },
	{ 0x17aa, 0x362c, "GeForce 930A" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_1347[] = {
	{ 0x17aa, 0x36b9, "GeForce 940A" },
	{ 0x17aa, 0x36ba, "GeForce 940A" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_137a[] = {
	{ 0x17aa, 0x2225, "Quadro K620M" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_137d[] = {
	{ 0x17aa, 0x3699, "GeForce 940A" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_1391[] = {
	{ 0x17aa, 0x3697, "GeForce GTX 850A" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_1392[] = {
	{ 0x1028, 0x066a, "GeForce GPU" },
	{ 0x1043, 0x861e, "GeForce GTX 750 Ti" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_139a[] = {
	{ 0x17aa, 0x36b9, "GeForce GTX 950A" },
	{}
};

static const struct nvkm_device_pci_vendor
nvkm_device_pci_10de_139b[] = {
	{ 0x1028, 0x06a3, "GeForce GTX 860M" },
	{ 0x19da, 0xc248, "GeForce GTX 750 Ti" },
	{}
};

static const struct nvkm_device_pci_device
nvkm_device_pci_10de[] = {
	{ 0x0020, "RIVA TNT" },
	{ 0x0028, "RIVA TNT2/TNT2 Pro" },
	{ 0x0029, "RIVA TNT2 Ultra" },
	{ 0x002c, "Vanta/Vanta LT" },
	{ 0x002d, "RIVA TNT2 Model 64/Model 64 Pro" },
	{ 0x0040, "GeForce 6800 Ultra" },
	{ 0x0041, "GeForce 6800" },
	{ 0x0042, "GeForce 6800 LE" },
	{ 0x0043, "GeForce 6800 XE" },
	{ 0x0044, "GeForce 6800 XT" },
	{ 0x0045, "GeForce 6800 GT" },
	{ 0x0046, "GeForce 6800 GT" },
	{ 0x0047, "GeForce 6800 GS" },
	{ 0x0048, "GeForce 6800 XT" },
	{ 0x004e, "Quadro FX 4000" },
	{ 0x0090, "GeForce 7800 GTX" },
	{ 0x0091, "GeForce 7800 GTX" },
	{ 0x0092, "GeForce 7800 GT" },
	{ 0x0093, "GeForce 7800 GS" },
	{ 0x0095, "GeForce 7800 SLI" },
	{ 0x0098, "GeForce Go 7800" },
	{ 0x0099, "GeForce Go 7800 GTX" },
	{ 0x009d, "Quadro FX 4500" },
	{ 0x00a0, "Aladdin TNT2" },
	{ 0x00c0, "GeForce 6800 GS" },
	{ 0x00c1, "GeForce 6800" },
	{ 0x00c2, "GeForce 6800 LE" },
	{ 0x00c3, "GeForce 6800 XT" },
	{ 0x00c8, "GeForce Go 6800" },
	{ 0x00c9, "GeForce Go 6800 Ultra" },
	{ 0x00cc, "Quadro FX Go1400" },
	{ 0x00cd, "Quadro FX 3450/4000 SDI" },
	{ 0x00ce, "Quadro FX 1400" },
	{ 0x00f1, "GeForce 6600 GT" },
	{ 0x00f2, "GeForce 6600" },
	{ 0x00f3, "GeForce 6200" },
	{ 0x00f4, "GeForce 6600 LE" },
	{ 0x00f5, "GeForce 7800 GS" },
	{ 0x00f6, "GeForce 6800 GS" },
	{ 0x00f8, "Quadro FX 3400/Quadro FX 4000" },
	{ 0x00f9, "GeForce 6800 Ultra" },
	{ 0x00fa, "GeForce PCX 5750" },
	{ 0x00fb, "GeForce PCX 5900" },
	{ 0x00fc, "Quadro FX 330/GeForce PCX 5300" },
	{ 0x00fd, "Quadro FX 330/Quadro NVS 280 PCI-E" },
	{ 0x00fe, "Quadro FX 1300" },
	{ 0x0100, "GeForce 256" },
	{ 0x0101, "GeForce DDR" },
	{ 0x0103, "Quadro" },
	{ 0x0110, "GeForce2 MX/MX 400" },
	{ 0x0111, "GeForce2 MX 100/200" },
	{ 0x0112, "GeForce2 Go" },
	{ 0x0113, "Quadro2 MXR/EX/Go" },
	{ 0x0140, "GeForce 6600 GT" },
	{ 0x0141, "GeForce 6600" },
	{ 0x0142, "GeForce 6600 LE" },
	{ 0x0143, "GeForce 6600 VE" },
	{ 0x0144, "GeForce Go 6600" },
	{ 0x0145, "GeForce 6610 XL" },
	{ 0x0146, "GeForce Go 6600 TE/6200 TE" },
	{ 0x0147, "GeForce 6700 XL" },
	{ 0x0148, "GeForce Go 6600" },
	{ 0x0149, "GeForce Go 6600 GT" },
	{ 0x014a, "Quadro NVS 440" },
	{ 0x014c, "Quadro FX 540M" },
	{ 0x014d, "Quadro FX 550" },
	{ 0x014e, "Quadro FX 540" },
	{ 0x014f, "GeForce 6200" },
	{ 0x0150, "GeForce2 GTS/GeForce2 Pro" },
	{ 0x0151, "GeForce2 Ti" },
	{ 0x0152, "GeForce2 Ultra" },
	{ 0x0153, "Quadro2 Pro" },
	{ 0x0160, "GeForce 6500" },
	{ 0x0161, "GeForce 6200 TurboCache(TM)" },
	{ 0x0162, "GeForce 6200SE TurboCache(TM)" },
	{ 0x0163, "GeForce 6200 LE" },
	{ 0x0164, "GeForce Go 6200" },
	{ 0x0165, "Quadro NVS 285" },
	{ 0x0166, "GeForce Go 6400" },
	{ 0x0167, "GeForce Go 6200" },
	{ 0x0168, "GeForce Go 6400" },
	{ 0x0169, "GeForce 6250" },
	{ 0x016a, "GeForce 7100 GS" },
	{ 0x0170, "GeForce4 MX 460" },
	{ 0x0171, "GeForce4 MX 440" },
	{ 0x0172, "GeForce4 MX 420" },
	{ 0x0173, "GeForce4 MX 440-SE" },
	{ 0x0174, "GeForce4 440 Go" },
	{ 0x0175, "GeForce4 420 Go" },
	{ 0x0176, "GeForce4 420 Go 32M" },
	{ 0x0177, "GeForce4 460 Go" },
	{ 0x0178, "Quadro4 550 XGL" },
	{ 0x0179, "GeForce4 440 Go 64M" },
	{ 0x017a, "Quadro NVS 400" },
	{ 0x017c, "Quadro4 500 GoGL" },
	{ 0x017d, "GeForce4 410 Go 16M" },
	{ 0x0181, "GeForce4 MX 440 with AGP8X" },
	{ 0x0182, "GeForce4 MX 440SE with AGP8X" },
	{ 0x0183, "GeForce4 MX 420 with AGP8X" },
	{ 0x0185, "GeForce4 MX 4000" },
	{ 0x0188, "Quadro4 580 XGL" },
	{ 0x0189, "GeForce4 MX with AGP8X (Mac)", nvkm_device_pci_10de_0189 },
	{ 0x018a, "Quadro NVS 280 SD" },
	{ 0x018b, "Quadro4 380 XGL" },
	{ 0x018c, "Quadro NVS 50 PCI" },
	{ 0x0191, "GeForce 8800 GTX" },
	{ 0x0193, "GeForce 8800 GTS" },
	{ 0x0194, "GeForce 8800 Ultra" },
	{ 0x0197, "Tesla C870" },
	{ 0x019d, "Quadro FX 5600" },
	{ 0x019e, "Quadro FX 4600" },
	{ 0x01a0, "GeForce2 Integrated GPU" },
	{ 0x01d0, "GeForce 7350 LE" },
	{ 0x01d1, "GeForce 7300 LE" },
	{ 0x01d2, "GeForce 7550 LE" },
	{ 0x01d3, "GeForce 7300 SE/7200 GS" },
	{ 0x01d6, "GeForce Go 7200" },
	{ 0x01d7, "GeForce Go 7300" },
	{ 0x01d8, "GeForce Go 7400" },
	{ 0x01da, "Quadro NVS 110M" },
	{ 0x01db, "Quadro NVS 120M" },
	{ 0x01dc, "Quadro FX 350M" },
	{ 0x01dd, "GeForce 7500 LE" },
	{ 0x01de, "Quadro FX 350" },
	{ 0x01df, "GeForce 7300 GS" },
	{ 0x01f0, "GeForce4 MX Integrated GPU", nvkm_device_pci_10de_01f0 },
	{ 0x0200, "GeForce3" },
	{ 0x0201, "GeForce3 Ti 200" },
	{ 0x0202, "GeForce3 Ti 500" },
	{ 0x0203, "Quadro DCC" },
	{ 0x0211, "GeForce 6800" },
	{ 0x0212, "GeForce 6800 LE" },
	{ 0x0215, "GeForce 6800 GT" },
	{ 0x0218, "GeForce 6800 XT" },
	{ 0x0221, "GeForce 6200" },
	{ 0x0222, "GeForce 6200 A-LE" },
	{ 0x0240, "GeForce 6150" },
	{ 0x0241, "GeForce 6150 LE" },
	{ 0x0242, "GeForce 6100" },
	{ 0x0244, "GeForce Go 6150" },
	{ 0x0245, "Quadro NVS 210S / GeForce 6150LE" },
	{ 0x0247, "GeForce Go 6100" },
	{ 0x0250, "GeForce4 Ti 4600" },
	{ 0x0251, "GeForce4 Ti 4400" },
	{ 0x0253, "GeForce4 Ti 4200" },
	{ 0x0258, "Quadro4 900 XGL" },
	{ 0x0259, "Quadro4 750 XGL" },
	{ 0x025b, "Quadro4 700 XGL" },
	{ 0x0280, "GeForce4 Ti 4800" },
	{ 0x0281, "GeForce4 Ti 4200 with AGP8X" },
	{ 0x0282, "GeForce4 Ti 4800 SE" },
	{ 0x0286, "GeForce4 4200 Go" },
	{ 0x0288, "Quadro4 980 XGL" },
	{ 0x0289, "Quadro4 780 XGL" },
	{ 0x028c, "Quadro4 700 GoGL" },
	{ 0x0290, "GeForce 7900 GTX" },
	{ 0x0291, "GeForce 7900 GT/GTO" },
	{ 0x0292, "GeForce 7900 GS" },
	{ 0x0293, "GeForce 7950 GX2" },
	{ 0x0294, "GeForce 7950 GX2" },
	{ 0x0295, "GeForce 7950 GT" },
	{ 0x0297, "GeForce Go 7950 GTX" },
	{ 0x0298, "GeForce Go 7900 GS" },
	{ 0x0299, "Quadro NVS 510M" },
	{ 0x029a, "Quadro FX 2500M" },
	{ 0x029b, "Quadro FX 1500M" },
	{ 0x029c, "Quadro FX 5500" },
	{ 0x029d, "Quadro FX 3500" },
	{ 0x029e, "Quadro FX 1500" },
	{ 0x029f, "Quadro FX 4500 X2" },
	{ 0x02e0, "GeForce 7600 GT" },
	{ 0x02e1, "GeForce 7600 GS" },
	{ 0x02e2, "GeForce 7300 GT" },
	{ 0x02e3, "GeForce 7900 GS" },
	{ 0x02e4, "GeForce 7950 GT" },
	{ 0x0301, "GeForce FX 5800 Ultra" },
	{ 0x0302, "GeForce FX 5800" },
	{ 0x0308, "Quadro FX 2000" },
	{ 0x0309, "Quadro FX 1000" },
	{ 0x0311, "GeForce FX 5600 Ultra" },
	{ 0x0312, "GeForce FX 5600" },
	{ 0x0314, "GeForce FX 5600XT" },
	{ 0x031a, "GeForce FX Go5600" },
	{ 0x031b, "GeForce FX Go5650" },
	{ 0x031c, "Quadro FX Go700" },
	{ 0x0320, "GeForce FX 5200" },
	{ 0x0321, "GeForce FX 5200 Ultra" },
	{ 0x0322, "GeForce FX 5200", nvkm_device_pci_10de_0322 },
	{ 0x0323, "GeForce FX 5200LE" },
	{ 0x0324, "GeForce FX Go5200" },
	{ 0x0325, "GeForce FX Go5250" },
	{ 0x0326, "GeForce FX 5500" },
	{ 0x0327, "GeForce FX 5100" },
	{ 0x0328, "GeForce FX Go5200 32M/64M" },
	{ 0x032a, "Quadro NVS 55/280 PCI" },
	{ 0x032b, "Quadro FX 500/FX 600" },
	{ 0x032c, "GeForce FX Go53xx" },
	{ 0x032d, "GeForce FX Go5100" },
	{ 0x0330, "GeForce FX 5900 Ultra" },
	{ 0x0331, "GeForce FX 5900" },
	{ 0x0332, "GeForce FX 5900XT" },
	{ 0x0333, "GeForce FX 5950 Ultra" },
	{ 0x0334, "GeForce FX 5900ZT" },
	{ 0x0338, "Quadro FX 3000" },
	{ 0x033f, "Quadro FX 700" },
	{ 0x0341, "GeForce FX 5700 Ultra" },
	{ 0x0342, "GeForce FX 5700" },
	{ 0x0343, "GeForce FX 5700LE" },
	{ 0x0344, "GeForce FX 5700VE" },
	{ 0x0347, "GeForce FX Go5700" },
	{ 0x0348, "GeForce FX Go5700" },
	{ 0x034c, "Quadro FX Go1000" },
	{ 0x034e, "Quadro FX 1100" },
	{ 0x038b, "GeForce 7650 GS" },
	{ 0x0390, "GeForce 7650 GS" },
	{ 0x0391, "GeForce 7600 GT" },
	{ 0x0392, "GeForce 7600 GS" },
	{ 0x0393, "GeForce 7300 GT" },
	{ 0x0394, "GeForce 7600 LE" },
	{ 0x0395, "GeForce 7300 GT" },
	{ 0x0397, "GeForce Go 7700" },
	{ 0x0398, "GeForce Go 7600" },
	{ 0x0399, "GeForce Go 7600 GT" },
	{ 0x039c, "Quadro FX 560M" },
	{ 0x039e, "Quadro FX 560" },
	{ 0x03d0, "GeForce 6150SE nForce 430" },
	{ 0x03d1, "GeForce 6100 nForce 405" },
	{ 0x03d2, "GeForce 6100 nForce 400" },
	{ 0x03d5, "GeForce 6100 nForce 420" },
	{ 0x03d6, "GeForce 7025 / nForce 630a" },
	{ 0x0400, "GeForce 8600 GTS" },
	{ 0x0401, "GeForce 8600 GT" },
	{ 0x0402, "GeForce 8600 GT" },
	{ 0x0403, "GeForce 8600 GS" },
	{ 0x0404, "GeForce 8400 GS" },
	{ 0x0405, "GeForce 9500M GS" },
	{ 0x0406, "GeForce 8300 GS" },
	{ 0x0407, "GeForce 8600M GT" },
	{ 0x0408, "GeForce 9650M GS" },
	{ 0x0409, "GeForce 8700M GT" },
	{ 0x040a, "Quadro FX 370" },
	{ 0x040b, "Quadro NVS 320M" },
	{ 0x040c, "Quadro FX 570M" },
	{ 0x040d, "Quadro FX 1600M" },
	{ 0x040e, "Quadro FX 570" },
	{ 0x040f, "Quadro FX 1700" },
	{ 0x0410, "GeForce GT 330" },
	{ 0x0420, "GeForce 8400 SE" },
	{ 0x0421, "GeForce 8500 GT" },
	{ 0x0422, "GeForce 8400 GS" },
	{ 0x0423, "GeForce 8300 GS" },
	{ 0x0424, "GeForce 8400 GS" },
	{ 0x0425, "GeForce 8600M GS" },
	{ 0x0426, "GeForce 8400M GT" },
	{ 0x0427, "GeForce 8400M GS" },
	{ 0x0428, "GeForce 8400M G" },
	{ 0x0429, "Quadro NVS 140M" },
	{ 0x042a, "Quadro NVS 130M" },
	{ 0x042b, "Quadro NVS 135M" },
	{ 0x042c, "GeForce 9400 GT" },
	{ 0x042d, "Quadro FX 360M" },
	{ 0x042e, "GeForce 9300M G" },
	{ 0x042f, "Quadro NVS 290" },
	{ 0x0531, "GeForce 7150M / nForce 630M" },
	{ 0x0533, "GeForce 7000M / nForce 610M" },
	{ 0x053a, "GeForce 7050 PV / nForce 630a" },
	{ 0x053b, "GeForce 7050 PV / nForce 630a" },
	{ 0x053e, "GeForce 7025 / nForce 630a" },
	{ 0x05e0, "GeForce GTX 295" },
	{ 0x05e1, "GeForce GTX 280" },
	{ 0x05e2, "GeForce GTX 260" },
	{ 0x05e3, "GeForce GTX 285" },
	{ 0x05e6, "GeForce GTX 275" },
	{ 0x05e7, "Tesla C1060", nvkm_device_pci_10de_05e7 },
	{ 0x05ea, "GeForce GTX 260" },
	{ 0x05eb, "GeForce GTX 295" },
	{ 0x05ed, "Quadroplex 2200 D2" },
	{ 0x05f8, "Quadroplex 2200 S4" },
	{ 0x05f9, "Quadro CX" },
	{ 0x05fd, "Quadro FX 5800" },
	{ 0x05fe, "Quadro FX 4800" },
	{ 0x05ff, "Quadro FX 3800" },
	{ 0x0600, "GeForce 8800 GTS 512" },
	{ 0x0601, "GeForce 9800 GT" },
	{ 0x0602, "GeForce 8800 GT" },
	{ 0x0603, "GeForce GT 230" },
	{ 0x0604, "GeForce 9800 GX2" },
	{ 0x0605, "GeForce 9800 GT" },
	{ 0x0606, "GeForce 8800 GS" },
	{ 0x0607, "GeForce GTS 240" },
	{ 0x0608, "GeForce 9800M GTX" },
	{ 0x0609, "GeForce 8800M GTS", nvkm_device_pci_10de_0609 },
	{ 0x060a, "GeForce GTX 280M" },
	{ 0x060b, "GeForce 9800M GT" },
	{ 0x060c, "GeForce 8800M GTX" },
	{ 0x060d, "GeForce 8800 GS" },
	{ 0x060f, "GeForce GTX 285M" },
	{ 0x0610, "GeForce 9600 GSO" },
	{ 0x0611, "GeForce 8800 GT" },
	{ 0x0612, "GeForce 9800 GTX/9800 GTX+" },
	{ 0x0613, "GeForce 9800 GTX+" },
	{ 0x0614, "GeForce 9800 GT" },
	{ 0x0615, "GeForce GTS 250" },
	{ 0x0617, "GeForce 9800M GTX" },
	{ 0x0618, "GeForce GTX 260M" },
	{ 0x0619, "Quadro FX 4700 X2" },
	{ 0x061a, "Quadro FX 3700" },
	{ 0x061b, "Quadro VX 200" },
	{ 0x061c, "Quadro FX 3600M" },
	{ 0x061d, "Quadro FX 2800M" },
	{ 0x061e, "Quadro FX 3700M" },
	{ 0x061f, "Quadro FX 3800M" },
	{ 0x0621, "GeForce GT 230" },
	{ 0x0622, "GeForce 9600 GT" },
	{ 0x0623, "GeForce 9600 GS" },
	{ 0x0625, "GeForce 9600 GSO 512" },
	{ 0x0626, "GeForce GT 130" },
	{ 0x0627, "GeForce GT 140" },
	{ 0x0628, "GeForce 9800M GTS" },
	{ 0x062a, "GeForce 9700M GTS" },
	{ 0x062b, "GeForce 9800M GS" },
	{ 0x062c, "GeForce 9800M GTS" },
	{ 0x062d, "GeForce 9600 GT" },
	{ 0x062e, "GeForce 9600 GT", nvkm_device_pci_10de_062e },
	{ 0x0630, "GeForce 9700 S" },
	{ 0x0631, "GeForce GTS 160M" },
	{ 0x0632, "GeForce GTS 150M" },
	{ 0x0635, "GeForce 9600 GSO" },
	{ 0x0637, "GeForce 9600 GT" },
	{ 0x0638, "Quadro FX 1800" },
	{ 0x063a, "Quadro FX 2700M" },
	{ 0x0640, "GeForce 9500 GT" },
	{ 0x0641, "GeForce 9400 GT" },
	{ 0x0643, "GeForce 9500 GT" },
	{ 0x0644, "GeForce 9500 GS" },
	{ 0x0645, "GeForce 9500 GS" },
	{ 0x0646, "GeForce GT 120" },
	{ 0x0647, "GeForce 9600M GT" },
	{ 0x0648, "GeForce 9600M GS" },
	{ 0x0649, "GeForce 9600M GT", nvkm_device_pci_10de_0649 },
	{ 0x064a, "GeForce 9700M GT" },
	{ 0x064b, "GeForce 9500M G" },
	{ 0x064c, "GeForce 9650M GT" },
	{ 0x0651, "GeForce G 110M" },
	{ 0x0652, "GeForce GT 130M", nvkm_device_pci_10de_0652 },
	{ 0x0653, "GeForce GT 120M" },
	{ 0x0654, "GeForce GT 220M", nvkm_device_pci_10de_0654 },
	{ 0x0655, NULL, nvkm_device_pci_10de_0655 },
	{ 0x0656, NULL, nvkm_device_pci_10de_0656 },
	{ 0x0658, "Quadro FX 380" },
	{ 0x0659, "Quadro FX 580" },
	{ 0x065a, "Quadro FX 1700M" },
	{ 0x065b, "GeForce 9400 GT" },
	{ 0x065c, "Quadro FX 770M" },
	{ 0x06c0, "GeForce GTX 480" },
	{ 0x06c4, "GeForce GTX 465" },
	{ 0x06ca, "GeForce GTX 480M" },
	{ 0x06cd, "GeForce GTX 470" },
	{ 0x06d1, "Tesla C2050 / C2070", nvkm_device_pci_10de_06d1 },
	{ 0x06d2, "Tesla M2070", nvkm_device_pci_10de_06d2 },
	{ 0x06d8, "Quadro 6000" },
	{ 0x06d9, "Quadro 5000" },
	{ 0x06da, "Quadro 5000M" },
	{ 0x06dc, "Quadro 6000" },
	{ 0x06dd, "Quadro 4000" },
	{ 0x06de, "Tesla T20 Processor", nvkm_device_pci_10de_06de },
	{ 0x06df, "Tesla M2070-Q" },
	{ 0x06e0, "GeForce 9300 GE" },
	{ 0x06e1, "GeForce 9300 GS" },
	{ 0x06e2, "GeForce 8400" },
	{ 0x06e3, "GeForce 8400 SE" },
	{ 0x06e4, "GeForce 8400 GS" },
	{ 0x06e5, "GeForce 9300M GS" },
	{ 0x06e6, "GeForce G100" },
	{ 0x06e7, "GeForce 9300 SE" },
	{ 0x06e8, "GeForce 9200M GS", nvkm_device_pci_10de_06e8 },
	{ 0x06e9, "GeForce 9300M GS" },
	{ 0x06ea, "Quadro NVS 150M" },
	{ 0x06eb, "Quadro NVS 160M" },
	{ 0x06ec, "GeForce G 105M" },
	{ 0x06ef, "GeForce G 103M" },
	{ 0x06f1, "GeForce G105M" },
	{ 0x06f8, "Quadro NVS 420" },
	{ 0x06f9, "Quadro FX 370 LP", nvkm_device_pci_10de_06f9 },
	{ 0x06fa, "Quadro NVS 450" },
	{ 0x06fb, "Quadro FX 370M" },
	{ 0x06fd, "Quadro NVS 295" },
	{ 0x06ff, "HICx16 + Graphics", nvkm_device_pci_10de_06ff },
	{ 0x07e0, "GeForce 7150 / nForce 630i" },
	{ 0x07e1, "GeForce 7100 / nForce 630i" },
	{ 0x07e2, "GeForce 7050 / nForce 630i" },
	{ 0x07e3, "GeForce 7050 / nForce 610i" },
	{ 0x07e5, "GeForce 7050 / nForce 620i" },
	{ 0x0840, "GeForce 8200M" },
	{ 0x0844, "GeForce 9100M G" },
	{ 0x0845, "GeForce 8200M G" },
	{ 0x0846, "GeForce 9200" },
	{ 0x0847, "GeForce 9100" },
	{ 0x0848, "GeForce 8300" },
	{ 0x0849, "GeForce 8200" },
	{ 0x084a, "nForce 730a" },
	{ 0x084b, "GeForce 9200" },
	{ 0x084c, "nForce 980a/780a SLI" },
	{ 0x084d, "nForce 750a SLI" },
	{ 0x084f, "GeForce 8100 / nForce 720a" },
	{ 0x0860, "GeForce 9400" },
	{ 0x0861, "GeForce 9400" },
	{ 0x0862, "GeForce 9400M G" },
	{ 0x0863, "GeForce 9400M" },
	{ 0x0864, "GeForce 9300" },
	{ 0x0865, "ION" },
	{ 0x0866, "GeForce 9400M G", nvkm_device_pci_10de_0866 },
	{ 0x0867, "GeForce 9400" },
	{ 0x0868, "nForce 760i SLI" },
	{ 0x0869, "GeForce 9400" },
	{ 0x086a, "GeForce 9400" },
	{ 0x086c, "GeForce 9300 / nForce 730i" },
	{ 0x086d, "GeForce 9200" },
	{ 0x086e, "GeForce 9100M G" },
	{ 0x086f, "GeForce 8200M G" },
	{ 0x0870, "GeForce 9400M" },
	{ 0x0871, "GeForce 9200" },
	{ 0x0872, "GeForce G102M", nvkm_device_pci_10de_0872 },
	{ 0x0873, "GeForce G102M", nvkm_device_pci_10de_0873 },
	{ 0x0874, "ION" },
	{ 0x0876, "ION" },
	{ 0x087a, "GeForce 9400" },
	{ 0x087d, "ION" },
	{ 0x087e, "ION LE" },
	{ 0x087f, "ION LE" },
	{ 0x08a0, "GeForce 320M" },
	{ 0x08a2, "GeForce 320M" },
	{ 0x08a3, "GeForce 320M" },
	{ 0x08a4, "GeForce 320M" },
	{ 0x08a5, "GeForce 320M" },
	{ 0x0a20, "GeForce GT 220" },
	{ 0x0a22, "GeForce 315" },
	{ 0x0a23, "GeForce 210" },
	{ 0x0a26, "GeForce 405" },
	{ 0x0a27, "GeForce 405" },
	{ 0x0a28, "GeForce GT 230M" },
	{ 0x0a29, "GeForce GT 330M" },
	{ 0x0a2a, "GeForce GT 230M" },
	{ 0x0a2b, "GeForce GT 330M" },
	{ 0x0a2c, "NVS 5100M" },
	{ 0x0a2d, "GeForce GT 320M" },
	{ 0x0a32, "GeForce GT 415" },
	{ 0x0a34, "GeForce GT 240M" },
	{ 0x0a35, "GeForce GT 325M" },
	{ 0x0a38, "Quadro 400" },
	{ 0x0a3c, "Quadro FX 880M" },
	{ 0x0a60, "GeForce G210" },
	{ 0x0a62, "GeForce 205" },
	{ 0x0a63, "GeForce 310" },
	{ 0x0a64, "Second Generation ION" },
	{ 0x0a65, "GeForce 210" },
	{ 0x0a66, "GeForce 310" },
	{ 0x0a67, "GeForce 315" },
	{ 0x0a68, "GeForce G105M" },
	{ 0x0a69, "GeForce G105M" },
	{ 0x0a6a, "NVS 2100M" },
	{ 0x0a6c, "NVS 3100M" },
	{ 0x0a6e, "GeForce 305M", nvkm_device_pci_10de_0a6e },
	{ 0x0a6f, "Second Generation ION" },
	{ 0x0a70, "GeForce 310M", nvkm_device_pci_10de_0a70 },
	{ 0x0a71, "GeForce 305M" },
	{ 0x0a72, "GeForce 310M" },
	{ 0x0a73, "GeForce 305M", nvkm_device_pci_10de_0a73 },
	{ 0x0a74, "GeForce G210M", nvkm_device_pci_10de_0a74 },
	{ 0x0a75, "GeForce 310M", nvkm_device_pci_10de_0a75 },
	{ 0x0a76, "Second Generation ION" },
	{ 0x0a78, "Quadro FX 380 LP" },
	{ 0x0a7a, "GeForce 315M", nvkm_device_pci_10de_0a7a },
	{ 0x0a7c, "Quadro FX 380M" },
	{ 0x0ca0, "GeForce GT 330" },
	{ 0x0ca2, "GeForce GT 320" },
	{ 0x0ca3, "GeForce GT 240" },
	{ 0x0ca4, "GeForce GT 340" },
	{ 0x0ca5, "GeForce GT 220" },
	{ 0x0ca7, "GeForce GT 330" },
	{ 0x0ca8, "GeForce GTS 260M" },
	{ 0x0ca9, "GeForce GTS 250M" },
	{ 0x0cac, "GeForce GT 220" },
	{ 0x0caf, "GeForce GT 335M" },
	{ 0x0cb0, "GeForce GTS 350M" },
	{ 0x0cb1, "GeForce GTS 360M" },
	{ 0x0cbc, "Quadro FX 1800M" },
	{ 0x0dc0, "GeForce GT 440" },
	{ 0x0dc4, "GeForce GTS 450" },
	{ 0x0dc5, "GeForce GTS 450" },
	{ 0x0dc6, "GeForce GTS 450" },
	{ 0x0dcd, "GeForce GT 555M" },
	{ 0x0dce, "GeForce GT 555M" },
	{ 0x0dd1, "GeForce GTX 460M" },
	{ 0x0dd2, "GeForce GT 445M" },
	{ 0x0dd3, "GeForce GT 435M" },
	{ 0x0dd6, "GeForce GT 550M" },
	{ 0x0dd8, "Quadro 2000", nvkm_device_pci_10de_0dd8 },
	{ 0x0dda, "Quadro 2000M" },
	{ 0x0de0, "GeForce GT 440" },
	{ 0x0de1, "GeForce GT 430" },
	{ 0x0de2, "GeForce GT 420" },
	{ 0x0de3, "GeForce GT 635M" },
	{ 0x0de4, "GeForce GT 520" },
	{ 0x0de5, "GeForce GT 530" },
	{ 0x0de7, "GeForce GT 610" },
	{ 0x0de8, "GeForce GT 620M" },
	{ 0x0de9, "GeForce GT 630M", nvkm_device_pci_10de_0de9 },
	{ 0x0dea, "GeForce 610M", nvkm_device_pci_10de_0dea },
	{ 0x0deb, "GeForce GT 555M" },
	{ 0x0dec, "GeForce GT 525M" },
	{ 0x0ded, "GeForce GT 520M" },
	{ 0x0dee, "GeForce GT 415M" },
	{ 0x0def, "NVS 5400M" },
	{ 0x0df0, "GeForce GT 425M" },
	{ 0x0df1, "GeForce GT 420M" },
	{ 0x0df2, "GeForce GT 435M" },
	{ 0x0df3, "GeForce GT 420M" },
	{ 0x0df4, "GeForce GT 540M", nvkm_device_pci_10de_0df4 },
	{ 0x0df5, "GeForce GT 525M" },
	{ 0x0df6, "GeForce GT 550M" },
	{ 0x0df7, "GeForce GT 520M" },
	{ 0x0df8, "Quadro 600" },
	{ 0x0df9, "Quadro 500M" },
	{ 0x0dfa, "Quadro 1000M" },
	{ 0x0dfc, "NVS 5200M" },
	{ 0x0e22, "GeForce GTX 460" },
	{ 0x0e23, "GeForce GTX 460 SE" },
	{ 0x0e24, "GeForce GTX 460" },
	{ 0x0e30, "GeForce GTX 470M" },
	{ 0x0e31, "GeForce GTX 485M" },
	{ 0x0e3a, "Quadro 3000M" },
	{ 0x0e3b, "Quadro 4000M" },
	{ 0x0f00, "GeForce GT 630" },
	{ 0x0f01, "GeForce GT 620" },
	{ 0x0f02, "GeForce GT 730" },
	{ 0x0fc0, "GeForce GT 640" },
	{ 0x0fc1, "GeForce GT 640" },
	{ 0x0fc2, "GeForce GT 630" },
	{ 0x0fc6, "GeForce GTX 650" },
	{ 0x0fc8, "GeForce GT 740" },
	{ 0x0fc9, "GeForce GT 730" },
	{ 0x0fcd, "GeForce GT 755M", nvkm_device_pci_10de_0fcd },
	{ 0x0fce, "GeForce GT 640M LE" },
	{ 0x0fd1, "GeForce GT 650M" },
	{ 0x0fd2, "GeForce GT 640M", nvkm_device_pci_10de_0fd2 },
	{ 0x0fd3, "GeForce GT 640M LE" },
	{ 0x0fd4, "GeForce GTX 660M" },
	{ 0x0fd5, "GeForce GT 650M" },
	{ 0x0fd8, "GeForce GT 640M" },
	{ 0x0fd9, "GeForce GT 645M" },
	{ 0x0fdf, "GeForce GT 740M" },
	{ 0x0fe0, "GeForce GTX 660M" },
	{ 0x0fe1, "GeForce GT 730M" },
	{ 0x0fe2, "GeForce GT 745M" },
	{ 0x0fe3, "GeForce GT 745M", nvkm_device_pci_10de_0fe3 },
	{ 0x0fe4, "GeForce GT 750M" },
	{ 0x0fe9, "GeForce GT 750M" },
	{ 0x0fea, "GeForce GT 755M" },
	{ 0x0fec, "GeForce 710A" },
	{ 0x0fef, "GRID K340" },
	{ 0x0ff2, "GRID K1" },
	{ 0x0ff3, "Quadro K420" },
	{ 0x0ff6, "Quadro K1100M" },
	{ 0x0ff8, "Quadro K500M" },
	{ 0x0ff9, "Quadro K2000D" },
	{ 0x0ffa, "Quadro K600" },
	{ 0x0ffb, "Quadro K2000M" },
	{ 0x0ffc, "Quadro K1000M" },
	{ 0x0ffd, "NVS 510" },
	{ 0x0ffe, "Quadro K2000" },
	{ 0x0fff, "Quadro 410" },
	{ 0x1001, "GeForce GTX TITAN Z" },
	{ 0x1004, "GeForce GTX 780" },
	{ 0x1005, "GeForce GTX TITAN" },
	{ 0x1007, "GeForce GTX 780" },
	{ 0x1008, "GeForce GTX 780 Ti" },
	{ 0x100a, "GeForce GTX 780 Ti" },
	{ 0x100c, "GeForce GTX TITAN Black" },
	{ 0x1021, "Tesla K20Xm" },
	{ 0x1022, "Tesla K20c" },
	{ 0x1023, "Tesla K40m" },
	{ 0x1024, "Tesla K40c" },
	{ 0x1026, "Tesla K20s" },
	{ 0x1027, "Tesla K40st" },
	{ 0x1028, "Tesla K20m" },
	{ 0x1029, "Tesla K40s" },
	{ 0x102a, "Tesla K40t" },
	{ 0x102d, "Tesla K80" },
	{ 0x103a, "Quadro K6000" },
	{ 0x103c, "Quadro K5200" },
	{ 0x1040, "GeForce GT 520" },
	{ 0x1042, "GeForce 510" },
	{ 0x1048, "GeForce 605" },
	{ 0x1049, "GeForce GT 620" },
	{ 0x104a, "GeForce GT 610" },
	{ 0x104b, "GeForce GT 625 (OEM)", nvkm_device_pci_10de_104b },
	{ 0x104c, "GeForce GT 705" },
	{ 0x1050, "GeForce GT 520M" },
	{ 0x1051, "GeForce GT 520MX" },
	{ 0x1052, "GeForce GT 520M" },
	{ 0x1054, "GeForce 410M" },
	{ 0x1055, "GeForce 410M" },
	{ 0x1056, "NVS 4200M" },
	{ 0x1057, "NVS 4200M" },
	{ 0x1058, "GeForce 610M", nvkm_device_pci_10de_1058 },
	{ 0x1059, "GeForce 610M" },
	{ 0x105a, "GeForce 610M" },
	{ 0x105b, "GeForce 705M", nvkm_device_pci_10de_105b },
	{ 0x107c, "NVS 315" },
	{ 0x107d, "NVS 310" },
	{ 0x1080, "GeForce GTX 580" },
	{ 0x1081, "GeForce GTX 570" },
	{ 0x1082, "GeForce GTX 560 Ti" },
	{ 0x1084, "GeForce GTX 560" },
	{ 0x1086, "GeForce GTX 570" },
	{ 0x1087, "GeForce GTX 560 Ti" },
	{ 0x1088, "GeForce GTX 590" },
	{ 0x1089, "GeForce GTX 580" },
	{ 0x108b, "GeForce GTX 580" },
	{ 0x1091, "Tesla M2090", nvkm_device_pci_10de_1091 },
	{ 0x1094, "Tesla M2075" },
	{ 0x1096, "Tesla C2075", nvkm_device_pci_10de_1096 },
	{ 0x109a, "Quadro 5010M" },
	{ 0x109b, "Quadro 7000" },
	{ 0x10c0, "GeForce 9300 GS" },
	{ 0x10c3, "GeForce 8400GS" },
	{ 0x10c5, "GeForce 405" },
	{ 0x10d8, "NVS 300" },
	{ 0x1140, NULL, nvkm_device_pci_10de_1140 },
	{ 0x1180, "GeForce GTX 680" },
	{ 0x1183, "GeForce GTX 660 Ti" },
	{ 0x1184, "GeForce GTX 770" },
	{ 0x1185, "GeForce GTX 660", nvkm_device_pci_10de_1185 },
	{ 0x1187, "GeForce GTX 760" },
	{ 0x1188, "GeForce GTX 690" },
	{ 0x1189, "GeForce GTX 670", nvkm_device_pci_10de_1189 },
	{ 0x118a, "GRID K520" },
	{ 0x118e, "GeForce GTX 760 (192-bit)" },
	{ 0x118f, "Tesla K10" },
	{ 0x1193, "GeForce GTX 760 Ti OEM" },
	{ 0x1194, "Tesla K8" },
	{ 0x1195, "GeForce GTX 660" },
	{ 0x1198, "GeForce GTX 880M" },
	{ 0x1199, "GeForce GTX 870M", nvkm_device_pci_10de_1199 },
	{ 0x119a, "GeForce GTX 860M" },
	{ 0x119d, "GeForce GTX 775M" },
	{ 0x119e, "GeForce GTX 780M" },
	{ 0x119f, "GeForce GTX 780M" },
	{ 0x11a0, "GeForce GTX 680M" },
	{ 0x11a1, "GeForce GTX 670MX" },
	{ 0x11a2, "GeForce GTX 675MX" },
	{ 0x11a3, "GeForce GTX 680MX" },
	{ 0x11a7, "GeForce GTX 675MX" },
	{ 0x11b4, "Quadro K4200" },
	{ 0x11b6, "Quadro K3100M" },
	{ 0x11b7, "Quadro K4100M" },
	{ 0x11b8, "Quadro K5100M" },
	{ 0x11ba, "Quadro K5000" },
	{ 0x11bc, "Quadro K5000M" },
	{ 0x11bd, "Quadro K4000M" },
	{ 0x11be, "Quadro K3000M" },
	{ 0x11bf, "GRID K2" },
	{ 0x11c0, "GeForce GTX 660" },
	{ 0x11c2, "GeForce GTX 650 Ti BOOST" },
	{ 0x11c3, "GeForce GTX 650 Ti" },
	{ 0x11c4, "GeForce GTX 645" },
	{ 0x11c5, "GeForce GT 740" },
	{ 0x11c6, "GeForce GTX 650 Ti" },
	{ 0x11c8, "GeForce GTX 650" },
	{ 0x11cb, "GeForce GT 740" },
	{ 0x11e0, "GeForce GTX 770M" },
	{ 0x11e1, "GeForce GTX 765M" },
	{ 0x11e2, "GeForce GTX 765M" },
	{ 0x11e3, "GeForce GTX 760M", nvkm_device_pci_10de_11e3 },
	{ 0x11fa, "Quadro K4000" },
	{ 0x11fc, "Quadro K2100M", nvkm_device_pci_10de_11fc },
	{ 0x1200, "GeForce GTX 560 Ti" },
	{ 0x1201, "GeForce GTX 560" },
	{ 0x1203, "GeForce GTX 460 SE v2" },
	{ 0x1205, "GeForce GTX 460 v2" },
	{ 0x1206, "GeForce GTX 555" },
	{ 0x1207, "GeForce GT 645" },
	{ 0x1208, "GeForce GTX 560 SE" },
	{ 0x1210, "GeForce GTX 570M" },
	{ 0x1211, "GeForce GTX 580M" },
	{ 0x1212, "GeForce GTX 675M" },
	{ 0x1213, "GeForce GTX 670M" },
	{ 0x1241, "GeForce GT 545" },
	{ 0x1243, "GeForce GT 545" },
	{ 0x1244, "GeForce GTX 550 Ti" },
	{ 0x1245, "GeForce GTS 450" },
	{ 0x1246, "GeForce GT 550M" },
	{ 0x1247, "GeForce GT 555M", nvkm_device_pci_10de_1247 },
	{ 0x1248, "GeForce GT 555M" },
	{ 0x1249, "GeForce GTS 450" },
	{ 0x124b, "GeForce GT 640" },
	{ 0x124d, "GeForce GT 555M", nvkm_device_pci_10de_124d },
	{ 0x1251, "GeForce GTX 560M" },
	{ 0x1280, "GeForce GT 635" },
	{ 0x1281, "GeForce GT 710" },
	{ 0x1282, "GeForce GT 640" },
	{ 0x1284, "GeForce GT 630" },
	{ 0x1286, "GeForce GT 720" },
	{ 0x1287, "GeForce GT 730" },
	{ 0x1288, "GeForce GT 720" },
	{ 0x1289, "GeForce GT 710" },
	{ 0x1290, "GeForce GT 730M", nvkm_device_pci_10de_1290 },
	{ 0x1291, "GeForce GT 735M" },
	{ 0x1292, "GeForce GT 740M", nvkm_device_pci_10de_1292 },
	{ 0x1293, "GeForce GT 730M" },
	{ 0x1295, "GeForce 710M", nvkm_device_pci_10de_1295 },
	{ 0x1296, "GeForce 825M" },
	{ 0x1298, "GeForce GT 720M" },
	{ 0x1299, "GeForce 920M", nvkm_device_pci_10de_1299 },
	{ 0x129a, "GeForce 910M" },
	{ 0x12b9, "Quadro K610M" },
	{ 0x12ba, "Quadro K510M" },
	{ 0x1340, "GeForce 830M", nvkm_device_pci_10de_1340 },
	{ 0x1341, "GeForce 840M", nvkm_device_pci_10de_1341 },
	{ 0x1344, "GeForce 845M" },
	{ 0x1346, "GeForce 930M", nvkm_device_pci_10de_1346 },
	{ 0x1347, "GeForce 940M", nvkm_device_pci_10de_1347 },
	{ 0x137a, NULL, nvkm_device_pci_10de_137a },
	{ 0x137d, NULL, nvkm_device_pci_10de_137d },
	{ 0x1380, "GeForce GTX 750 Ti" },
	{ 0x1381, "GeForce GTX 750" },
	{ 0x1382, "GeForce GTX 745" },
	{ 0x1390, "GeForce 845M" },
	{ 0x1391, "GeForce GTX 850M", nvkm_device_pci_10de_1391 },
	{ 0x1392, "GeForce GTX 860M", nvkm_device_pci_10de_1392 },
	{ 0x1393, "GeForce 840M" },
	{ 0x1398, "GeForce 845M" },
	{ 0x139a, "GeForce GTX 950M", nvkm_device_pci_10de_139a },
	{ 0x139b, "GeForce GTX 960M", nvkm_device_pci_10de_139b },
	{ 0x139c, "GeForce 940M" },
	{ 0x13b3, "Quadro K2200M" },
	{ 0x13ba, "Quadro K2200" },
	{ 0x13bb, "Quadro K620" },
	{ 0x13bc, "Quadro K1200" },
	{ 0x13c0, "GeForce GTX 980" },
	{ 0x13c2, "GeForce GTX 970" },
	{ 0x13d7, "GeForce GTX 980M" },
	{ 0x13d8, "GeForce GTX 970M" },
	{ 0x13d9, "GeForce GTX 965M" },
	{ 0x1401, "GeForce GTX 960" },
	{ 0x1617, "GeForce GTX 980M" },
	{ 0x1618, "GeForce GTX 970M" },
	{ 0x1619, "GeForce GTX 965M" },
	{ 0x17c2, "GeForce GTX TITAN X" },
	{ 0x17c8, "GeForce GTX 980 Ti" },
	{ 0x17f0, "Quadro M6000" },
	{}
};

static struct nvkm_device_pci *
nvkm_device_pci(struct nvkm_device *device)
{
	return container_of(device, struct nvkm_device_pci, device);
}

static resource_size_t
nvkm_device_pci_resource_addr(struct nvkm_device *device, unsigned bar)
{
	struct nvkm_device_pci *pdev = nvkm_device_pci(device);
	return pci_resource_start(pdev->pdev, bar);
}

static resource_size_t
nvkm_device_pci_resource_size(struct nvkm_device *device, unsigned bar)
{
	struct nvkm_device_pci *pdev = nvkm_device_pci(device);
	return pci_resource_len(pdev->pdev, bar);
}

static void
nvkm_device_pci_fini(struct nvkm_device *device, bool suspend)
{
	struct nvkm_device_pci *pdev = nvkm_device_pci(device);
	if (suspend) {
		pci_disable_device(pdev->pdev);
		pdev->suspend = true;
	}
}

static int
nvkm_device_pci_preinit(struct nvkm_device *device)
{
	struct nvkm_device_pci *pdev = nvkm_device_pci(device);
	if (pdev->suspend) {
		int ret = pci_enable_device(pdev->pdev);
		if (ret)
			return ret;
		pci_set_master(pdev->pdev);
		pdev->suspend = false;
	}
	return 0;
}

static void *
nvkm_device_pci_dtor(struct nvkm_device *device)
{
	struct nvkm_device_pci *pdev = nvkm_device_pci(device);
	pci_disable_device(pdev->pdev);
	return pdev;
}

static const struct nvkm_device_func
nvkm_device_pci_func = {
	.pci = nvkm_device_pci,
	.dtor = nvkm_device_pci_dtor,
	.preinit = nvkm_device_pci_preinit,
	.fini = nvkm_device_pci_fini,
	.resource_addr = nvkm_device_pci_resource_addr,
	.resource_size = nvkm_device_pci_resource_size,
	.cpu_coherent = !IS_ENABLED(CONFIG_ARM),
};

int
nvkm_device_pci_new(struct pci_dev *pci_dev, const char *cfg, const char *dbg,
		    bool detect, bool mmio, u64 subdev_mask,
		    struct nvkm_device **pdevice)
{
	const struct nvkm_device_quirk *quirk = NULL;
	const struct nvkm_device_pci_device *pcid;
	const struct nvkm_device_pci_vendor *pciv;
	const char *name = NULL;
	struct nvkm_device_pci *pdev;
	int ret;

	ret = pci_enable_device(pci_dev);
	if (ret)
		return ret;

	switch (pci_dev->vendor) {
	case 0x10de: pcid = nvkm_device_pci_10de; break;
	default:
		pcid = NULL;
		break;
	}

	while (pcid && pcid->device) {
		if (pciv = pcid->vendor, pcid->device == pci_dev->device) {
			while (pciv && pciv->vendor) {
				if (pciv->vendor == pci_dev->subsystem_vendor &&
				    pciv->device == pci_dev->subsystem_device) {
					quirk = &pciv->quirk;
					name  =  pciv->name;
					break;
				}
				pciv++;
			}
			if (!name)
				name = pcid->name;
			break;
		}
		pcid++;
	}

	if (!(pdev = kzalloc(sizeof(*pdev), GFP_KERNEL))) {
		pci_disable_device(pci_dev);
		return -ENOMEM;
	}
	*pdevice = &pdev->device;
	pdev->pdev = pci_dev;

	return nvkm_device_ctor(&nvkm_device_pci_func, quirk, &pci_dev->dev,
				pci_is_pcie(pci_dev) ? NVKM_DEVICE_PCIE :
				pci_find_capability(pci_dev, PCI_CAP_ID_AGP) ?
				NVKM_DEVICE_AGP : NVKM_DEVICE_PCI,
				(u64)pci_domain_nr(pci_dev->bus) << 32 |
				     pci_dev->bus->number << 16 |
				     PCI_SLOT(pci_dev->devfn) << 8 |
				     PCI_FUNC(pci_dev->devfn), name,
				cfg, dbg, detect, mmio, subdev_mask,
				&pdev->device);
}