]> git.proxmox.com Git - qemu.git/blob - hw/i386/ssdt-proc.dsl
bswap.h: Remove cpu_to_be32wu()
[qemu.git] / hw / i386 / ssdt-proc.dsl
1 /*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
6
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11
12 * You should have received a copy of the GNU General Public License along
13 * with this program; if not, see <http://www.gnu.org/licenses/>.
14 */
15
16 /* This file is the basis for the ssdt table generated in src/acpi.c.
17 * It defines the contents of the per-cpu Processor() object. At
18 * runtime, a dynamically generated SSDT will contain one copy of this
19 * AML snippet for every possible cpu in the system. The objects will
20 * be placed in the \_SB_ namespace.
21 *
22 * In addition to the aml code generated from this file, the
23 * src/acpi.c file creates a NTFY method with an entry for each cpu:
24 * Method(NTFY, 2) {
25 * If (LEqual(Arg0, 0x00)) { Notify(CP00, Arg1) }
26 * If (LEqual(Arg0, 0x01)) { Notify(CP01, Arg1) }
27 * ...
28 * }
29 * and a CPON array with the list of active and inactive cpus:
30 * Name(CPON, Package() { One, One, ..., Zero, Zero, ... })
31 */
32
33 ACPI_EXTRACT_ALL_CODE ssdp_proc_aml
34
35 DefinitionBlock ("ssdt-proc.aml", "SSDT", 0x01, "BXPC", "BXSSDT", 0x1)
36 {
37 ACPI_EXTRACT_PROCESSOR_START ssdt_proc_start
38 ACPI_EXTRACT_PROCESSOR_END ssdt_proc_end
39 ACPI_EXTRACT_PROCESSOR_STRING ssdt_proc_name
40 Processor(CPAA, 0xAA, 0x00000000, 0x0) {
41 ACPI_EXTRACT_NAME_BYTE_CONST ssdt_proc_id
42 Name(ID, 0xAA)
43 /*
44 * The src/acpi.c code requires the above ACP_EXTRACT tags so that it can update
45 * CPAA and 0xAA with the appropriate CPU id (see
46 * SD_OFFSET_CPUHEX/CPUID1/CPUID2). Don't change the above without
47 * also updating the C code.
48 */
49 Name(_HID, "ACPI0007")
50 External(CPMA, MethodObj)
51 External(CPST, MethodObj)
52 External(CPEJ, MethodObj)
53 Method(_MAT, 0) {
54 Return (CPMA(ID))
55 }
56 Method(_STA, 0) {
57 Return (CPST(ID))
58 }
59 Method(_EJ0, 1, NotSerialized) {
60 CPEJ(ID, Arg0)
61 }
62 }
63 }