Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PCIATA driver matching



At 7:50 AM -0500 12/24/02, Ernesto Corvi wrote:

I see where you're going with this. Basically that's how the CMD646 driver works. However, I notice it tries to match on a 'ata-4' property, and for the life of me I can't seem to find where you set that property on the Root driver.

Thanks for the heads up.

Ernesto.


Hi Ernesto,

The 'ata-4' property is in the device tree in the boot-rom. We just copy down what the boot-rom left in the device tree when creating the nub.

If you are rolling your own driver for something that doesn't have an openfirmware ROM on it, you'll just insert whatever information you need for your device to work. Basically, just make a name, say "ernesto-corvi-ata" for example and add that to the dictionary for the nub. You can also insert the device memory properties, whether this is the primary or secondary ATA cell in the chip or whatever makes life easier for you in the ATA part of the driver.


--

---------------------
I make stuff go.
---------------------

Larry Barras
Apple Computer Inc.
1 Infinite Loop
MS: 306-2TC
Cupertino, CA 95014
(408) 974-3220
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: PCIATA driver matching (From: Ernesto Corvi <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.