Jump to content

A simple question about the syntax of OperationRegion


weizh126
 Share

1 post in this topic

Recommended Posts

When I read ACPI Spec, I find this example

OperationRegion (GIO, SystemIO, 0x125, 0x1)
Field (GIO, ByteAcc, NoLock, Preserve) {
IDEI, 1, // IDEISO_EN - isolation buffer
IDEP, 1, // IDE_PWR_EN - power
IDER, 1 // IDERST#_EN - reset#
}

and also the following description

Syntax

OperationRegion (RegionName, RegionSpace, Offset, Length)

Arguments

Declares an operation region named RegionName. Offset is the offset within the selected RegionSpace at

which the region starts (byte-granular), and Length is the length of the region in bytes.

What's the exactly meaning of Length?

There are three arguments, but why the length in the example is one byte ? Is it just because one argument takes one bit, so three arguments take three bits, the unwanted bits (5 bits) are set to zero?

 

Sorry for my silly question,and really appreciate your answer.

Thanks.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...