mirror of
https://github.com/acpica/acpica/
synced 2025-02-26 18:34:17 +03:00
acpiexec: add source ASL for ACPI tables used within.
2 tests added.
This commit is contained in:
parent
d764104bff
commit
85fa1f3470
@ -615,6 +615,7 @@ AeLocalGetRootPointer (
|
||||
}
|
||||
|
||||
|
||||
#if 0
|
||||
/******************************************************************************
|
||||
*
|
||||
* DESCRIPTION: ASL tables that are used in RSDT/XSDT, also used to test
|
||||
@ -657,4 +658,67 @@ DefinitionBlock ("", "OEMX", 2, "MyOEM", "Test", 0x00000432)
|
||||
}
|
||||
}
|
||||
|
||||
/* Parent gr.asl file */
|
||||
|
||||
DefinitionBlock ("", "DSDT", 2, "Intel", "Many", 0x00000001)
|
||||
{
|
||||
Name (BUF1, Buffer()
|
||||
{
|
||||
0x4F,0x45,0x4D,0x58,0xB0,0x00,0x00,0x00, /* 00000000 "OEMX...." */
|
||||
0x02,0x54,0x4D,0x79,0x4F,0x45,0x4D,0x00, /* 00000008 ".TMyOEM." */
|
||||
0x54,0x65,0x73,0x74,0x00,0x00,0x00,0x00, /* 00000010 "Test...." */
|
||||
0x32,0x04,0x00,0x00,0x49,0x4E,0x54,0x4C, /* 00000018 "2...INTL" */
|
||||
0x31,0x03,0x10,0x20,0x14,0x1D,0x5F,0x49, /* 00000020 "1.. .._I" */
|
||||
0x4E,0x49,0x00,0x70,0x0D,0x54,0x61,0x62, /* 00000028 "NI.p.Tab" */
|
||||
0x6C,0x65,0x20,0x4F,0x45,0x4D,0x58,0x20, /* 00000030 "le OEMX " */
|
||||
0x72,0x75,0x6E,0x6E,0x69,0x6E,0x67,0x00, /* 00000038 "running." */
|
||||
0x5B,0x31,0x10,0x22,0x5C,0x5F,0x47,0x50, /* 00000040 "[1."\_GP" */
|
||||
0x45,0x14,0x06,0x5F,0x45,0x30,0x37,0x00, /* 00000048 "E.._E07." */
|
||||
0x14,0x06,0x5F,0x45,0x32,0x32,0x00,0x14, /* 00000050 ".._E22.." */
|
||||
0x06,0x5F,0x4C,0x33,0x31,0x00,0x14,0x06, /* 00000058 "._L31..." */
|
||||
0x5F,0x4C,0x36,0x36,0x00,0x5B,0x82,0x10, /* 00000060 "_L66.[.." */
|
||||
0x4F,0x45,0x4D,0x31,0x08,0x5F,0x50,0x52, /* 00000068 "OEM1._PR" */
|
||||
0x57,0x12,0x05,0x02,0x0A,0x07,0x00,0x5B, /* 00000070 "W......[" */
|
||||
0x82,0x10,0x4F,0x45,0x4D,0x32,0x08,0x5F, /* 00000078 "..OEM2._" */
|
||||
0x50,0x52,0x57,0x12,0x05,0x02,0x0A,0x66, /* 00000080 "PRW....f" */
|
||||
0x00,0x10,0x26,0x5C,0x47,0x50,0x45,0x32, /* 00000088 "..&\GPE2" */
|
||||
0x14,0x06,0x5F,0x4C,0x30,0x31,0x00,0x14, /* 00000090 ".._L01.." */
|
||||
0x06,0x5F,0x45,0x30,0x37,0x00,0x08,0x5F, /* 00000098 "._E07.._" */
|
||||
0x50,0x52,0x57,0x12,0x0C,0x02,0x12,0x08, /* 000000A0 "PRW....." */
|
||||
0x02,0x5C,0x47,0x50,0x45,0x32,0x01,0x00 /* 000000A8 ".\GPE2.." */
|
||||
})
|
||||
|
||||
Name (HNDL, 0)
|
||||
Method (LD)
|
||||
{
|
||||
Load (BUF1, HNDL)
|
||||
Store ("Load operator, handle:", Debug)
|
||||
Store (HNDL, Debug)
|
||||
}
|
||||
|
||||
Method (MAIN, 0, NotSerialized)
|
||||
{
|
||||
Store ("Loading OEMX table", Debug)
|
||||
Store (LoadTable ("OEMX", "MyOEM", "Test"), Debug)
|
||||
}
|
||||
|
||||
Scope (\_GPE)
|
||||
{
|
||||
Method (_L08) {}
|
||||
Method (_E08) {}
|
||||
Method (_L0B) {}
|
||||
}
|
||||
|
||||
Device (DEV0)
|
||||
{
|
||||
Name (_PRW, Package() {0x11, 0})
|
||||
}
|
||||
|
||||
Device (\GPE2)
|
||||
{
|
||||
Method (_L00) {}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user