diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2012-05-10 22:47:11 +0000 |
---|---|---|
committer | Vincent Palatin <vpalatin@chromium.org> | 2012-05-14 23:33:21 +0000 |
commit | 87d3707f62c14376f9c5013e455544bf32d0fb33 (patch) | |
tree | a3f88652a3961a51299e4d71605b5e12fb772afd /include/lpc.h | |
parent | 805299d838c996c1a96b9808214d742ea28eb707 (diff) | |
download | chrome-ec-87d3707f62c14376f9c5013e455544bf32d0fb33.tar.gz |
Slightly update the host commands API
Preparatory work to use common host command code between ARM and x86.
Every command sends back explicitly the size of the response payload.
The size of the response defaults to 0 ond can be updated.
Add a protocol version number returned as command 0x00 to help with
backward compatibility.
move a couple of function from lpc specific header to host commands to
be able to implement them for the I2C link.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BUG=chrome-os-partner:9614
TEST=make BOARD=link
Change-Id: I6a28edf02996ddf6b7f32a3831d07d5f0271848f
Diffstat (limited to 'include/lpc.h')
-rw-r--r-- | include/lpc.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/lpc.h b/include/lpc.h index 295522ad1f..45e777689a 100644 --- a/include/lpc.h +++ b/include/lpc.h @@ -15,20 +15,10 @@ */ void lpc_manual_irq(int irq_num); -/* Return 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(). <slot> is 0 for - * kernel-originated commands, 1 for usermode-originated commands. */ -uint8_t *lpc_get_host_range(int slot); - /* Return a pointer to the memory-mapped buffer. This buffer is writable at * any time, and the host can read it at any time. */ uint8_t *lpc_get_memmap_range(void); -/* Send a result code to a host command. <slot> is 0 for kernel-originated - * commands, 1 for usermode-originated commands. */ -void lpc_send_host_response(int slot, int result); - /* Return true if the TOH is still set */ int lpc_keyboard_has_char(void); |