Debian Codegraph @

demo/kitchen-sink/docs/asl.dsl

raw
1 /*
2 * Intel ACPI Component Architecture
3 * AML/ASL+ Disassembler version 20180105
4 *
5 * ASL example
6 */
7 DefinitionBlock ("", "SSDT", 1, "PmRef", "Cpu0Ist", 0x00003000)
8 {
9 External (_PR_.CPU0, DeviceObj)
10 External (_SB_.CPUP, UnknownObj)
11
12 Scope (\_PR.CPU0)
13 {
14 Method (_PCT, 0, NotSerialized) // _PCT: Performance Control
15 {
16 If (((CFGD & One) && (PDC0 & One)))
17 {
18 Return (Package (0x02)
19 {
20 ResourceTemplate ()
21 {
22 Register (FFixedHW,
23 0x00, // Bit Width
24 0x00, // Bit Offset
25 0x0000000000000000, // Address
26 ,)
27 },
28
29 ResourceTemplate ()
30 {
31 Register (FFixedHW,
32 0x00, // Bit Width
33 0x00, // Bit Offset
34 0x0000000000000000, // Address
35 ,)
36 }
37 })
38 }
39
40 Return (Package (0x02)
41 {
42 ResourceTemplate ()
43 {
44 Register (SystemIO,
45 0x10, // Bit Width
46 0x00, // Bit Offset
47 0x0000000000001000, // Address
48 ,)
49 },
50
51 ResourceTemplate ()
52 {
53 Register (SystemIO,
54 0x08, // Bit Width
55 0x00, // Bit Offset
56 0x00000000000000B3, // Address
57 ,)
58 }
59 })
60 }
61
62 Name (PSDF, Zero)
63 Method (_PSD, 0, NotSerialized) // _PSD: Power State Dependencies
64 {
65 If (!PSDF)
66 {
67 DerefOf (HPSD [Zero]) [0x04] = TCNT /* External reference */
68 DerefOf (SPSD [Zero]) [0x04] = TCNT /* External reference */
69 PSDF = Ones
70 }
71
72 If ((PDC0 & 0x0800))
73 {
74 Return (HPSD) /* \_PR_.CPU0.HPSD */
75 }
76
77 Return (SPSD) /* \_PR_.CPU0.SPSD */
78 }
79 }
80 }
81