xref: /OK3568_Linux_fs/kernel/Documentation/ABI/testing/debugfs-olpc (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunWhat:		/sys/kernel/debug/olpc-ec/cmd
2*4882a593SmuzhiyunDate:		Dec 2011
3*4882a593SmuzhiyunKernelVersion:	3.4
4*4882a593SmuzhiyunContact:	devel@lists.laptop.org
5*4882a593SmuzhiyunDescription:
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunA generic interface for executing OLPC Embedded Controller commands and
8*4882a593Smuzhiyunreading their responses.
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunTo execute a command, write data with the format: CC:N A A A A
11*4882a593SmuzhiyunCC is the (hex) command, N is the count of expected reply bytes, and A A A A
12*4882a593Smuzhiyunare optional (hex) arguments.
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunTo read the response (if any), read from the generic node after executing
15*4882a593Smuzhiyuna command. Hex reply bytes will be returned, *whether or not* they came from
16*4882a593Smuzhiyunthe immediately previous command.
17