Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 2215 → Rev 2216

/drivers/devman/acpica/tests/misc/badcode.asl
116,10 → 116,39
Store (MTH2 (), Local0)
}
 
// Invalid _HID value
// Method MTH4 does not explicitly return a value
 
Name (_HID, "*PNP0C0A")
Method (MTH4) {Return}
Method (MTH5) {Store (MTH4(), Local0)}
 
// Invalid _HID values
 
Device (H1)
{
Name (_HID, "*PNP0C0A") // Illegal leading asterisk
}
Device (H2)
{
Name (_HID, "PNP") // Too short, must be 7 or 8 chars
}
Device (H3)
{
Name (_HID, "MYDEVICE01") // Too long, must be 7 or 8 chars
}
Device (H4)
{
Name (_HID, "acpi0001") // non-hex chars must be uppercase
}
Device (H5)
{
Name (_HID, "PNP-123") // HID must be alphanumeric
}
Device (H6)
{
Name (_HID, "") // Illegal Null HID
Name (_CID, "") // Illegal Null CID
}
 
// Predefined Name typechecking
 
Name (_PRW, 4)
141,6 → 170,39
Name (_INI, 1)
Name (_PTP, 2)
 
// GPE methods that cause type collision (L vs. E)
 
Scope (\_GPE)
{
Method (_L1D)
{
}
Method (_E1D)
{
}
}
 
// Predefined names that should not have a return value
 
Method (_FDM, 1)
{
Return (Buffer(1){0x33})
}
Method (_Q22)
{
Return ("Unexpected Return Value")
}
 
// _REG must have a corresponding Operation Region declaration
// within the same scope
 
Device (EC)
{
Method (_REG, 2)
{
}
}
 
/*
* Resource Descriptor error checking
*/
287,6 → 349,16
0x00001000, // Length
,, )
 
// Null descriptor (intended to be modified at runtime) must
// have a resource tag (to allow it to be modified at runtime)
DWordIO (ResourceProducer, MinFixed, MaxFixed, PosDecode, EntireRange,
0x00000000, // Granularity
0x00000000, // Range Minimum
0x00000000, // Range Maximum
0x00000000, // Translation Offset
0x00000000, // Length
,, )
 
// Missing StartDependentFn macro
 
EndDependentFn ()