Call for testers: Apple ATA DMA
Marco Trillo
marcotrillo at gmail.com
Wed Sep 10 17:03:53 UTC 2008
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.
More information about the freebsd-ppc
mailing list