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: matching for a shim driver



G'day Andrew,

This is pretty easy to do. Let me type something up for you more completely.

Godfrey

On Sep 14, , at 13:46, Andrew Gallatin wrote:


I have a device which is much, much more than an ethernet card, but it also is an ethernet card. As it does not really fit any predefined driver class, my current driver for it subclasses ioservice.

To handle the ethernet functionality of this card, I'd like to write
an ioethernetcontroller driver, rather than hooking directly into ifnet
like I did for the last version of the software.  I got kinda sick
of tracking each little change to the network system, and it would
be nice for the interface to appear in the gui tools...

FWIW, the real driver is in charge of all hardware, and the ethernet
driver will just call functions in the main driver to do most of its
work.   Its basically going to be a shim between iokit and the
platform-independant driver.



In reading the driver matching section of iokitfundamentals, it looks
like an iokit driver has to match on "something."  Eg, the system has
to find new "hardware", you can't just load your driver and have it go
looking for something to match on.  The match has to be initiated by
the OS finding something new.

Assuming this is correct, then I need to have the main driver publish
"something" that the ethernet driver can match on.  I think I need to
have each instance of the main driver publish one "something" for a
corresponding instance of the ethernet driver to match on.

Am I on the right track?  Can anybody suggest some sample code to read
which does something similar?  Can the ethernet driver match on
something published by my main driver IOService::publishResource() ?

Thanks,

Drew







 _______________________________________________
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


_______________________________________________ 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
References: 
 >matching for a shim driver (From: Andrew Gallatin <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.