summaryrefslogtreecommitdiff
path: root/include/lpc.h
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-02-15 15:05:35 -0800
committerRandall Spangler <rspangler@chromium.org>2012-02-15 15:12:03 -0800
commit6101cebb6a7b0d0aadf3df98e98284b60946c419 (patch)
tree783e01e66a0f38875db5de873cd07aeba1953930 /include/lpc.h
parentc160dae1d45ea1a02e17b5de75e75a396b160627 (diff)
downloadchrome-ec-6101cebb6a7b0d0aadf3df98e98284b60946c419.tar.gz
Reduce LPC command parameters to 128 bytes; add LPC memory-mapped space
This will allow more efficient access to EC-provided data (temperature, fan, battery) by the main processor. Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=chrome-os-partner:7857 TEST='ectool hello' from link main processor should still work Change-Id: I2dc683f3441b34de9fb4debf772e386b9fdcfa82
Diffstat (limited to 'include/lpc.h')
-rw-r--r--include/lpc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/lpc.h b/include/lpc.h
index d87d9bab7c..69968dba99 100644
--- a/include/lpc.h
+++ b/include/lpc.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
+/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
@@ -27,6 +27,10 @@ int lpc_init(void);
* commands, 1 for usermode-originated commands. */
uint8_t *lpc_get_host_range(int slot);
+/* Returns 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);
+
/* Sends a response to a host command. The bottom 4 bits of <status>
* are sent in the status byte. <slot> is 0 for kernel-originated
* commands, 1 for usermode-originated commands. */