Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: sleep and wakeup problem using DHCP
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sleep and wakeup problem using DHCP



On Nov 9, 2010, at 5:30 AM, kiran kumar wrote:
> Hi All,
>
> i am new to the drivers.
> I am porting a my ethernet driver to 10.5x.
> I set the configure ip to DHCP mode when pc sleep and wakeup it work fine in 10.4x.The same thing not work in 10.5x.
>
> In my code there is no initialize power management using  PMinit,joinPMtree,registerPowerDriver, setPowerState these methods.
>
> And also whenever system sleep and wakeup i am not getting any notification from the driver in message() method .
>
> how to initialize power management in my code.can any one reply me plz

You are more or less on the wrong mailing list.  The correct list for driver related questions is the drivers mailing list:

	<http://lists.apple.com/mailman/listinfo/darwin-drivers>

Andrew Myrick has already given you some good advice to getting started.


I would suggest you consider starting with an existing published driver similar in function to the driver you are wanting to port, and modifying it for your specific hardware.

You may believe that your driver is not calling those power managment routines, but it will in fact call them as part of the IONetworkController::start() function or as a result of your override of this function.

Here's a dated but still useful overview as a starting point:

	<http://arstechnica.com/civis/viewtopic.php?f=19&t=541944>

Here's the Apple reference material:

<http://developer.apple.com/library/mac/#documentation/Darwin/Reference/IOKit/IONetworkController_h/Classes/IONetworkController/index.html>

-- Terry _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >sleep and wakeup problem using DHCP (From: kiran kumar <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.