Mac/PPC Power Controller "Server Mode"

Mike Hudson (Exoray@isys.ca)
Wed, 26 Apr 2000 16:35:17 -0400


This is a multi-part message in MIME format.

------=_NextPart_000_000D_01BFAF9D.67A8B860
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hey,

I'd like to implement the 'Server Mode' offered on the Mac/PPC =
platform (Cuda IC), however I would like to offer the option for users =
to toggle this on and off. I can add the code to the startup routines =
(which is great for my uses), however I'd like to make this into a =
kernel compile-time option, or (ideally) a run-time option.

Since all mac's use soft power, a special 'server mode' is required =
for the mac to reboot if the AC power hiccups, or if a shutdown is =
needed during an extended AC outage (signalled by UPS). If I don't =
enable it, any power hiccup will kill the system, or (worse) if the =
system has to shutdown due to lack of AC, it will not boot when AC is =
returned. I currently boot into macos to set this through a mac utility, =
however this is clearly not the most elegant way.=20

Would someone be kind enough to point out how exactly I'd add a =
compile-time option to the kenel and/or allow this option to be toggled =
without rebooting the kernel?=20

Mike Hudson

P.S. I don't anticipate this code to be very long, just 1 call to =
cuda_request in via-cuda.c & a few changed in inc/asm-ppc/cuda.h

------=_NextPart_000_000D_01BFAF9D.67A8B860
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

Hey,
 
    I'd like to = implement the=20 'Server Mode' offered on the Mac/PPC platform (Cuda IC), however I would = like to=20 offer the option for users to toggle this on and off. I can add the code = to the=20 startup routines (which is great for my uses), however I'd like to make = this=20 into a kernel compile-time option, or (ideally) a run-time = option.
 
    Since all mac's use = soft power,=20 a special 'server mode' is required for the mac to reboot if the AC = power=20 hiccups, or if a shutdown is needed during an extended AC outage = (signalled by=20 UPS). If I don't enable it, any power hiccup will kill the system, or = (worse) if=20 the system has to shutdown due to lack of AC, it will not boot when AC = is=20 returned. I currently boot into macos to set this through a mac utility, = however=20 this is clearly not the most elegant way.
 
    Would someone be = kind enough to=20 point out how exactly I'd add a compile-time option to the kenel and/or = allow=20 this option to be toggled without rebooting the kernel?
 
Mike Hudson
 
P.S. I don't anticipate this code to be = very long,=20 just 1 call to cuda_request in via-cuda.c & a few changed in=20 inc/asm-ppc/cuda.h
------=_NextPart_000_000D_01BFAF9D.67A8B860-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/