|
|
1.1 root 1: /* This file is the basis for the ssdt_proc[] variable in src/acpi.c.
2: * It defines the contents of the per-cpu Processor() object. At
3: * runtime, a dynamically generated SSDT will contain one copy of this
4: * AML snippet for every possible cpu in the system. The objects will
5: * be placed in the \_SB_ namespace.
6: *
7: * To generate a new ssdt_proc[], run the commands:
8: * cpp -P src/ssdt-proc.dsl > out/ssdt-proc.dsl.i
9: * iasl -ta -p out/ssdt-proc out/ssdt-proc.dsl.i
10: * tail -c +37 < out/ssdt-proc.aml | hexdump -e '" " 8/1 "0x%02x," "\n"'
11: * and then cut-and-paste the output into the src/acpi.c ssdt_proc[]
12: * array.
13: *
14: * In addition to the aml code generated from this file, the
15: * src/acpi.c file creates a NTFY method with an entry for each cpu:
16: * Method(NTFY, 2) {
17: * If (LEqual(Arg0, 0x00)) { Notify(CP00, Arg1) }
18: * If (LEqual(Arg0, 0x01)) { Notify(CP01, Arg1) }
19: * ...
20: * }
21: * and a CPON array with the list of active and inactive cpus:
22: * Name(CPON, Package() { One, One, ..., Zero, Zero, ... })
23: */
24: DefinitionBlock ("ssdt-proc.aml", "SSDT", 0x01, "BXPC", "BXSSDT", 0x1)
25: /* v------------------ DO NOT EDIT ------------------v */
26: {
27: Processor (CPAA, 0xAA, 0x0000b010, 0x06) {
28: Name (ID, 0xAA)
29: /* ^------------------ DO NOT EDIT ------------------^
30: *
31: * The src/acpi.c code requires the above layout so that it can update
32: * CPAA and 0xAA with the appropriate CPU id (see
33: * SD_OFFSET_CPUHEX/CPUID1/CPUID2). Don't change the above without
34: * also updating the C code.
35: */
36: Name (_HID, "ACPI0007")
37: External(CPMA, MethodObj)
38: External(CPST, MethodObj)
39: External(CPEJ, MethodObj)
40: Method(_MAT, 0) {
41: Return(CPMA(ID))
42: }
43: Method (_STA, 0) {
44: Return(CPST(ID))
45: }
46: Method (_EJ0, 1, NotSerialized) {
47: CPEJ(ID, Arg0)
48: }
49: }
50: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.