Page 1 of 1
How can I use DMA to transfer my disk data?
Posted: Fri Jun 23, 2023 8:19 am
by theflysong
This page is too brief and I can't learn from it.
I even don't know how to get the Bus Master Register.
Is there anyone help me?
Re: How can I use DMA to transfer my disk data?
Posted: Fri Jun 23, 2023 10:06 am
by iansjack
The "address" of the Bus Master Register is stored in BAR4, in the PCI Configuration Space of the disk controller.
Ensure that you understand PCI devices and how to read the configuration space before trying to program a PCI device.
Re: How can I use DMA to transfer my disk data?
Posted: Sat Jun 24, 2023 8:54 am
by theflysong
iansjack wrote: The "address" of the Bus Master Register is stored in BAR4, in the PCI Configuration Space of the disk controller.
Ensure that you understand PCI devices and how to read the configuration space before trying to program a PCI device.
Thanks.I've found the relative pages, and my DMA works properly now!