mirror of
https://github.com/acpica/acpica/
synced 2025-01-17 23:09:18 +03:00
249 lines
4.5 KiB
Plaintext
Executable File
249 lines
4.5 KiB
Plaintext
Executable File
DefinitionBlock(
|
|
"init0059.aml", // Output filename
|
|
"DSDT", // Signature
|
|
0x02, // DSDT Revision
|
|
"Intel", // OEMID
|
|
"Many", // TABLE ID
|
|
0x00000001 // OEM Revision
|
|
) {
|
|
|
|
/*
|
|
* ACPICA API Test Suite
|
|
* Init tests 0032, 0033, 0047, 0048, 0051, 0052 supporting code
|
|
*/
|
|
|
|
// Integer
|
|
Name(INT0, 0)
|
|
Name(INT1, 0xfedcba9876543211)
|
|
Name(INT2, 257)
|
|
Name(INT3, 65)
|
|
|
|
// String
|
|
Name(STR0, "source string")
|
|
Name(STR1, "target string")
|
|
Name(STR2, "string")
|
|
|
|
// Buffer
|
|
Name(BUF0, Buffer(9){9,8,7,6,5,4,3,2,1})
|
|
Name(BUF1, Buffer(17){0xc3})
|
|
|
|
// Initializer of Fields
|
|
Name(BUF2, Buffer(9){0x95,0x85,0x75,0x65,0x55,0x45,0x35,0x25,0x15})
|
|
|
|
// Base of Buffer Fields
|
|
Name(BUFY, Buffer(INT2){})
|
|
Name(BUFZ, Buffer(9){0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88})
|
|
|
|
// Package
|
|
Name(PAC0, Package(3) {
|
|
0xfedcba987654321f,
|
|
"test package",
|
|
Buffer(9){19,18,17,16,15,14,13,12,11},
|
|
})
|
|
|
|
Name(PAC1, Package(1) {"target package"})
|
|
|
|
Name(PACO, Package(2) {"OPR0", "OPR1"})
|
|
Name(PACB, Package(4) {"BFL0", "BFL2", "BFL4", "BFL6"})
|
|
|
|
// Field Unit
|
|
Field(OPR0, ByteAcc, NoLock, Preserve) {
|
|
FLU0, 69,
|
|
FLU2, 64,
|
|
FLU4, 32,
|
|
}
|
|
|
|
// Device
|
|
|
|
Name(INVC, 0) // Counter of Devices' _INI and _STA methods invocations
|
|
Name(INVM, 0) // Mask of Devices' _INI and _STA methods invocations
|
|
|
|
Method(LOGM, 2) {
|
|
Store(arg0, Debug)
|
|
Increment(INVC)
|
|
Or(INVM, arg1, INVM)
|
|
}
|
|
|
|
// Without the _STA or _INI methods
|
|
Device(DEV0) {Name(s000, "DEV0")}
|
|
|
|
// With the _INI method only (default _STA)
|
|
Device(DEV1) {
|
|
Name(s000, "DEV1")
|
|
Method(_INI) {
|
|
LOGM(s000, 0x01)
|
|
}
|
|
}
|
|
|
|
// With the _STA method only
|
|
Device(\_SB.DEV2) {
|
|
Name(s000, "DEV2")
|
|
Method(_STA) {
|
|
LOGM(s000, 0x02)
|
|
Return(0xf)
|
|
}
|
|
}
|
|
|
|
// With the both _INI and _STA methods
|
|
Device(\_SB.DEV2.DEV3) {
|
|
Name(s000, "DEV3")
|
|
Method(_INI) {
|
|
LOGM(s000, 0x04)
|
|
}
|
|
Method(_STA) {
|
|
LOGM(s000, 0x08)
|
|
Return(0xf)
|
|
}
|
|
}
|
|
|
|
// With the both _INI and _STA methods
|
|
// but the last indicates that device
|
|
// is not configured
|
|
Device(\_SB.DEV2.DEV4) {
|
|
Name(s000, "DEV4")
|
|
Method(_INI) {
|
|
LOGM(s000, 0x10)
|
|
}
|
|
Method(_STA) {
|
|
LOGM(s000, 0x20)
|
|
Return(0x0)
|
|
}
|
|
}
|
|
|
|
// With the both _INI and _STA methods
|
|
Device(\DEV0.DEV5) {
|
|
Name(s000, "DEV5")
|
|
Method(_INI) {
|
|
LOGM(s000, 0x40)
|
|
}
|
|
Method(_STA) {
|
|
LOGM(s000, 0x80)
|
|
Return(0xf)
|
|
}
|
|
}
|
|
|
|
// With the both _INI and _STA methods
|
|
Device(\DEV0.DEV5.DEV6) {
|
|
Name(s000, "DEV6")
|
|
Method(_INI) {
|
|
LOGM(s000, 0x100)
|
|
}
|
|
Method(_STA) {
|
|
LOGM(s000, 0x200)
|
|
Return(0xf)
|
|
}
|
|
}
|
|
|
|
// With the both _INI and _STA methods
|
|
Device(\DEV0.DEV7) {
|
|
Name(s000, "DEV7")
|
|
Method(_INI) {
|
|
LOGM(s000, 0x400)
|
|
}
|
|
Method(_STA) {
|
|
LOGM(s000, 0x800)
|
|
Return(0xf)
|
|
}
|
|
}
|
|
|
|
// With the both _INI and _STA methods,
|
|
// but the last indicates that device:
|
|
// - is not present,
|
|
// - is not enabled.
|
|
Device(\DEV0.DEV8) {
|
|
Name(s000, "DEV8")
|
|
Method(_INI) {
|
|
LOGM(s000, 0x1000)
|
|
}
|
|
Method(_STA) {
|
|
LOGM(s000, 0x2000)
|
|
Return(0xc)
|
|
}
|
|
}
|
|
|
|
// With the both _INI and _STA methods,
|
|
// children of not present but functioning Device
|
|
Device(\DEV0.DEV8.DEV9) {
|
|
Name(s000, "DEV9")
|
|
Method(_INI) {
|
|
LOGM(s000, 0x4000)
|
|
}
|
|
Method(_STA) {
|
|
LOGM(s000, 0x8000)
|
|
Return(0xf)
|
|
}
|
|
}
|
|
|
|
// With the both _INI and _STA methods
|
|
// - is not present,
|
|
// - is not enabled,
|
|
// - is not functioning.
|
|
Device(\DEV0.DEVA) {
|
|
Name(s000, "DEVA")
|
|
Method(_INI) {
|
|
LOGM(s000, 0x10000)
|
|
}
|
|
Method(_STA) {
|
|
LOGM(s000, 0x20000)
|
|
Return(0x4)
|
|
}
|
|
}
|
|
|
|
// With the both _INI and _STA methods
|
|
Device(\DEV0.DEVA.DEVB) {
|
|
Name(s000, "DEVB")
|
|
Method(_INI) {
|
|
LOGM(s000, 0x40000)
|
|
}
|
|
Method(_STA) {
|
|
LOGM(s000, 0x80000)
|
|
Return(0xf)
|
|
}
|
|
}
|
|
|
|
// Event
|
|
Event(EVE0)
|
|
Event(EVE1)
|
|
|
|
// Method
|
|
Name(MM00, "ff0X") // Value, returned from MMMX
|
|
Name(MM01, "ff1Y") // Value, returned from MMMY
|
|
Name(MMM0, 0) // Method as Source Object
|
|
Name(MMM1, 0) // Method as Target Object
|
|
Method(MMMX) {Return (MM00)}
|
|
Method(MMMY) {Return (MM01)}
|
|
|
|
// Mutex
|
|
Mutex(MTX0, 0)
|
|
Mutex(MTX1, 0)
|
|
|
|
// Operation Region
|
|
OperationRegion(OPR0, SystemMemory, 0, 48)
|
|
OperationRegion(OPR1, SystemMemory, 0, 24)
|
|
|
|
// Power Resource
|
|
PowerResource(PWR0, 0, 0) {Name(s000, "PWR0")}
|
|
PowerResource(PWR1, 0, 0) {Name(s000, "PWR1")}
|
|
|
|
// Processor
|
|
Processor(CPU0, 0x0, 0xFFFFFFFF, 0x0) {Name(s000, "CPU0")}
|
|
Processor(CPU1, 0x0, 0xFFFFFFFF, 0x0) {Name(s000, "CPU1")}
|
|
|
|
// Thermal Zone
|
|
ThermalZone(TZN0) {Name(s000, "TZN0")}
|
|
ThermalZone(TZN1) {Name(s000, "TZN1")}
|
|
|
|
// Buffer Field
|
|
Createfield(BUFZ, 0, 69, BFL0)
|
|
|
|
Method(M000)
|
|
{
|
|
Increment(INT0)
|
|
}
|
|
|
|
Method(M001)
|
|
{
|
|
Return(BFL0)
|
|
}
|
|
}
|