I didn't adopt the whole coding style to ACPICA one,
hope that is ok.
Any os-independent code should be in the acpica style. Otherwise, it is an os-dependent
style.
>-----Original Message-----
>From: Thomas Renninger [mailto:
[email protected]]
>Sent: Thursday, September 02, 2010 8:31 AM
>To: Moore, Robert
>Cc: devel(a)acpica.org
>Subject: Re: [Devel] Can a userspace tool to read the Embedded Controller
>get added to acpica sources?
>
>On Friday 27 August 2010 23:47:55 Moore, Robert wrote:
>> Seems like it will have lots of very EC-specific stuff, so sure, we
>> can add to ACPICA. Make sure any OS-dependent stuff is modularized.
>Ok, I tried on that.
>
>Find attached the source file which should go to:
>source/tools/ec_access/ec_access.c
>and the Makefile for:
>generate/linux/Makefile.ec_access
>
>I used stderr, fprintf, open, read, write, sync.
>Beside the last, some other files are doing the same.
>
>I didn't explicitly check a real read/write on a recent kernel
>after these changes, but I did before and there weren't that much
>modifications.
>
I didn't adopt the whole coding style to ACPICA one,
hope that is ok.
>
> Thomas