RE: iasl

Moore, Robert
2003-05-12T17:03:13Z

Just as well then. I can maintain that the AML interpreter cannot
simply "guess" at which is wrong -- the length of the operation region,
or the access width of the field definition.

Bob

> -----Original Message-----
> From: Ducrot Bruno [mailto:ducrot-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org]
> Sent: Monday, May 12, 2003 3:17 AM
> To: Moore, Robert
> Cc: sjb; Ducrot Bruno; ACPI List
> Subject: Re: [ACPI] iasl
>
> On Fri, May 09, 2003 at 01:47:39PM -0700, Moore, Robert wrote:
> >
> > In this case, we know that PCI_Config space is always accessed by
32-bit
> > reads/writes, so change the Op region definition to length 4.
>
> You know nothing about that the fact that PCI_Config space have
> to be accessed as 32-bit reads/write. It may be the
> Field(PIUC, DWordAcc,...) to be bogus. A better look of this field
> is needed.
>
> Imagine it look like
> Field(PIUC, DWordAcc, ...)
> {
> FOO, 16
> }
>
> then a better fix is:
> OperationRegion (PIUC, PCI_Config, 0x74, 0x02)
> Field(PIUC, WordAcc, ...)
> {
> FOO, 16
> }
>
> Or FOO may be 8 bit long.
> In that case, a possible fix is:
> OperationRegion (PIUC, PCI_Config, 0x74, 0x01)
> Field(PIUC, ByteAcc, ...)
> {
> FOO, 8
> }
>
>
> Unless sjb give us more info, we can not tell anything at this
> stage.
>
> --
> Ducrot Bruno
>
> -- Which is worse: ignorance or apathy?
> -- Don't know. Don't care.