Documentation/ABI/testing/debugfs-ec

Source file repositories/reference/linux-study-clean/Documentation/ABI/testing/debugfs-ec

File Facts

System
Linux kernel
Corpus path
Documentation/ABI/testing/debugfs-ec
Extension
[no extension]
Size
848 bytes
Lines
22
Domain
Support Tooling And Documentation
Bucket
Documentation
Inferred role
Support Tooling And Documentation: Documentation
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

What:		/sys/kernel/debug/ec/*/{gpe,use_global_lock,io}
Date:		July 2010
Contact:	Thomas Renninger <trenn@suse.de>
Description:

General information like which GPE is assigned to the EC and whether
the global lock should get used.
Knowing the EC GPE one can watch the amount of HW events related to
the EC here (XY -> GPE number from `/sys/kernel/debug/ec/*/gpe`):
/sys/firmware/acpi/interrupts/gpeXY

The io file is binary and a userspace tool located here:
ftp://ftp.suse.com/pub/people/trenn/sources/ec/
should get used to read out the 256 Embedded Controller registers
or writing to them.

CAUTION:
  Do not write to the Embedded Controller if you don't know
  what you are doing! Rebooting afterwards also is a good idea.
  This can influence the way your machine is cooled and fans may
  not get switched on again after you did a wrong write.

Annotation

Implementation Notes