Re: Staging: add pata_rdc driver

From: Alan Cox
Date: Tue Jun 23 2009 - 04:46:33 EST


On Tue, 23 Jun 2009 10:16:03 +0800
Kevin Huang (???) <Kevin.Huang@xxxxxxxxxx> wrote:

> I just know all pata follow the ATA ATAPI Host Adapters Standard.pdf.
> This standard describes all hardware interfaces for pata. (like sata and AHCI standard spec.)
>
> The original draft does not have any Configuration Registers for Host Adapters. Then Intel proposes ATA Controller PCI Configuration Registers for this lack of the original draft, and T13 accept this proposal.

If your controller is in fact following the Intel proposal then the
interface is basically ata_piix (minus the various intel special cases)
and that makes it very much easier to produce a driver rapidly rather
than clean up the existing pata_rdc.

> Our new controller have crypto function and crypto configuration registers.
> So it don?t like Intel controller.

It seems to be very very close in interface, and that does mean that
there is a fast way to get it up and running which is to clone ata_piix,
remove the irrelevant bits and tweak it. Then of course things like the
crypto function can be added on top.

Is the documentation for the ATA part available ?

Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/