Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Sep 2008 18:55:55 +0200
From:      "Marco Trillo" <marcotrillo@gmail.com>
To:        "Nathan Whitehorn" <nwhitehorn@freebsd.org>
Cc:        powerpc@freebsd.org
Subject:   Re: Call for testers: Apple ATA DMA
Message-ID:  <b9c23c9f0809100955v1d44711od107a6b2f547a7bd@mail.gmail.com>
In-Reply-To: <48C7F336.6060003@freebsd.org>
References:  <48C69864.3010208@freebsd.org> <b9c23c9f0809100322n1659cb36oa05acf2f13f3c7e1@mail.gmail.com> <48C7F336.6060003@freebsd.org>

index | next in thread | previous in thread | raw e-mail

Hi,

On Wed, Sep 10, 2008 at 6:17 PM, Nathan Whitehorn
> Thanks! I had just assumed that the NetBSD driver did the right thing, and
> only have a CD drive attached to a Shasta controller on which to test the
> Kauai driver. I'll change it to do things the right way.

Thank you for your work on this!

If I'm not mistaken the Shasta does ATA/133 - UDMA6, while the Kauai
only does ATA/100 - UDMA5.

Mac OS X uses a different set of timing values for the Shasta
controller than it uses for Kauai; these new timing values include the
UDMA6 mode.

The following are the timing values for the Shasta straight from the
Mac OS X AppleKauaiATA.cpp driver available at [1].

static const u_int pio_timing_shasta[] = {
        0x0A000C97,     /* Mode 0 */
        0x07000712,     /*      1 */
        0x040003CD,     /*      2 */
        0x0400028B,     /*      3 */
        0x0400010A      /*      4 */
};
static const u_int dma_timing_shasta[] = {
        0x00820800,     /* Mode 0 */
        0x0028B000,     /*      1 */
        0x001CA000      /*      2 */
};
static const u_int udma_timing_shasta[] = {
        0x00035901,     /* Mode 0 */
        0x000348b1,     /*      1 */
        0x00033881,     /*      2 */
        0x00033861,     /*      3 */
        0x00033841,     /*      4 */
        0x00033031,     /*      5 */
        0x00033021      /*      6 */
};

Hope you find it useful!

[1] http://www.opensource.apple.com/darwinsource/10.4.11.ppc/AppleKauaiATA-121.3.4/AppleKauaiATA.cpp


Regards,
Marco.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b9c23c9f0809100955v1d44711od107a6b2f547a7bd>