^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) What: /sys/kernel/debug/olpc-ec/cmd
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) Date: Dec 2011
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) KernelVersion: 3.4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) Contact: devel@lists.laptop.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) A generic interface for executing OLPC Embedded Controller commands and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) reading their responses.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) To execute a command, write data with the format: CC:N A A A A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) CC is the (hex) command, N is the count of expected reply bytes, and A A A A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) are optional (hex) arguments.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) To read the response (if any), read from the generic node after executing
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) a command. Hex reply bytes will be returned, *whether or not* they came from
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) the immediately previous command.