On Nov 20, 2007 5:40 PM, Marco Peereboom <[EMAIL PROTECTED]> wrote:
> yeah the spec tells us to. Why?
maybe I'm wrong in what I'm saying...
device AC could have _PSR but not _STA.
when _STA exists it gives us this information:
0xf -> AC adapter exists
0x0 -> AC adapter does not exists
because this information it is not used later, I really do not
understand why _STA it is evaluated.
some hints?
tnx
> On Tue, Nov 20, 2007 at 11:52:33AM +0100, giovanni wrote:
> > hello,
> >
> > any reason for evaluating _STA before _PSR for getting AC status?
> >
> > if (aml_evalname(sc->sc_acpi, sc->sc_devnode, "_STA", 0, NULL,
> > NULL)) {
> > dnprintf(10, "%s: no _STA\n",
> > DEVNAME(sc));
> > }
> >
> > if (aml_evalname(sc->sc_acpi, sc->sc_devnode, "_PSR", 0, NULL,
> > &res)) {
> > dnprintf(10, "%s: no _PSR\n",
> > DEVNAME(sc));
> > return (1);
> >
> > --
> > see ya,
> > giovanni
> >
>
--
see ya,
giovanni