diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-02-28 13:44:03 -0800 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2012-02-28 13:58:34 -0800 |
commit | 4c89ccd89eea60092118e49ca6b68a04d21d8870 (patch) | |
tree | 19cbd88927df9b8839bd11a6d760ebae20241476 /common/pstore_commands.c | |
parent | e632029ed045e2b4922e3131898b0137d3a79972 (diff) | |
download | chrome-ec-4c89ccd89eea60092118e49ca6b68a04d21d8870.tar.gz |
Register host commands the same clever way we do console commands
BUG=none
TEST=run assorted ectool commands
Change-Id: I830d3cbf2d1557b3ab455ec8736d3de5e5d3e697
Diffstat (limited to 'common/pstore_commands.c')
-rw-r--r-- | common/pstore_commands.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/pstore_commands.c b/common/pstore_commands.c index 24ce7c7878..67c35d1bab 100644 --- a/common/pstore_commands.c +++ b/common/pstore_commands.c @@ -7,8 +7,7 @@ #include "board.h" #include "eeprom.h" -#include "lpc_commands.h" -#include "pstore_commands.h" +#include "host_command.h" #include "uart.h" #include "util.h" @@ -34,6 +33,7 @@ enum lpc_status pstore_command_get_info(uint8_t *data) r->access_size = sizeof(uint32_t); return EC_LPC_STATUS_SUCCESS; } +DECLARE_HOST_COMMAND(EC_LPC_COMMAND_PSTORE_INFO, pstore_command_get_info); enum lpc_status pstore_command_read(uint8_t *data) @@ -71,6 +71,7 @@ enum lpc_status pstore_command_read(uint8_t *data) return EC_LPC_STATUS_SUCCESS; } +DECLARE_HOST_COMMAND(EC_LPC_COMMAND_PSTORE_READ, pstore_command_read); enum lpc_status pstore_command_write(uint8_t *data) @@ -107,3 +108,4 @@ enum lpc_status pstore_command_write(uint8_t *data) return EC_LPC_STATUS_SUCCESS; } +DECLARE_HOST_COMMAND(EC_LPC_COMMAND_PSTORE_WRITE, pstore_command_write); |