Subject: Re: Power management for hpcmips
To: David Brownlee <abs@netbsd.org>
From: TAKEMURA Shin <takemura@netbsd.org>
List: port-hpcmips
Date: 06/03/2000 19:49:10
----- Original Message ----- 
From: "David Brownlee" <abs@netbsd.org>
To: "TAKEMURA Shin" <takemura@netbsd.org>
Cc: "Curtis Galloway" <curtisg@arsdigita.com>; <port-hpcmips@netbsd.org>
Sent: Saturday, June 03, 2000 5:55 PM
Subject: Re: Power management for hpcmips


> > Though the APM is too dependent on i386 archtecture, I want
> > to use it's userland. So I'm going to rewrite APM driver in 
> > MI/MD style. I'm glad if you rewrite APM driver in MI/MD style.
> 
> I think NetBSD/sparc might use some apm code for the Tadpole
> laptop - it might be worth looking to see what was done there.

Yes. I saw the tcrtl.c (Tadpole controle driver) and felt that
we shouldn't write adhoc APM mutant driver any more.

I do NOT mean perfect and ultimate MI power management
frame work but it will be rewritten with MI/MD sepalated style 
and the prefix will be changed from APM to something which 
remainds you of power management or system control.

I'd like to call it syscmd (System Commander). The device
entry, /dev/syscmd should be fully(?) compatible with the APM
in ioctl and the module should be attached to the kernel like 
below:

hpcpm0    at somewhere    # hpcmips specific power management
sysctl0    at hpcpm0    # machine independent stuff

/dev/apm might be symbolic link to /dev/syscmd and some
of APM related user land programs may work with 
recompiling.

But it's just idea for now...

Takemura