Could anyone teach me how to do a 32-bit PMODE ATA Disk Driv

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
w

Could anyone teach me how to do a 32-bit PMODE ATA Disk Driv

Post by w »

Hi! I am a Chinese.I am doing a pmode kernel,but I do not know how to do a 32-bit pmode ata disk driver.Could you help me or give me any messages for developing it?
My Email is at [email protected]
User avatar
gaf
Member
Member
Posts: 349
Joined: Thu Oct 21, 2004 11:00 pm
Location: Munich, Germany

RE:Could anyone teach me how to do a 32-bit PMODE ATA Disk D

Post by gaf »

Hi,
I've never written a ATA driver of my own but I can give you some links that may help you:
http://www.ata-atapi.com/
http://www.repairfaq.org/filipg/LINK/F_IDE-tech.html
http://www.cyberscriptorium.com/index.php   (search for "atapi")
http://www.singlix.org/trdos/specs.html

cheers,
gaf
orb2000

RE:Could anyone teach me how to do a 32-bit PMODE ATA Disk D

Post by orb2000 »

This can be as simple as wrapping a few routines around the standard ata PIO interface, or if you are after performance then you must use chipset documentation regarding the ATA/IDE controller.  The controller datasheets allow you to configure your drive for more advanced modes such as bus master support of offload the work from your cpu.  Also UDMA support can only be enabled by communicating directly with the controller.

I've developed a generic ATA wrapper around the PIO method for legacy hardware - or ones that i haven't written a driver for. Bus master support for Intel PII3 and VIA chipsets is complete. It?s not that complicated but i suggest that you get the ata specs, preferably the latest one as they are all backward compatible.

cheers
orb
ASHLEY4

RE:Could anyone teach me how to do a 32-bit PMODE ATA Disk D

Post by ASHLEY4 »

You can take a look at my driver
  http://www.falconrybells.co.uk/
And down load TestOs.zip

ASHLEY4.
Post Reply