using of DMA

Programming, for all ages and all languages.
Post Reply
User avatar
BOTOKILLER
Member
Member
Posts: 28
Joined: Tue Jan 04, 2011 10:25 am
Location: Ukraine

using of DMA

Post by BOTOKILLER »

Hello everyone! .'-)
I am just starting my own OS and i need some tutorials on reading and writing to hard drives and CDs through DMA(it would be better if it would be Ultra DMA). I searched the whole darn google and foumd nothing usefull......
P.S. Links and files are preffered
User avatar
gravaera
Member
Member
Posts: 737
Joined: Tue Jun 02, 2009 4:35 pm
Location: Supporting the cause: Use \tabs to indent code. NOT \x20 spaces.

Re: using of DMA

Post by gravaera »

BOTOKILLER wrote:Hello everyone! .'-)
I am just starting my own OS and i need some tutorials on reading and writing to hard drives and CDs through DMA(it would be better if it would be Ultra DMA). I searched the whole darn google and foumd nothing usefull......
P.S. Links and files are preffered
Well gosh darn, maybe you need to go search the whole dang thing again...

There are multiple storage interfaces you may need to deal with: ATA, SCSI, etc. Each of those, for whatever chipset/platform you're working on will have its own DMA sub specification. So if you want to develop a driver for ATA storage devices, you need to read the ATA specs, and in there, they will describe ATA DMa for you: along with that, there are articles on it in the Wiki, IIRC.

--Have fun
17:56 < sortie> Paging is called paging because you need to draw it on pages in your notebook to succeed at it.
User avatar
BOTOKILLER
Member
Member
Posts: 28
Joined: Tue Jan 04, 2011 10:25 am
Location: Ukraine

Re: using of DMA

Post by BOTOKILLER »

gravaera wrote:
BOTOKILLER wrote:Hello everyone! .'-)
I am just starting my own OS and i need some tutorials on reading and writing to hard drives and CDs through DMA(it would be better if it would be Ultra DMA). I searched the whole darn google and foumd nothing usefull......
P.S. Links and files are preffered
Well gosh darn, maybe you need to go search the whole dang thing again...

There are multiple storage interfaces you may need to deal with: ATA, SCSI, etc. Each of those, for whatever chipset/platform you're working on will have its own DMA sub specification. So if you want to develop a driver for ATA storage devices, you need to read the ATA specs, and in there, they will describe ATA DMa for you: along with that, there are articles on it in the Wiki, IIRC.

--Have fun

i looked for this specifcations..... there thousands of them, but there is tutorial in Wiki.... the only thing is that tutorial code is written in C++ and i need assembler tutorial http://wiki.osdev.org/ATAPI
User avatar
BOTOKILLER
Member
Member
Posts: 28
Joined: Tue Jan 04, 2011 10:25 am
Location: Ukraine

Re: using of DMA

Post by BOTOKILLER »

berkus wrote:
BOTOKILLER wrote:the only thing is that tutorial code is written in C++ and i need assembler tutorial http://wiki.osdev.org/ATAPI
When you convert it to assembler it will be an assembler tutorial.

EDIT: Or, you can just compile everything with gcc -S 8)

i know, but my Visual C++ cant compile it
Post Reply