Hi I'm trying to write an AHCI driver following https://wiki.osdev.org/AHCI.
In the sample program, start from "port->clb", which is the pointer to "Command List" and all following pointers, are defined by OS programmer.
Since ABAR and Ports are memory mapped address, I would like to ask if the following structure should be located in physical memory (RAM) or the memory mapped address??
Thanks a lot!
AHCI Command List should be in Physical address or MMIO?
-
- Member
- Posts: 5575
- Joined: Mon Mar 25, 2013 7:01 pm
Re: AHCI Command List should be in Physical address or MMIO
I thought this diagram made it pretty clear.
Re: AHCI Command List should be in Physical address or MMIO
So it would be the RAM/physical memory right? and the AHCI controller would read from DMA method.Octocontrabass wrote:I thought this diagram made it pretty clear.
Thanks a lot
-
- Member
- Posts: 5575
- Joined: Mon Mar 25, 2013 7:01 pm
Re: AHCI Command List should be in Physical address or MMIO
Yes, that's correct.