Page 1 of 1
using of DMA
Posted: Sat Feb 12, 2011 4:44 am
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
Re: using of DMA
Posted: Sat Feb 12, 2011 5:30 am
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
Re: using of DMA
Posted: Sat Feb 12, 2011 5:46 am
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
Re: using of DMA
Posted: Sun Feb 13, 2011 12:18 am
by BOTOKILLER
berkus wrote:
When you convert it to assembler it will be an assembler tutorial.
EDIT: Or, you can just compile everything with gcc -S
i know, but my Visual C++ cant compile it