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: How to find the pci adapter driver?



On Monday, February 17, 2003, at 05:46 AM, 王瘢雹淑伶 wrote:

> Hi:
> I added the IOPCIMatch field in the IOKitPersonalities with my pci
> adapter's vendorID & DeviceID value . Does Mac OS automatically do the
> matching of the values between IOPCIMatch and OS-built PCI
> informations when
> the executale is kextload manually? Or I have to write something to do
> the
> matching in my source code ? If there is something else I have to pay
> attention to, like how to get the right objects to compare as something
> should be done in my code ,please be kind to let me know.

Matching is done automatically when you load the kext manually or when
new hardware is added (if the kext is load already or in the Extensions
directory). You should not have to write any matching code yourself
(other then overriding the standard probe method to take part in the
active matching phase if needed).

Just make sure your plist entries are correct for both matching and
dependencies (dependencies vary by what your driver needs in order to
function).

The following is from a PCI based Fibre Channel adapter driver I have,
that only runs on 10.2 or later.

<key>IOKitPersonalities</key>
<dict>
<key>FTSW QLC 23xx PCI</key>
<dict>
<key>CFBundleIdentifier</key>
<string>com.ftsw.driver.qlc23xx</string>
<key>IOClass</key>
<string>com_ftsw_drv_qlc_hba_isp23xx</string>
<key>IOPCIMatch</key>
<string>0x23001077</string>
<key>IOProviderClass</key>
<string>IOPCIDevice</string>
</dict>
</dict>
<key>OSBundleLibraries</key>
<dict>
<key>com.apple.kernel.iokit</key>
<string>6.0</string>
<key>com.apple.kernel.libkern</key>
<string>6.0</string>
<key>com.apple.kernel.mach</key>
<string>6.0</string>
<key>com.apple.iokit.IOPCIFamily</key>
<string>1.2</string>
<key>com.apple.iokit.IOSCSIParallelFamily</key>
<string>1.2.0</string>
<key>com.ftsw.library.qlcfchba</key>
<string>1.0</string>
</dict>

-Shawn
_______________________________________________
darwin-drivers mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-drivers
Do not post admin requests to the list. They will be ignored.



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.