From 20886cb9c0b0f6bed0a404a73c0d9787f4879598 Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Thu, 8 Dec 2011 14:16:03 -0800 Subject: Add user-mode LPC endpoint Signed-off-by: Randall Spangler BUG=none TEST='ectool hello' on target system Change-Id: I39845c2ea107ea6f85ef556d58e49343f5a0e9c0 --- include/lpc.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'include/lpc.h') 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(). 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 - * are sent in the status byte. */ -void lpc_send_host_response(int status); + * are sent in the status byte. 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 */ -- cgit v1.2.1