Sata - 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
PyroMathic
Member
Member
Posts: 33
Joined: Wed Apr 26, 2006 11:00 pm

Sata - driver

Post by PyroMathic »

Hi,

Some time ago i got a new pc, Intel Core 2 Duo 6600, whit an Asus P5B main board (ICH8R), but now i am trying to port my OS to this pc, but i am having some difficulties whit the SATA driver..

My OS is completely able to run on a P3, whit mainboard chip PIIX4 (UDMA 33). But some how i just cant find it how i can access the SATA Device's..


Main questions:
Can i still use the same ATAPI, and ATA commands? or does SATA have its own command list.

How can i access the basic IDE i/o reg's, so which normally would be located at 0x1F0 or 0x170?

Is it possible to write 1 driver which is compatible whit ICH5 and ICH8, main board chips, so is the ICH8 back-ward compatible? (it should be, but i already found a couple of things which would suggest ).


Did any one ever try this? any replies are welcome.

Regards.
PyroMathic
User avatar
carbonBased
Member
Member
Posts: 382
Joined: Sat Nov 20, 2004 12:00 am
Location: Wellesley, Ontario, Canada
Contact:

Post by carbonBased »

I would assume that a Serial ATA drive would obey ATA commands...

I'm under the impression that your existing ATA drivers will work on SATA drives.

--Jeff
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Post by Pype.Clicker »

afaik, SATA mainly acts as yet-another-extension over ultra dma. That is, you first have to locate your IDE controller on the PCI bus, then you check whether it supports SATA and set things up.

much like UDMA isn't used by default, your SATA disk will still support PATA commands after the POST.
User avatar
kataklinger
Member
Member
Posts: 381
Joined: Fri Nov 04, 2005 12:00 am
Location: Serbia

Post by kataklinger »

Pype.Clicker wrote:much like UDMA isn't used by default, your SATA disk will still support PATA commands after the POST.
On some computers you must enable PATA compatibility in BIOS setup.
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Post by Candy »

kataklinger wrote:
Pype.Clicker wrote:much like UDMA isn't used by default, your SATA disk will still support PATA commands after the POST.
On some computers you must enable PATA compatibility in BIOS setup.
You either set up PATA compatibility or use SATA's native mode, AHCI. You can find loads of docs on it, including stuff like NCQ which is pretty sweet for running systems. (FYI, got an SATA disk with NCQ that you can use for tests if you'd like)
PyroMathic
Member
Member
Posts: 33
Joined: Wed Apr 26, 2006 11:00 pm

Post by PyroMathic »

lo,

thx for the replies, got everything working.

Regards
PyroMathic
Post Reply