public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] EC registers - Adding sysfs interface?
@ 2007-11-13 17:24 Carlos Corbacho
  2007-11-13 18:40 ` Alexey Starikovskiy
  2007-11-14  2:40 ` Henrique de Moraes Holschuh
  0 siblings, 2 replies; 13+ messages in thread
From: Carlos Corbacho @ 2007-11-13 17:24 UTC (permalink / raw)
  To: astarikovskiy; +Cc: linux-acpi

Alexey,

I'm considering writing a sysfs interface for the EC registers, and was 
wondering if you would be ok with such a patch (before I start work on it)?

I'd like to expose the registers to userspace, as it is already possible to 
access the EC registers in userspace via /dev/ports (and quite a few of us 
would like to access them) - however, the problem with doing this is that 
ACPI throws quite a few warnings/ errors in dmesg whilst doing this; it would 
therefore be far preferable to expose the registers through sysfs, which 
would in turn be based on the ec_{read,write} calls, so we don't end up 
stepping on ACPI's toes.

So, basically, I'm proposing something like:

/sys/firmware/acpi/ec/ecX
|
|-> 0
|-> 1
|-> 2
|-> etc... (up to 255)

Where each file returns the contents of the EC register in question (via 
ec_read()), and writing to the file calls ec_write().

-Carlos
-- 
E-Mail: carlos@strangeworlds.co.uk
Web: strangeworlds.co.uk
GPG Key ID: 0x23EE722D

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

end of thread, other threads:[~2007-12-10 20:36 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-13 17:24 [RFC] EC registers - Adding sysfs interface? Carlos Corbacho
2007-11-13 18:40 ` Alexey Starikovskiy
2007-11-13 18:46   ` Alexey Starikovskiy
2007-11-13 18:49   ` Carlos Corbacho
2007-11-13 18:54     ` Alexey Starikovskiy
2007-11-13 19:03       ` Carlos Corbacho
2007-11-28 16:28         ` Thomas Renninger
2007-11-28 18:25           ` Alexey Starikovskiy
2007-11-28 23:12             ` Henrique de Moraes Holschuh
2007-12-07  2:52           ` Len Brown
2007-12-07  8:53             ` Thomas Renninger
2007-12-10 20:36               ` Henrique de Moraes Holschuh
2007-11-14  2:40 ` Henrique de Moraes Holschuh

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