summaryrefslogtreecommitdiff
path: root/include/lpc.h
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2011-12-08 14:16:03 -0800
committerRandall Spangler <rspangler@chromium.org>2011-12-08 16:18:20 -0800
commit20886cb9c0b0f6bed0a404a73c0d9787f4879598 (patch)
tree698947b11624a67cc700c6e236a279eefb0ec801 /include/lpc.h
parent9a545441d76eb308c85446042098d5c096548add (diff)
downloadchrome-ec-20886cb9c0b0f6bed0a404a73c0d9787f4879598.tar.gz
Add user-mode LPC endpoint
Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=none TEST='ectool hello' on target system Change-Id: I39845c2ea107ea6f85ef556d58e49343f5a0e9c0
Diffstat (limited to 'include/lpc.h')
-rw-r--r--include/lpc.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/lpc.h b/include/lpc.h
index ac0b56c137..9fa68381a3 100644
--- a/include/lpc.h
+++ b/include/lpc.h
@@ -16,11 +16,13 @@ int lpc_init(void);
/* Returns a pointer to the host command data buffer. This buffer
* must only be accessed between a notification to
* host_command_received() and a subsequent call to
- * lpc_SendHostResponse(). */
-volatile uint8_t *lpc_get_host_range(void);
+ * lpc_SendHostResponse(). <slot> is 0 for kernel-originated
+ * commands, 1 for usermode-originated commands. */
+uint8_t *lpc_get_host_range(int slot);
/* Sends a response to a host command. The bottom 4 bits of <status>
- * are sent in the status byte. */
-void lpc_send_host_response(int status);
+ * are sent in the status byte. <slot> is 0 for kernel-originated
+ * commands, 1 for usermode-originated commands. */
+void lpc_send_host_response(int slot, int status);
#endif /* __CROS_EC_LPC_H */