Mailing Lists: Apple Mailing Lists

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

SDHCI Driver



I'm wanting to develop a driver for a SDHCI compliant pci based sd card reader as a learning experience. I want to release it opensource to the community to use, and as an example for other developers to follow. I have gotten as far as to get the system to match my driver to the correct VID/DID, and have gotten the device memory mapped and figured out how to read and write blocks to the device by using the start function. I'm now ready to take what I have learned and create a driver to actually tie it in to the system so it is treated as a type of removable media. From what I have read I want to base this off an IOBlockStorageDevice. Is this the best choice or should I base my driver off some other class? Is there any example code showing how to do something simple like implement a ram drive and have it attached to the file system stack? If IOBlockStorageDevice is the best class, then is it as simple as creating my own versions of the various virtual functions? How do I let the system know I want this to tie in to the rest of the file system stack, for example I see myself writing a single driver to handle both the transport and physical interconnect layers(will separate later), but how does the system know to tie these into the Device services layer above? Sorry for all the newbie questions, but this is my first driver in the desktop word, I come from a much simpler embedded world and I'm not use to starting with so much work done for me.

Thanks,
Reggie McMurtrey
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-drivers mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-drivers/email@hidden

This email sent to 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.