Skip to content
Discussion options

You must be logged in to vote

The OS has an AML interpreter that runs the AML byte code. So every HW access made by an AML method is actually done by the OS. These accesses go through what is known as an "operation region". Regardless of how the AML code accesses the device, AML always goes through an Operation Region. It's the OS AML interpreter that handles any OpReg access from AML code. Examples of "default" ones always available are MMIO, PCI Config Space. Special things like SPI/I2C, Embedded Controller, etc are available only if the OS has a matching driver - e.g. I2C-backed OpRegs won't work if there is no I2C host drivers. The mechanism how a device driver registers itself as an OpReg handler is obviously OS …

Replies: 1 comment

Comment options

andreiw
Aug 6, 2024
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by andreiw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant