ACPI Implementers’ Guide Draft 8/6/2007
4:32:22 PM Intel/Microsoft/Toshiba
5
Contents
1. INTRODUCTION ........................................................................................................................................9
1.1 S
TRUCTURE OF THE ACPI IMPLEMENTERS’ GUIDE..................................................................................9
2. ACPI NAME SPACE IMPGUIDE ...........................................................................................................11
2.1 B
ASIC NAME SPACE STRUCTURE...........................................................................................................12
2.1.1 Definition Block............................................................................................................................12
2.2 E
NUMERATING BUSES ...........................................................................................................................13
2.2.1 Root Objects .................................................................................................................................13
2.2.1.1 Sleeping State Object................................................................................................................................13
2.2.1.2 Thermal State............................................................................................................................................14
2.2.1.3 System State..............................................................................................................................................14
2.2.1.4 General Purpose Event Scope...................................................................................................................14
2.2.2 System Bus Objects (ACPI Devices).............................................................................................15
2.2.2.1 Root PCI Bridge........................................................................................................................................16
2.2.2.2 PCI-ISA Bridge for ISA devices...............................................................................................................17
2.2.2.3 PCI-PCI Bridge for Docking.....................................................................................................................17
2.3 ENUMERATING DEVICES........................................................................................................................18
2.3.1 PCI Devices ..................................................................................................................................18
2.3.1.1 Card Bus Controller..................................................................................................................................18
2.3.2 ISA Devices...................................................................................................................................18
2.4 U
SING AN EMBEDDED CONTROLLER .....................................................................................................19
2.4.1 Expanding Events Through the Embedded Controller.................................................................19
2.4.2 Defining the Embedded Controller in ASL...................................................................................20
2.4.3 Example of an EC Event (LID).....................................................................................................20
2.4.4 Query Event Processes .................................................................................................................20
2.4.5 LID Wakeup Event........................................................................................................................21
2.5 D
OCKING EVENTS .................................................................................................................................21
2.5.1 Docking-Related Devices (Joystick) .............................................................................................24
3. ACPI EVENT IMPGUIDE........................................................................................................................26
3.1 C
ONNECTING A POWER MANAGEMENT EVENT SIGNAL (PME#) IN AN ACPI SYSTEM ..........................26
3.2 C
ONNECTING PME# SIGNAL DIRECTLY TO A DEDICATED GENERAL PURPOSE EVENT..........................26
3.3 C
ONNECTING A PME# SIGNAL TO THE EMBEDDED CONTROLLER USING LEVEL TRIGGERING ..............28
3.4 C
ONNECTING RUNTIME EVENTS USING THE PIIX4 CHIP SETS ..............................................................28
3.5 PIIX4
METHOD OF CONNECTING RUNTIME EVENTS .............................................................................29
3.6 PIIX4
E METHOD OF CONNECTING RUNTIME EVENTS............................................................................29
4. ACPI EMBEDDED CONTROLLER IMPGUIDE .................................................................................30
4.1 G
ENERAL USE OF AN EC .......................................................................................................................30
4.1.1 Advantages of Using an EC..........................................................................................................30
4.1.2 EC Interfaces ................................................................................................................................30
4.1.2.1 The ACPI (SCI) Interface .........................................................................................................................31
4.2 CONNECTING THE EC TO THE CHIPSET ..................................................................................................31
4.3 W
RITING ASL CODE FOR WAKE-UP EVENTS........................................................................................32
4.4 P
ROLONGING BATTERY LIFE .................................................................................................................34
4.4.1 Smart Battery Subsystem Architecture and How It Is Used by the OS.........................................34
4.4.2 Writing ASL Code to Describe a Smart Battery Subsystem..........................................................35
4.5 T
HERMAL CONTROL..............................................................................................................................35
4.5.1 ACPI Thermal Control Model for Mobile Systems.......................................................................35
4.5.2 How Thermal Trip Points are Used by the OS .............................................................................35
4.5.3 Thermal Sensor Implementations .................................................................................................36
4.5.3.1 Putting the Thermal Sensor Behind the EC...............................................................................................36
4.5.3.2 Connecting the Thermal Sensor to the Chipset.........................................................................................37