forked from linuxhw/ACPI
-
Notifications
You must be signed in to change notification settings - Fork 3
/
42BA815263DC
12011 lines (10908 loc) · 379 KB
/
42BA815263DC
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
Intel ACPI Component Architecture
ACPI Binary Table Extraction Utility version 20200110
Copyright (c) 2000 - 2020 Intel Corporation
Signature Length Version Oem Oem Oem Compiler Compiler
Id TableId RevisionId Name Revision
_________ __________ ____ ________ __________ __________ _______ __________
01) SSDT 0x00000852 0x01 "AMD " "CPMDFDGP" 0x00000001 "INTL" 0x20051117
02) MCFG 0x0000003C 0x01 "ALASKA" "A M I " 0x01072009 "MSFT" 0x00010013
03) APIC 0x00000072 0x03 "ALASKA" "A M I " 0x01072009 "AMI " 0x00010013
04) CRAT 0x00000578 0x01 "AMD " "BANTRY " 0x00000001 "AMD " 0x00000001
05) SSDT 0x000004B7 0x02 "AMD " "BANTRY " 0x00000001 "MSFT" 0x04000000
06) IVRS 0x00000068 0x02 "AMD " "BANTRY " 0x00000001 "AMD " 0x00000000
07) DSDT 0x00006083 0x02 "ALASKA" "A M I " 0x00000000 "INTL" 0x20051117
08) WDRT 0x00000047 0x01 "ALASKA" "A M I " 0x01072009 "AMI " 0x00000005
09) SSDT 0x0000122C 0x01 "AMD " "CPMCMN " 0x00000001 "INTL" 0x20051117
10) SSDT 0x00001457 0x01 "AMD " "CPMDFIGP" 0x00000001 "INTL" 0x20051117
11) FACP 0x0000010C 0x05 "ALASKA" "A M I " 0x01072009 "AMI " 0x00010013
12) FPDT 0x00000044 0x01 "ALASKA" "A M I " 0x01072009 "AMI " 0x00010013
13) SSDT 0x00000B9C 0x01 "AMD " "BANTRY " 0x00000001 "AMD " 0x00000001
14) HPET 0x00000038 0x01 "ALASKA" "A M I " 0x01072009 "AMI " 0x00000005
15) FACS 0x00000040 0x02
Found 15 ACPI tables in acpidump
APIC
----
[000h 0000 4] Signature : "APIC" [Multiple APIC Description Table (MADT)]
[004h 0004 4] Table Length : 00000072
[008h 0008 1] Revision : 03
[009h 0009 1] Checksum : 06
[00Ah 0010 6] Oem ID : "ALASKA"
[010h 0016 8] Oem Table ID : "A M I"
[018h 0024 4] Oem Revision : 01072009
[01Ch 0028 4] Asl Compiler ID : "AMI "
[020h 0032 4] Asl Compiler Revision : 00010013
[024h 0036 4] Local Apic Address : FEE00000
[028h 0040 4] Flags (decoded below) : 00000001
PC-AT Compatibility : 1
[02Ch 0044 1] Subtable Type : 00 [Processor Local APIC]
[02Dh 0045 1] Length : 08
[02Eh 0046 1] Processor ID : 01
[02Fh 0047 1] Local Apic ID : 10
[030h 0048 4] Flags (decoded below) : 00000001
Processor Enabled : 1
Runtime Online Capable : 0
[034h 0052 1] Subtable Type : 00 [Processor Local APIC]
[035h 0053 1] Length : 08
[036h 0054 1] Processor ID : 02
[037h 0055 1] Local Apic ID : 11
[038h 0056 4] Flags (decoded below) : 00000001
Processor Enabled : 1
Runtime Online Capable : 0
[03Ch 0060 1] Subtable Type : 00 [Processor Local APIC]
[03Dh 0061 1] Length : 08
[03Eh 0062 1] Processor ID : 03
[03Fh 0063 1] Local Apic ID : 12
[040h 0064 4] Flags (decoded below) : 00000001
Processor Enabled : 1
Runtime Online Capable : 0
[044h 0068 1] Subtable Type : 00 [Processor Local APIC]
[045h 0069 1] Length : 08
[046h 0070 1] Processor ID : 04
[047h 0071 1] Local Apic ID : 13
[048h 0072 4] Flags (decoded below) : 00000001
Processor Enabled : 1
Runtime Online Capable : 0
[04Ch 0076 1] Subtable Type : 01 [I/O APIC]
[04Dh 0077 1] Length : 0C
[04Eh 0078 1] I/O Apic ID : 00
[04Fh 0079 1] Reserved : 00
[050h 0080 4] Address : FEC00000
[054h 0084 4] Interrupt : 00000000
[058h 0088 1] Subtable Type : 02 [Interrupt Source Override]
[059h 0089 1] Length : 0A
[05Ah 0090 1] Bus : 00
[05Bh 0091 1] Source : 00
[05Ch 0092 4] Interrupt : 00000002
[060h 0096 2] Flags (decoded below) : 0000
Polarity : 0
Trigger Mode : 0
[062h 0098 1] Subtable Type : 02 [Interrupt Source Override]
[063h 0099 1] Length : 0A
[064h 0100 1] Bus : 00
[065h 0101 1] Source : 09
[066h 0102 4] Interrupt : 00000009
[06Ah 0106 2] Flags (decoded below) : 000F
Polarity : 3
Trigger Mode : 3
[06Ch 0108 1] Subtable Type : 04 [Local APIC NMI]
[06Dh 0109 1] Length : 06
[06Eh 0110 1] Processor ID : FF
[06Fh 0111 2] Flags (decoded below) : 0005
Polarity : 1
Trigger Mode : 1
[071h 0113 1] Interrupt Input LINT : 01
Raw Table Data: Length 114 (0x72)
0000: 41 50 49 43 72 00 00 00 03 06 41 4C 41 53 4B 41 // APICr.....ALASKA
0010: 41 20 4D 20 49 00 00 00 09 20 07 01 41 4D 49 20 // A M I.... ..AMI
0020: 13 00 01 00 00 00 E0 FE 01 00 00 00 00 08 01 10 // ................
0030: 01 00 00 00 00 08 02 11 01 00 00 00 00 08 03 12 // ................
0040: 01 00 00 00 00 08 04 13 01 00 00 00 01 0C 00 00 // ................
0050: 00 00 C0 FE 00 00 00 00 02 0A 00 00 02 00 00 00 // ................
0060: 00 00 02 0A 00 09 09 00 00 00 0F 00 04 06 FF 05 // ................
0070: 00 01 // ..
CRAT
----
[000h 0000 4] Signature : "CRAT"
[004h 0004 4] Table Length : 00000578
[008h 0008 1] Revision : 01
[009h 0009 1] Checksum : 7E
[00Ah 0010 6] Oem ID : "AMD"
[010h 0016 8] Oem Table ID : "BANTRY "
[018h 0024 4] Oem Revision : 00000001
[01Ch 0028 4] Asl Compiler ID : "AMD "
[020h 0032 4] Asl Compiler Revision : 00000001
**** Unknown ACPI table signature [CRAT]
Raw Table Data: Length 1400 (0x578)
0000: 43 52 41 54 78 05 00 00 01 7E 41 4D 44 00 00 00 // CRATx....~AMD...
0010: 42 41 4E 54 52 59 20 20 01 00 00 00 41 4D 44 20 // BANTRY ....AMD
0020: 01 00 00 00 17 00 00 00 01 00 00 00 00 00 00 00 // ................
0030: 00 28 00 00 05 00 00 00 00 00 00 00 10 00 00 00 // .(..............
0040: 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
0050: 00 00 00 00 00 00 00 00 01 28 00 00 01 00 00 00 // .........(......
0060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
0070: 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 // ....@...........
0080: 01 28 00 00 01 00 00 00 00 00 00 00 00 00 01 00 // .(..............
0090: 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 // ............@...
00A0: 00 00 00 00 00 00 00 00 01 28 00 00 01 00 00 00 // .........(......
00B0: 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 // ................
00C0: 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 // ....@...........
00D0: 01 28 00 00 01 00 00 00 00 00 00 00 00 01 01 00 // .(..............
00E0: 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 // ............@...
00F0: 00 00 00 00 00 00 00 00 02 40 00 00 0B 00 00 00 // .........@......
0100: 10 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 // ................
0110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
0120: 00 00 00 00 10 00 00 00 01 01 40 00 04 00 01 00 // ..........@.....
0130: 00 00 00 00 00 00 00 00 02 40 00 00 0D 00 00 00 // .........@......
0140: 10 00 00 00 00 00 03 00 00 00 00 00 00 00 00 00 // ................
0150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
0160: 00 00 00 00 40 00 00 00 01 01 40 00 02 00 01 00 // ....@.....@.....
0170: 00 00 00 00 00 00 00 00 02 40 00 00 09 00 00 00 // .........@......
0180: 10 00 00 00 00 00 03 00 00 00 00 00 00 00 00 00 // ................
0190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
01A0: 00 00 00 00 00 08 00 00 02 01 40 00 10 00 00 00 // ..........@.....
01B0: 00 00 00 00 00 00 00 00 02 40 00 00 0B 00 00 00 // .........@......
01C0: 11 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 // ................
01D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
01E0: 00 00 00 00 10 00 00 00 01 01 40 00 04 00 01 00 // ..........@.....
01F0: 00 00 00 00 00 00 00 00 02 40 00 00 0B 00 00 00 // .........@......
0200: 12 00 00 00 00 00 04 00 00 00 00 00 00 00 00 00 // ................
0210: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
0220: 00 00 00 00 10 00 00 00 01 01 40 00 04 00 01 00 // ..........@.....
0230: 00 00 00 00 00 00 00 00 02 40 00 00 0D 00 00 00 // .........@......
0240: 12 00 00 00 00 00 0C 00 00 00 00 00 00 00 00 00 // ................
0250: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
0260: 00 00 00 00 40 00 00 00 01 01 40 00 02 00 01 00 // ....@.....@.....
0270: 00 00 00 00 00 00 00 00 02 40 00 00 09 00 00 00 // .........@......
0280: 12 00 00 00 00 00 0C 00 00 00 00 00 00 00 00 00 // ................
0290: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
02A0: 00 00 00 00 00 08 00 00 02 01 40 00 10 00 00 00 // ..........@.....
02B0: 00 00 00 00 00 00 00 00 02 40 00 00 0B 00 00 00 // .........@......
02C0: 13 00 00 00 00 00 08 00 00 00 00 00 00 00 00 00 // ................
02D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
02E0: 00 00 00 00 10 00 00 00 01 01 40 00 04 00 01 00 // ..........@.....
02F0: 00 00 00 00 00 00 00 00 03 40 00 00 0B 00 00 00 // .........@......
0300: 10 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 // ................
0310: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
0320: 00 00 00 00 01 00 00 00 FF 40 00 00 FF 40 00 00 // .........@...@..
0330: FF 40 00 00 00 00 00 00 03 40 00 00 0D 00 00 00 // .@.......@......
0340: 10 00 00 00 00 00 03 00 00 00 00 00 00 00 00 00 // ................
0350: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
0360: 00 00 00 00 01 00 00 00 00 00 FF 18 00 00 FF 30 // ...............0
0370: 00 00 FF 18 00 00 00 00 03 40 00 00 AB 02 00 00 // .........@......
0380: 10 00 00 00 00 00 03 00 00 00 00 00 00 00 00 00 // ................
0390: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
03A0: 00 00 00 00 02 00 00 00 08 04 00 00 08 04 00 00 // ................
03B0: 08 04 00 00 00 00 00 00 03 40 00 00 AD 02 00 00 // .........@......
03C0: 10 00 00 00 00 00 03 00 00 00 00 00 00 00 00 00 // ................
03D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
03E0: 00 00 00 00 02 00 00 00 00 00 08 04 00 00 04 02 // ................
03F0: 00 00 08 04 00 00 00 00 03 40 00 00 0B 00 00 00 // .........@......
0400: 11 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 // ................
0410: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
0420: 00 00 00 00 01 00 00 00 FF 40 00 00 FF 40 00 00 // .........@...@..
0430: FF 40 00 00 00 00 00 00 03 40 00 00 0B 00 00 00 // .@.......@......
0440: 12 00 00 00 00 00 04 00 00 00 00 00 00 00 00 00 // ................
0450: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
0460: 00 00 00 00 01 00 00 00 FF 40 00 00 FF 40 00 00 // .........@...@..
0470: FF 40 00 00 00 00 00 00 03 40 00 00 0D 00 00 00 // .@.......@......
0480: 12 00 00 00 00 00 0C 00 00 00 00 00 00 00 00 00 // ................
0490: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
04A0: 00 00 00 00 01 00 00 00 00 00 FF 18 00 00 FF 30 // ...............0
04B0: 00 00 FF 18 00 00 00 00 03 40 00 00 AB 02 00 00 // .........@......
04C0: 12 00 00 00 00 00 0C 00 00 00 00 00 00 00 00 00 // ................
04D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
04E0: 00 00 00 00 02 00 00 00 08 04 00 00 08 04 00 00 // ................
04F0: 08 04 00 00 00 00 00 00 03 40 00 00 AD 02 00 00 // .........@......
0500: 12 00 00 00 00 00 0C 00 00 00 00 00 00 00 00 00 // ................
0510: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
0520: 00 00 00 00 02 00 00 00 00 00 08 04 00 00 04 02 // ................
0530: 00 00 08 04 00 00 00 00 03 40 00 00 0B 00 00 00 // .........@......
0540: 13 00 00 00 00 00 08 00 00 00 00 00 00 00 00 00 // ................
0550: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
0560: 00 00 00 00 01 00 00 00 FF 40 00 00 FF 40 00 00 // .........@...@..
0570: FF 40 00 00 00 00 00 00 // .@......
DSDT
----
DefinitionBlock ("", "DSDT", 2, "ALASKA", "A M I", 0x00000000)
{
/*
* iASL Warning: There were 3 external control methods found during
* disassembly, but only 0 were resolved (3 unresolved). Additional
* ACPI tables may be required to properly disassemble the code. This
* resulting disassembler output file may not compile because the
* disassembler did not know how many arguments to assign to the
* unresolved methods. Note: SSDTs can be dynamically loaded at
* runtime and may or may not be available via the host OS.
*
* To specify the tables needed to resolve external control method
* references, the -e option can be used to specify the filenames.
* Example iASL invocations:
* iasl -e ssdt1.aml ssdt2.aml ssdt3.aml -d dsdt.aml
* iasl -e dsdt.aml ssdt2.aml -d ssdt1.aml
* iasl -e ssdt*.aml -d dsdt.aml
*
* In addition, the -fe option can be used to specify a file containing
* control method external declarations with the associated method
* argument counts. Each line of the file must be of the form:
* External (<method pathname>, MethodObj, <argument count>)
* Invocation:
* iasl -fe refs.txt -d dsdt.aml
*
* The following methods were unresolved and many not compile properly
* because the disassembler had to guess at the number of arguments
* required for each:
*/
External (AFN7, MethodObj) // Warning: Unknown method, guessing 1 arguments
External (APTS, MethodObj) // Warning: Unknown method, guessing 1 arguments
External (AWAK, MethodObj) // Warning: Unknown method, guessing 1 arguments
Name (SP1O, 0x2E)
Name (GPIB, 0x0220)
Name (GPIL, 0x08)
Name (PMEB, 0x0A20)
Name (PMEL, 0x10)
Name (HWMB, 0x0228)
Name (HWML, 0x10)
Name (IOES, Zero)
Name (PEBS, 0xE0000000)
Name (PEBL, 0x10000000)
Name (SMBB, 0x0B20)
Name (SMBL, 0x20)
Name (SMB0, 0x0B00)
Name (SMBM, 0x10)
Name (PMBS, 0x0800)
Name (PMLN, 0xA0)
Name (SMIO, 0xB2)
Name (GPBS, Zero)
Name (GPLN, Zero)
Name (APCB, 0xFEC00000)
Name (APCL, 0x1000)
Name (SPIB, 0xFEC10000)
Name (SPIL, 0x1000)
Name (HPTB, 0xFED00000)
Name (HPTL, 0x1000)
Name (GIOB, 0xFED80100)
Name (IOMB, 0xFED80D00)
Name (SSMB, 0xFED80200)
Name (ACPH, 0xDE)
Name (ASSB, Zero)
Name (AOTB, Zero)
Name (AAXB, Zero)
Name (PEHP, One)
Name (SHPC, Zero)
Name (PEPM, One)
Name (PEER, One)
Name (PECS, One)
Name (ITKE, Zero)
Name (SRSI, 0xB2)
Name (CSMI, 0x61)
Name (HIDK, "MSFT0001")
Name (HIDM, "MSFT0003")
Name (CIDK, 0x0303D041)
Name (CIDM, 0x130FD041)
Name (ATIS, 0x55)
Name (MBEC, Zero)
Name (PICM, Zero)
Method (_PIC, 1, NotSerialized) // _PIC: Interrupt Model
{
If (Arg0)
{
DBG8 = 0xAA
\_SB.IRQC ()
}
Else
{
DBG8 = 0xAC
}
PICM = Arg0
}
Name (OSVR, Ones)
Method (OSFL, 0, NotSerialized)
{
If ((OSVR != Ones))
{
Return (OSVR) /* \OSVR */
}
If ((PICM == Zero))
{
DBG8 = 0xAC
}
OSVR = 0x03
If (CondRefOf (_OSI, Local0))
{
If (_OSI ("Windows 2001"))
{
OSVR = 0x04
}
If (_OSI ("Windows 2001.1"))
{
OSVR = 0x05
}
If (_OSI ("FreeBSD"))
{
OSVR = 0x06
}
If (_OSI ("HP-UX"))
{
OSVR = 0x07
}
If (_OSI ("OpenVMS"))
{
OSVR = 0x08
}
If (_OSI ("Windows 2001 SP1"))
{
OSVR = 0x09
}
If (_OSI ("Windows 2001 SP2"))
{
OSVR = 0x0A
}
If (_OSI ("Windows 2001 SP3"))
{
OSVR = 0x0B
}
If (_OSI ("Windows 2006"))
{
OSVR = 0x0C
}
If (_OSI ("Windows 2006 SP1"))
{
OSVR = 0x0D
}
If (_OSI ("Windows 2009"))
{
OSVR = 0x0E
}
If (_OSI ("Windows 2012"))
{
OSVR = 0x0F
}
}
Else
{
If (MCTH (_OS, "Microsoft Windows NT"))
{
OSVR = Zero
}
If (MCTH (_OS, "Microsoft Windows"))
{
OSVR = One
}
If (MCTH (_OS, "Microsoft WindowsME: Millennium Edition"))
{
OSVR = 0x02
}
If (MCTH (_OS, "Linux"))
{
OSVR = 0x03
}
If (MCTH (_OS, "FreeBSD"))
{
OSVR = 0x06
}
If (MCTH (_OS, "HP-UX"))
{
OSVR = 0x07
}
If (MCTH (_OS, "OpenVMS"))
{
OSVR = 0x08
}
}
Return (OSVR) /* \OSVR */
}
Method (MCTH, 2, NotSerialized)
{
If ((SizeOf (Arg0) < SizeOf (Arg1)))
{
Return (Zero)
}
Local0 = (SizeOf (Arg0) + One)
Name (BUF0, Buffer (Local0){})
Name (BUF1, Buffer (Local0){})
BUF0 = Arg0
BUF1 = Arg1
While (Local0)
{
Local0--
If ((DerefOf (BUF0 [Local0]) != DerefOf (BUF1 [Local0]
)))
{
Return (Zero)
}
}
Return (One)
}
Name (PRWP, Package (0x02)
{
Zero,
Zero
})
Method (GPRW, 2, NotSerialized)
{
PRWP [Zero] = Arg0
Local0 = (SS1 << One)
Local0 |= (SS2 << 0x02)
Local0 |= (SS3 << 0x03)
Local0 |= (SS4 << 0x04)
If (((One << Arg1) & Local0))
{
PRWP [One] = Arg1
}
Else
{
Local0 >>= One
If (((OSFL () == One) || (OSFL () == 0x02)))
{
FindSetLeftBit (Local0, PRWP [One])
}
Else
{
FindSetRightBit (Local0, PRWP [One])
}
}
Return (PRWP) /* \PRWP */
}
Name (WAKP, Package (0x02)
{
Zero,
Zero
})
OperationRegion (DEB0, SystemIO, 0x80, One)
Field (DEB0, ByteAcc, NoLock, Preserve)
{
DBG8, 8
}
OperationRegion (DEB1, SystemIO, 0x90, 0x02)
Field (DEB1, WordAcc, NoLock, Preserve)
{
DBG9, 16
}
Name (SS1, Zero)
Name (SS2, Zero)
Name (SS3, One)
Name (SS4, One)
Name (IOST, 0x0001)
Name (TOPM, 0x00000000)
Name (ROMS, 0xFFE00000)
Name (VGAF, One)
OperationRegion (DEB2, SystemIO, 0x80, 0x02)
Field (DEB2, WordAcc, NoLock, Preserve)
{
P80H, 16
}
Name (OSTY, Ones)
OperationRegion (ACMS, SystemIO, 0x72, 0x10)
Field (ACMS, ByteAcc, NoLock, Preserve)
{
ICMS, 8,
DCMS, 8,
Offset (0x0E),
P80, 8
}
Name (PCIE, 0xE0000000)
Name (OSCF, Zero)
Name (GGN2, One)
OperationRegion (CMPT, SystemIO, 0x0C50, 0x03)
Field (CMPT, ByteAcc, NoLock, Preserve)
{
CMID, 8,
, 6,
GPCT, 2,
GP0I, 1,
GP1I, 1,
GP2I, 1,
GP3I, 1,
GP4I, 1,
GP5I, 1,
GP6I, 1,
GP7I, 1
}
OperationRegion (PCFG, SystemMemory, PCIE, 0x02000000)
Field (PCFG, AnyAcc, NoLock, Preserve)
{
Offset (0x20078),
Offset (0x2007A),
PMSA, 1,
Offset (0x28078),
Offset (0x2807A),
PMSB, 1,
Offset (0x48078),
Offset (0x4807A),
PMSC, 1,
Offset (0x8800A),
STCL, 16,
Offset (0x880FC),
RMBA, 32,
Offset (0xA0004),
SMIE, 1,
SMME, 1,
Offset (0xA0008),
RVID, 8,
Offset (0xA0014),
SMB1, 32,
Offset (0xA0082),
, 2,
G31O, 1,
Offset (0xA00E1),
, 6,
ACIR, 1,
Offset (0xA4004),
PCMD, 2,
Offset (0xA807A),
PMS0, 1,
Offset (0xA8088),
TLS0, 4,
Offset (0xA907A),
PMS1, 1,
Offset (0xA9088),
TLS1, 4,
Offset (0xAA07A),
PMS2, 1,
Offset (0xAA088),
TLS2, 4,
Offset (0xAB07A),
PMS3, 1,
Offset (0xAB088),
TLS3, 4
}
OperationRegion (PMIO, SystemIO, 0x0CD6, 0x02)
Field (PMIO, ByteAcc, NoLock, Preserve)
{
INPM, 8,
DAPM, 8
}
IndexField (INPM, DAPM, ByteAcc, NoLock, Preserve)
{
Offset (0x24),
MMSO, 32,
Offset (0x50),
HPAD, 32,
Offset (0x60),
P1EB, 16
}
OperationRegion (ERMM, SystemMemory, MMSO, 0x1000)
Field (ERMM, AnyAcc, NoLock, Preserve)
{
Offset (0x105),
, 5,
G06E, 1,
G06O, 1,
G06I, 1,
G07B, 8,
Offset (0x10A),
G0BB, 8,
Offset (0x10D),
G0EB, 8,
Offset (0x113),
, 5,
G14E, 1,
G14O, 1,
G14I, 1,
, 5,
G15E, 1,
G15O, 1,
G15I, 1,
Offset (0x11B),
, 7,
G1CI, 1,
Offset (0x11F),
, 7,
G20I, 1,
Offset (0x122),
, 5,
G23E, 1,
G23O, 1,
G23I, 1,
Offset (0x12B),
, 5,
G2CE, 1,
G2CO, 1,
G2CI, 1,
, 5,
G2DE, 1,
G2DO, 1,
G2DI, 1,
Offset (0x132),
, 5,
G33E, 1,
G33O, 1,
G33I, 1,
Offset (0x134),
, 5,
G35E, 1,
G35O, 1,
Offset (0x136),
, 5,
G37E, 1,
G37O, 1,
G37I, 1,
Offset (0x13F),
, 7,
G40I, 1,
Offset (0x164),
, 7,
GE05, 1,
, 7,
GE06, 1,
Offset (0x16C),
, 7,
GE13, 1,
, 7,
GE14, 1,
, 7,
GE15, 1,
, 7,
GE16, 1,
Offset (0x175),
, 7,
GE22, 1,
Offset (0x1A9),
, 5,
GAAE, 1,
GAAO, 1,
GAAI, 1,
, 5,
GABE, 1,
GABO, 1,
Offset (0x1AE),
GAFB, 8,
GB0B, 8,
Offset (0x1B8),
, 5,
GB8E, 1,
GB8O, 1,
GB8I, 1,
Offset (0x1FF),
, 9,
GESA, 1,
Offset (0x207),
, 5,
E05C, 1,
E06C, 1,
Offset (0x208),
E08C, 1,
E09C, 1,
E0AC, 1,
E0BC, 1,
E0CC, 1,
E0DC, 1,
E0EC, 1,
E0FC, 1,
E10C, 1,
Offset (0x20A),
, 5,
E1DC, 1,
Offset (0x2AF),
, 2,
SLPS, 2,
Offset (0x376),
EPNM, 1,
DPPF, 1,
Offset (0x3BA),
, 6,
PWDE, 1,
Offset (0x3BD),
, 5,
ALLS, 1,
Offset (0x3EF),
PHYD, 1,
, 1,
, 1,
US5R, 1,
Offset (0x3F5),
GECD, 1,
Offset (0xD05),
G06M, 8,
G07M, 8,
Offset (0xD0A),
G0BM, 8,
Offset (0xD0D),
G0EM, 8,
Offset (0xD13),
G14M, 8,
Offset (0xD1B),
G1CM, 8,
Offset (0xD1F),
G20M, 8,
Offset (0xD22),
G23M, 8,
Offset (0xD2C),
G2DM, 8,
Offset (0xD36),
G37M, 8,
Offset (0xD6F),
G70M, 8,
Offset (0xD75),
G76M, 8,
Offset (0xDA9),
GAAM, 8,
Offset (0xDAE),
GAFM, 8,
GB0M, 8,
Offset (0xE7F),
, 2,
IMCS, 1
}
OperationRegion (ABIO, SystemIO, 0x0CD8, 0x08)
Field (ABIO, DWordAcc, NoLock, Preserve)
{
INAB, 32,
DAAB, 32
}
Method (RDAB, 1, NotSerialized)
{
INAB = Arg0
Return (DAAB) /* \DAAB */
}
Method (WTAB, 2, NotSerialized)
{
INAB = Arg0
DAAB = Arg1
}
Method (RWAB, 3, NotSerialized)
{
Local0 = (RDAB (Arg0) & Arg1)
Local1 = (Local0 | Arg2)
WTAB (Arg0, Local1)
}
Method (CABR, 3, NotSerialized)
{
Local0 = (Arg0 << 0x05)
Local1 = (Local0 + Arg1)
Local2 = (Local1 << 0x18)
Local3 = (Local2 + Arg2)
Return (Local3)
}
Method (GHPS, 2, NotSerialized)
{
If ((Arg0 == Zero))
{
RWAB (CABR (0x06, Zero, 0xC0), 0xFFFFBFFF, Zero)
RWAB (CABR (One, Zero, 0x65), 0xFFFFFBFB, Zero)
Stall (0xC8)
}
If ((Arg0 == One))
{
RWAB (CABR (0x06, Zero, 0xC0), 0xFFFFBFFF, 0x4000)
RWAB (CABR (One, Zero, 0x65), 0xFFFFFBFB, 0x0404)
Stall (0xC8)
}
If (GGN2)
{
If ((Arg0 == Zero))
{
GEN2 ()
Local0 = RDAB (CABR (0x03, 0x02, 0xA5))
Local0 &= 0xFF
Local1 = 0x01F4
While (((Local1 > Zero) && (Local0 != 0x10)))
{
Local0 = RDAB (CABR (0x03, 0x02, 0xA5))
Local0 &= 0xFF
Local1--
Stall (0xC8)
Stall (0xC8)
}
If ((Local0 != 0x10))
{
GEN1 ()
}
}
}
}
Method (GEN2, 0, NotSerialized)
{
TLS2 = 0x02
RWAB (CABR (0x03, 0x02, 0xA4), 0xFFFFFFFE, One)
RWAB (CABR (0x03, 0x02, 0xA2), 0xFFFFDFFF, 0x2000)
RWAB (CABR (0x03, 0x02, 0xC0), 0xFFFF7FFF, 0x8000)
RWAB (CABR (0x03, 0x02, 0xA4), 0xDFFFFFFF, 0x20000000)
Stall (0xC8)
Stall (0xC8)
}
Method (GEN1, 0, NotSerialized)
{
TLS2 = One
RWAB (CABR (0x03, 0x02, 0xA4), 0xFFFFFFFE, Zero)
RWAB (CABR (0x03, 0x02, 0xA2), 0xFFFFDFFF, 0x2000)
Stall (0xC8)
Stall (0xC8)
}
OperationRegion (P1E0, SystemIO, P1EB, 0x04)
Field (P1E0, ByteAcc, NoLock, Preserve)
{
, 14,
PEWS, 1,
WSTA, 1,
, 14,
PEWD, 1
}
Method (SPTS, 1, NotSerialized)
{
PCMD = One
P80 = Arg0
If (IMCS)
{
IBSE ()
}
CPMS ()
CPMS ()
PEWS = One
}
Method (SWAK, 1, NotSerialized)
{
If (PICM)
{
\_SB.IRQC ()
}
Notify (\_SB.PWRB, 0x02) // Device Wake
CPMS ()
CPMS ()
PEWS = One
If (IMCS)
{
IBWE ()
}
}
Method (TRMD, 1, NotSerialized)
{
}
Method (CPMS, 0, NotSerialized)
{
If ((EPNM == Zero))
{
PMSA = One
PMSB = One
PMSC = One
PMS0 = One
PMS1 = One
PMS2 = One
PMS3 = One
}
}
Scope (_GPE)
{
}
OperationRegion (IMIO, SystemIO, 0x3E, 0x02)
Field (IMIO, ByteAcc, NoLock, Preserve)
{
IMCX, 8,
IMCA, 8
}
IndexField (IMCX, IMCA, ByteAcc, NoLock, Preserve)
{
Offset (0x80),
MSTI, 8,
MITS, 8,
MRG0, 8,
MRG1, 8,
MRG2, 8,
MRG3, 8
}
Method (WACK, 0, NotSerialized)
{
Local0 = Zero
While ((Local0 != 0xFA))
{
Local0 = MRG0 /* \MRG0 */
Sleep (0x0A)
}
}
Method (IBSE, 0, NotSerialized)
{
MRG0 = Zero
MRG1 = 0xB5
MRG2 = Zero
MSTI = 0x96
WACK ()
MRG0 = Zero
MRG1 = Zero
MRG2 = Zero
MSTI = 0x80
WACK ()
Local0 = MRG2 /* \MRG2 */
Local0 &= 0xFE
MRG0 = Zero
MRG1 = Zero
MRG2 = Local0
MSTI = 0x81
WACK ()
MRG0 = Zero
MRG1 = One
MRG2 = Zero
MSTI = 0x98