How can I use DMA to transfer my disk data?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
theflysong
Member
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?

Post 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?
I'm a new man to develop operating system.
User avatar
iansjack
Member
Member
Posts: 4703
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: How can I use DMA to transfer my disk data?

Post 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.
theflysong
Member
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?

Post 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!
I'm a new man to develop operating system.
Post Reply