Copyright © 2003 by Apple Computer, Inc.  All Rights Reserved.

PC Card Example Project

This directory contains an example project that demonstrates how to write a 16-bit PC Card Driver.  It should work with most cards.  Before you can use this driver, you will first need to need to modify it's matching information to have it match against your card.

To change the cards that this sample driver will match against you will need to modify the "IOKitPersonalities" dictionary in the driver's Info.plist file.  It is best do this from Project Builder.  First go to the "Project" menu in Project Builder and select "Edit Active Target 'ApplePCCardSample'".  On the left hand side of the window, click on "Expert View" under the section "Info.plist Entries".  This will display the property list contained in the Info.Plist file for this driver.  The entry you want to change is "IOKitPersonalities".

For more information on how to change these entries, please see the HeaderDoc for class IOPCCard16Device.  One way to view this is from Project Builder by going to Help > Developer Help Center > Darwin > API Reference > Device Drivers > IOPCCard16Device.

WARNING:  With this driver installed many PC Cards will match against this driver instead of the normal driver for that card.  This is due to it's high probe score.  If you need to use your PC Card socket for normal work, you should first remove this driver.

You may incorporate sample code from these examples into your applications without restriction, although the sample code has been provided "as is" and the responsibility for its operation is completely yours. However, you should not redistribute the source as "Apple Sample Code" if you make changes to it. If you're going to re-distribute the source, we require that you make it clear in the source that, although the code derived from Apple Sample Code,  you've since made changes to it.