* Wake-on-LAN on PowerBook G4
@ 2003-02-24 19:45 Greg Allen
2003-02-24 19:58 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 2+ messages in thread
From: Greg Allen @ 2003-02-24 19:45 UTC (permalink / raw)
To: linuxppc-dev
I have a PowerBook G4, 1GHz. Wake-on-LAN works fine under MacOS X,
but seems to be ignored on Linux.
My guess is that this belongs in
drivers/macintosh/via-pmu.c, at about line 2070:
/* Tell PMU what events will wake us up */
....
pmu_request(&req, NULL, 4, PMU_POWER_EVENTS, PMU_PWR_SET_WAKEUP_EVENTS,
0, PMU_PWR_WAKEUP_KEY |
(option_lid_wakeup ? PMU_PWR_WAKEUP_LID_OPEN : 0));
Several other options for wakeup are listed in include/linux/pmu.h,
but Wake-on-LAN is not one of them.
I'd like to make this work and am willing to try, but need more info.
Questions:
Is this the right place, and there's just a PMU_PWR_WAKEUP_LAN bit missing?
Does anyone know what that bit is? Perhaps Apple doesn't tell us.
Is there a MacOSX program that dumps this PMU register, so I can
twiddle the setting and see if a PMU bit changes?
Any advice greatly appreciated. If there's a more appropriate list,
please let me know.
Thanks,
-Greg
--
Gregory E. Allen, MSEE Engineering Scientist
Applied Research Laboratories: The University of Texas at Austin
Please help find my missing daughter: http://FindSabrina.org/
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Wake-on-LAN on PowerBook G4
2003-02-24 19:45 Wake-on-LAN on PowerBook G4 Greg Allen
@ 2003-02-24 19:58 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 2+ messages in thread
From: Benjamin Herrenschmidt @ 2003-02-24 19:58 UTC (permalink / raw)
To: Greg Allen; +Cc: linuxppc-dev
On Mon, 2003-02-24 at 20:45, Greg Allen wrote:
> I have a PowerBook G4, 1GHz. Wake-on-LAN works fine under MacOS X,
> but seems to be ignored on Linux.
>
> My guess is that this belongs in
> drivers/macintosh/via-pmu.c, at about line 2070:
>
> /* Tell PMU what events will wake us up */
> ....
> pmu_request(&req, NULL, 4, PMU_POWER_EVENTS, PMU_PWR_SET_WAKEUP_EVENTS,
> 0, PMU_PWR_WAKEUP_KEY |
> (option_lid_wakeup ? PMU_PWR_WAKEUP_LID_OPEN : 0));
>
> Several other options for wakeup are listed in include/linux/pmu.h,
> but Wake-on-LAN is not one of them.
>
> I'd like to make this work and am willing to try, but need more info.
> Questions:
>
> Is this the right place, and there's just a PMU_PWR_WAKEUP_LAN bit missing?
> Does anyone know what that bit is? Perhaps Apple doesn't tell us.
> Is there a MacOSX program that dumps this PMU register, so I can
> twiddle the setting and see if a PMU bit changes?
I don't know if it's related to that PMU command or not. There is definitely
some code to add to sungem driver's PHY management (compare it to what
AppleGMACEthernet does).
Ben.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-02-24 19:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-24 19:45 Wake-on-LAN on PowerBook G4 Greg Allen
2003-02-24 19:58 ` Benjamin Herrenschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).