文档详情

ACPI简介ACPI简介.ppt

发布:2017-12-15约5.46千字共18页下载文档
文本预览下载声明
* ACPI Advanced V0.1 ACPI Advanced V0.1 CC Wu NS3200 November 22, 2007 ACPI Namespace Structure Declaring Objects Scope(\_SB) { Device(PCI0) { ……………….. Device(VGA0) { ……..} Device(Azalia) {……..} Device(UHC1) { ………….. Device(PRT0) {……….} Device{PRT1) {………} } } } Section 17.5.28 Some ACPI Basics Method (CMSR, 1) { Name ( ABCD, 5 ) Store ( ABCD, Local0 ) Store ( Local0, Arg0 ) Return (Arg0) } Method ( ….) { Store( CMSR(2), Local3 ) } Method - Section 17.5.75 Name - Section 17.5.80 Store - Section 17.5.113 Argx - Section 17.5.5 Localx - Section 17.5.69 Return - Section 17.5.102 PCI Configuration Space Device (UHC4) { OperationRegion(USBR, PCI_Config, 0xC4, 2) Field(USBR, ANYACC, NOLOCK, PRESERVE) { URES, 8, , 7, UR01, 1 } } Field - Section 17.5.44 OperationRegion - Section 17.5.89 Direct I/O OperationRegion(GPIO, SystemIo, 0x500, 0x40) Field(GPIO, ByteAcc, NoLock, Preserve) { Offset(0x00), // GPIO, Use Select, Bank 0 GU00, 8, GU01, 8, GU02, 8, GU03, 8, Offset(0x04), // GPIO, I/O Select, Bank 0 GIO0, 8, GIO1, 8, GIO2, 8, ……………. } OperationRegion(PORT, SystemIO, 0x80, 1) Field(PORT, ByteAcc, NoLock, Preserve) { P80H, 8 } Indirect(Indexed) I/O OperationRegion(CMS1, SystemIO, 0x72, 0x2) Field(CMS1, ByteAcc, NoLock, Preserve) { CMSI, 8, CMSD, 8 } Method (CMSW, 2) // Write to CMOS { Store (Arg0, CMSI) Store (Arg1, CMSD) } Method (CMSR, 1) // Read from CMOS { Store (Arg0, CMSI) Return (CMSD) } System Memory OperationRegion(RCRB,SystemMemory,0xFED1C000,0x4000) Field(RCRB, DWordAcc, Lock,Preserve) { Offset(0x0000), // Backbone Related Registers Offset(0x1000), // Other Chipset Registers Offset(0x3000), // Legacy\Other Chipset Configuration Registers Offset(0x3404), // High Performance Timer Configuration HPAS, 2, // (1:0) High
显示全部
相似文档