27.10.2015 Views

Advanced Configuration and Power Interface Specification

ACPI_6.0

ACPI_6.0

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Advanced</strong> <strong>Configuration</strong> <strong>and</strong> <strong>Power</strong> <strong>Interface</strong> <strong>Specification</strong><br />

_OSI Example ASL using OS vendor defined string:<br />

Scope (_SB) //Scope<br />

{<br />

Name (TOOS, 0)<br />

// Global variable for type of OS.<br />

// This methods sets the "TOOS" variable depending on the type of OS<br />

// installed on the system.<br />

// TOOS = 1 // Windows 98 & SE<br />

// TOOS = 2 // Windows Me.<br />

// TOOS = 3 // Windows 2000 OS or above version.<br />

// TOOS = 4 // Windows XP OS or above version.<br />

Method (_INI)<br />

{<br />

If (CondRefOf (_OSI,Local0))<br />

{<br />

If (\_OSI ("Windows 2001"))<br />

{<br />

Store(4, TOOS)<br />

}<br />

}<br />

Else<br />

{<br />

Store (\_OS, local0)<br />

If (LEqual (local0, "Microsoft Windows NT"))<br />

{<br />

Store (3, TOOS)<br />

}<br />

ElseIf (LEqual (Local0, "Microsoft Windows"))<br />

{<br />

Store (1, TOOS)<br />

}<br />

ElseIf (LEqual (Local0, "Microsoft WindowsME:Millennium Edition"))<br />

{<br />

Store (2, TOOS)<br />

}<br />

}<br />

}<br />

}<br />

_OSI Example ASL using an ACPI defined string:<br />

Scope (_SB) {<br />

Method (_INI) {<br />

If (CondRefOf (_OSI,Local0)) {<br />

If (\_OSI ("Module Device")) {<br />

//Expose PCI Root Bridge under Module Device<br />

LoadTable(“OEM1", “OEMID", “Table1",,,)}<br />

Else {<br />

// Expose PCI Root Bridge under \_SB – OS does not support Module Device<br />

LoadTable(“OEM1", “OEMID", “Table2",,,)}<br />

}<br />

Else {<br />

// Default Behavior<br />

LoadTable(“OEM1", “OEMID", “Table2",,,)}<br />

} //_INI Method<br />

} //_SB scope<br />

272 April, 2015 Version 6.0

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!