27.10.2015 Views

Advanced Configuration and Power Interface Specification

ACPI_6.0

ACPI_6.0

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

Example<br />

The following block of ASL sample code shows a nested use of Device objects to describe an IDE<br />

controller connected to the root PCI bus.<br />

Device (IDE0) {<br />

Name (_ADR, 0)<br />

// primary controller<br />

// put PCI Address (device/function) here<br />

// define region for IDE mode register<br />

OperationRegion (PCIC, PCI_Config, 0x50, 0x10)<br />

Field (PCIC, AnyAcc, NoLock, Preserve) {<br />

…<br />

}<br />

Device (PRIM) {<br />

// Primary adapter<br />

Name (_ADR, 0) // Primary adapter = 0<br />

…<br />

Method (_STM, 2) {<br />

…<br />

}<br />

Method (_GTM) {<br />

…<br />

}<br />

Device (MSTR) {<br />

// master channel<br />

Name (_ADR, 0)<br />

Name (_PR0, Package () {0, PIDE})<br />

}<br />

}<br />

Name (_GTF) {<br />

…<br />

}<br />

}<br />

Device (SLAV) {<br />

Name (_ADR, 1)<br />

Name (_PR0, Package () {0, PIDE})<br />

Name (_GTF) {<br />

…<br />

}<br />

}<br />

19.6.31 Divide (Integer Divide)<br />

Syntax<br />

Divide (Dividend, Divisor, Remainder, Result) => Integer<br />

Result = Dividend / Divisor => Integer<br />

Result /= Divisor => Integer<br />

Arguments<br />

Dividend <strong>and</strong> Divisor are evaluated as Integers.<br />

Description<br />

Dividend is divided by Divisor, then the resulting remainder is optionally stored into Remainder <strong>and</strong><br />

the resulting quotient is optionally stored into Result. Divide-by-zero exceptions are fatal.<br />

822 April, 2015 Version 6.0

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

Saved successfully!

Ooh no, something went wrong!