IDE driver

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
Cyber_Ghost

IDE driver

Post by Cyber_Ghost »

Hi I'm writing an IDE driver and would like to get some pointers to info on doing it.

It should be a protected mode driver and should only be able to write and read a sector for starters.
Do I only need to write functions that read and write a sector or do I need something else too?
I've tried to write the functions but when I use them it makes VMware crash, so I guess I need to do something before I write a sector.
What is it?

Thanks,
Peleg
Cyber_Ghost

Re:IDE driver

Post by Cyber_Ghost »

anyone?
crazybuddha

Re:IDE driver

Post by crazybuddha »

General information regarding programming disk controllers:

http://www.nondot.org/sabre/os/articles ... iscDrives/

http://www.ata-atapi.com/


If you are looking for code samples, you will have to scour the available OSes which have matured to this level.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:IDE driver

Post by Pype.Clicker »

My OS is currently missing an IDE driver ... i'd be pretty interrested to see what your code looks like once you're done (especially if it's in C :)
Cyber_Ghost

Re:IDE driver

Post by Cyber_Ghost »

I hope It'll be done sometime.
frank

Re:IDE driver

Post by frank »

I wrote some ide stuff before..
(tried to use the ide ports to load in my kenrel >] ,
which I (ofcourse) do not do now :))

I've found this article very usefull:
http://www.nondot.org/sabre/os/files/Disk/HD_PORTS.asm
Post Reply