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?
How can I use DMA to transfer my disk data?
-
- Member
- Posts: 27
- Joined: Wed Jun 29, 2022 2:17 am
- Libera.chat IRC: theflysong
How can I use DMA to transfer my disk data?
I'm a new man to develop operating system.
Re: How can I use DMA to transfer my disk data?
Ensure that you understand PCI devices and how to read the configuration space before trying to program a PCI device.The "address" of the Bus Master Register is stored in BAR4, in the PCI Configuration Space of the disk controller.
-
- Member
- Posts: 27
- Joined: Wed Jun 29, 2022 2:17 am
- Libera.chat IRC: theflysong
Re: How can I use DMA to transfer my disk data?
Thanks.I've found the relative pages, and my DMA works properly now!iansjack wrote:Ensure that you understand PCI devices and how to read the configuration space before trying to program a PCI device.The "address" of the Bus Master Register is stored in BAR4, in the PCI Configuration Space of the disk controller.
I'm a new man to develop operating system.