Specifications

©
2008 Advanced Micro Devices Inc.
Sample Programs
AMD SB600 BIOS Developer’s Guide (Public Version) Proprietary
Page 87
14.9 Sleep Trap through SMI#
This sample code provides an SMI# routine to develop some software workarounds or debugging
functions before the system goes into ACPI sleep state.
14.9.1 Enable Sleep SMI# in ACPI ASL code
The following example implements Sleep SMI Control Register enable by the ASL code _PTS
method.
Method(_PTS, 1) {
Store(One, \_SB.PCI0.SMBS.SLPS)
PTS(Arg0)
Store(0, Index(WAKP,0)) // Clear Wake up package.
Store(0, Index(WAKP,1)) // Clear Wake up package.
}
OperationRegion (PMIO, SystemIO, 0xCD6, 0x2)
Field (PMIO, ByteAcc, NoLock, Preserve)
{
INPM,8,
DAPM,8
}
IndexField (INPM, DAPM, ByteAcc, NoLock, Preserve) //R07
{
Offset(0x00),
,1,
TM1E,1, // Set to 1 to enable SMI# when PM_TIMER1 expires
TM2E,1, // Set to 1 to enable SMI# when PM_TIMER2 expires
Offset(0x01),
,1,
TM1S,1, // SB sets this bit to indicate that PM_TIMER1 has expired
TM2S,1, // SB sets this bit to indicate that PM_TIMER2 has expired
Offset(0x04),
,7,
SLPS,1, // Set this bit to enable SLP2SMI
Offset(0x1C),
,3,
MKME,1, //
PI3E,1, //
I2E,1, //
PI1E,1, //
PI0E,1, //
Offset(0x1D),
,3,
MKMS,1, //
PI3S,1, //
PI2S,1, //