public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* syntax error, unexpected PARSEOP_IF
@ 2005-05-14 22:20 Elliott Martin
       [not found] ` <200505141520.55501.johnelliottmartin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Elliott Martin @ 2005-05-14 22:20 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

[-- Attachment #1: Type: text/plain, Size: 1777 bytes --]

Hello,

I am trying to fix up my DSDT for my Averatec 3300 laptop and I have gotten 
the ASL errors from 190 down to 1 and I don't know how to fix this last 
error, so I thought I should ask for help.

The error from iasl is:

dsdt.dsl  3674:     If (SS1)
Error    1037 -      ^ syntax error, unexpected PARSEOP_IF

and the code surronding that line is (with line numbers):

  3651
  3652          Name (SLPS, 0x00)
  3653          Device (SLPB)
  3654          {
  3655              Name (_HID, EisaId ("PNP0C0E"))
  3656              Method (_STA, 0, NotSerialized)
  3657              {
  3658                  Return (0x0F)
  3659              }
  3660
  3661              Method (\_GPE._L1D, 0, NotSerialized)
  3662              {
  3663                  Notify (\_SB.PWRB, 0x02)
  3664              }
  3665
  3666              Name (_PRW, Package (0x02)
  3667              {
  3668                  0x1D,
  3669                  0x03
  3670              })
  3671          }
  3672      }
  3673
  3674      If (SS1)
  3675      {
  3676          Name (\_SB.PCI0._S1D, 0x02)
  3677          Name (\_SB.PCI0.P0P1._S1D, 0x02)
  3678          Name (\_SB.PCI0.USB1._S1D, 0x02)
  3679          Name (\_SB.PCI0.USB2._S1D, 0x02)
  3680          Name (\_SB.PCI0.USB3._S1D, 0x02)
  3681      }
  3682
  3683      If (SS3)
  3684      {
  3685          Name (\_SB.PCI0._S3D, 0x03)
  3686          Name (\_SB.PCI0.P0P1._S3D, 0x03)
  3687          Name (\_SB.PCI0.USB1._S3D, 0x03)
  3688          Name (\_SB.PCI0.USB2._S3D, 0x03)
  3689          Name (\_SB.PCI0.USB3._S3D, 0x03)
  3690      }
  3691

It seems like a perfectly reasonable place for an If stmt, so does anyone know 
where I should start looking?

-Elliott

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: syntax error, unexpected PARSEOP_IF
       [not found] ` <200505141520.55501.johnelliottmartin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2005-05-14 23:05   ` Janosch Machowinski
  0 siblings, 0 replies; 3+ messages in thread
From: Janosch Machowinski @ 2005-05-14 23:05 UTC (permalink / raw)
  To: Elliott Martin; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Elliott Martin schrieb:
> Hello,
> 
> I am trying to fix up my DSDT for my Averatec 3300 laptop and I have gotten 
> the ASL errors from 190 down to 1 and I don't know how to fix this last 
> error, so I thought I should ask for help.
> 
> The error from iasl is:
> 
> dsdt.dsl  3674:     If (SS1)
> Error    1037 -      ^ syntax error, unexpected PARSEOP_IF
> 
> and the code surronding that line is (with line numbers):
> 
>   3651
>   3652          Name (SLPS, 0x00)
>   3653          Device (SLPB)
>   3654          {
>   3655              Name (_HID, EisaId ("PNP0C0E"))
>   3656              Method (_STA, 0, NotSerialized)
>   3657              {
>   3658                  Return (0x0F)
>   3659              }
>   3660
>   3661              Method (\_GPE._L1D, 0, NotSerialized)
>   3662              {
>   3663                  Notify (\_SB.PWRB, 0x02)
>   3664              }
>   3665
>   3666              Name (_PRW, Package (0x02)
>   3667              {
>   3668                  0x1D,
>   3669                  0x03
>   3670              })
>   3671          }
>   3672      }
>   3673
>   3674      //If (SS1)
>   3675      //{
>   3676          Name (\_SB.PCI0._S1D, 0x02)
>   3677          Name (\_SB.PCI0.P0P1._S1D, 0x02)
>   3678          Name (\_SB.PCI0.USB1._S1D, 0x02)
>   3679          Name (\_SB.PCI0.USB2._S1D, 0x02)
>   3680          Name (\_SB.PCI0.USB3._S1D, 0x02)
>   3681      //}
>   3682
>   3683      //If (SS3)
>   3684      //{
>   3685          Name (\_SB.PCI0._S3D, 0x03)
>   3686          Name (\_SB.PCI0.P0P1._S3D, 0x03)
>   3687          Name (\_SB.PCI0.USB1._S3D, 0x03)
>   3688          Name (\_SB.PCI0.USB2._S3D, 0x03)
>   3689          Name (\_SB.PCI0.USB3._S3D, 0x03)
>   3690      //}
>   3691
> 
> It seems like a perfectly reasonable place for an If stmt, so does anyone know 
> where I should start looking?
> 
> -Elliott

I added a few // above, that does the trick...
But I'm not shure if this is the right way to do it.
What exactly should SS1 and SS3 be ? I got similar constructs in
my DSDT from an ASUS M6Ne.

   Janosch


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: syntax error, unexpected PARSEOP_IF
@ 2005-05-18 22:21 Moore, Robert
  0 siblings, 0 replies; 3+ messages in thread
From: Moore, Robert @ 2005-05-18 22:21 UTC (permalink / raw)
  To: Janosch Machowinski, Elliott Martin
  Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

This is the infamous "executable code at module level".  This type of
code became grammatically incorrect as of ACPI 2.0B, but we are looking
at supporting this type of legacy code.

Please send your DSDT.
Bob


> -----Original Message-----
> From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:acpi-devel-
> admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Janosch Machowinski
> Sent: Saturday, May 14, 2005 4:05 PM
> To: Elliott Martin
> Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> Subject: Re: [ACPI] syntax error, unexpected PARSEOP_IF
> 
> Elliott Martin schrieb:
> > Hello,
> >
> > I am trying to fix up my DSDT for my Averatec 3300 laptop and I have
> gotten
> > the ASL errors from 190 down to 1 and I don't know how to fix this
last
> > error, so I thought I should ask for help.
> >
> > The error from iasl is:
> >
> > dsdt.dsl  3674:     If (SS1)
> > Error    1037 -      ^ syntax error, unexpected PARSEOP_IF
> >
> > and the code surronding that line is (with line numbers):
> >
> >   3651
> >   3652          Name (SLPS, 0x00)
> >   3653          Device (SLPB)
> >   3654          {
> >   3655              Name (_HID, EisaId ("PNP0C0E"))
> >   3656              Method (_STA, 0, NotSerialized)
> >   3657              {
> >   3658                  Return (0x0F)
> >   3659              }
> >   3660
> >   3661              Method (\_GPE._L1D, 0, NotSerialized)
> >   3662              {
> >   3663                  Notify (\_SB.PWRB, 0x02)
> >   3664              }
> >   3665
> >   3666              Name (_PRW, Package (0x02)
> >   3667              {
> >   3668                  0x1D,
> >   3669                  0x03
> >   3670              })
> >   3671          }
> >   3672      }
> >   3673
> >   3674      //If (SS1)
> >   3675      //{
> >   3676          Name (\_SB.PCI0._S1D, 0x02)
> >   3677          Name (\_SB.PCI0.P0P1._S1D, 0x02)
> >   3678          Name (\_SB.PCI0.USB1._S1D, 0x02)
> >   3679          Name (\_SB.PCI0.USB2._S1D, 0x02)
> >   3680          Name (\_SB.PCI0.USB3._S1D, 0x02)
> >   3681      //}
> >   3682
> >   3683      //If (SS3)
> >   3684      //{
> >   3685          Name (\_SB.PCI0._S3D, 0x03)
> >   3686          Name (\_SB.PCI0.P0P1._S3D, 0x03)
> >   3687          Name (\_SB.PCI0.USB1._S3D, 0x03)
> >   3688          Name (\_SB.PCI0.USB2._S3D, 0x03)
> >   3689          Name (\_SB.PCI0.USB3._S3D, 0x03)
> >   3690      //}
> >   3691
> >
> > It seems like a perfectly reasonable place for an If stmt, so does
> anyone know
> > where I should start looking?
> >
> > -Elliott
> 
> I added a few // above, that does the trick...
> But I'm not shure if this is the right way to do it.
> What exactly should SS1 and SS3 be ? I got similar constructs in
> my DSDT from an ASUS M6Ne.
> 
>    Janosch
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by Oracle Space Sweepstakes
> Want to be the first software developer in space?
> Enter now for the Oracle Space Sweepstakes!
> http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
> _______________________________________________
> Acpi-devel mailing list
> Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/acpi-devel


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_idt12&alloc_id\x16344&op=click

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-05-18 22:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-14 22:20 syntax error, unexpected PARSEOP_IF Elliott Martin
     [not found] ` <200505141520.55501.johnelliottmartin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2005-05-14 23:05   ` Janosch Machowinski
  -- strict thread matches above, loose matches on Subject: below --
2005-05-18 22:21 Moore, Robert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox