Specifications

©
2008 Advanced Micro Devices Inc.
Sample Programs
AMD SB600 BIOS Developer’s Guide (Public Version) Proprietary
Page 74
if(LPOL){Return(0x00)} // Lid is closed
else {Return(0x1)} // Lid is open
}
Name(_PRW, Package(2)
{ 0x10, 0x03} // ACPI event 0x10 can wake-up from S3
)
}
//ACPI event
Scope(\_GPE)
{ Method(_L10)
{
Not(LPOL, LPOL) // Reverse the polarity from sleep to
wake and vice versa
Notify(\_SB.LID, 0x80) // Notify the OS that status has changed.
}
}
14.7 SATA Hot Plug Sample Program
Scope(\_GPE)
{
Method(_L1F,0x0,Notserialized) // GPE0 Block bit 31 is used for SATA
//hot plug
{
sleep(2000)
// For SATA at Bus 0, Device 12h, Function 0, channel 0 device
// Check if change in the status of the Serial ATA PHY
if(\_SB_.PCI0.SATA.STA0) { // BAR5, offset 10ah, bit0
Notify(\_SB.PCI0.SATA.PRID.P_D0, 0x00)
sleep(2000)
Notify(\_SB.PCI0.SATA.PRID, 0x01)
sleep(2000)
store(\_SB_.PCI0.SATA.STA0,\_SB_.PCI0.SATA.STA0) //Clear Status of
// master SATA
}