Re: sleep and wakeup problem using DHCP
Re: sleep and wakeup problem using DHCP
- Subject: Re: sleep and wakeup problem using DHCP
- From: Terry Lambert <email@hidden>
- Date: Tue, 9 Nov 2010 15:38:58 -0800
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