diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-07-03 14:45:59 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-07-07 17:14:18 -0700 |
commit | 7f5f7be3e5df92ec2e9447b3d5d0b8ddeb96c9a0 (patch) | |
tree | f58e23fa5d053e31163faf8279882f0d9891c1fe /include/host_command.h | |
parent | 0e42faf85b3a4adbc83cb087e0bdab7641df9f1b (diff) | |
download | chrome-ec-7f5f7be3e5df92ec2e9447b3d5d0b8ddeb96c9a0.tar.gz |
Add memory-mapped data support for I2C and SPI protocols
And fix returning memory-mapped string length on LPC as well.
BUG=chrome-os-partner:11090
TEST=manual
from EC, 'hostevent set 0x40000'
from host, 'ectool eventget' --> should print 0x40000
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Change-Id: I9edbd0a1468b5d4160ce67c471332226e51fa868
Reviewed-on: https://gerrit.chromium.org/gerrit/26719
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/host_command.h')
-rw-r--r-- | include/host_command.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/host_command.h b/include/host_command.h index 69facb6268..296ac26d8c 100644 --- a/include/host_command.h +++ b/include/host_command.h @@ -22,6 +22,17 @@ struct host_command { }; /** + * Return a pointer to the memory-mapped buffer. + * + * This buffer is EC_MEMMAP_SIZE bytes long, is writable at any time, and the + * host can read it at any time. + * + * @param offset Offset within the range to return + * @return pointer to the buffer at that offset + */ +uint8_t *host_get_memmap(int offset); + +/** * Process a host command and return its response * * @param slot is 0 for kernel-originated commands, |