summaryrefslogtreecommitdiffstats
path: root/include/command.h
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2008-09-10 22:48:05 +0200
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2008-09-10 22:48:05 +0200
commit8a40fb148efa442d6526eac46a2001e4c64d28ff (patch)
treed5c1fc7fcfed24f975f774a6bb05a07677a117be /include/command.h
parent507641d2491980531932b9f25dab37fe5e6c3a1a (diff)
downloadblackbird-obmc-uboot-8a40fb148efa442d6526eac46a2001e4c64d28ff.tar.gz
blackbird-obmc-uboot-8a40fb148efa442d6526eac46a2001e4c64d28ff.zip
move cmd_get_data_size to command.c
add CMD_DATA_SIZE macro to enable it Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'include/command.h')
-rw-r--r--include/command.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/command.h b/include/command.h
index 4a27e97247..f92383d086 100644
--- a/include/command.h
+++ b/include/command.h
@@ -78,6 +78,15 @@ extern int cmd_auto_complete(const char *const prompt, char *buf, int *np, int *
typedef void command_t (cmd_tbl_t *, int, int, char *[]);
+#if defined(CONFIG_CMD_MEMORY) \
+ || defined(CONFIG_CMD_I2C) \
+ || defined(CONFIG_CMD_ITEST) \
+ || defined(CONFIG_CMD_PCI) \
+ || defined(CONFIG_CMD_PORTIO)
+#define CMD_DATA_SIZE
+extern int cmd_get_data_size(char* arg, int default_size);
+#endif
+
#endif /* __ASSEMBLY__ */
/*
OpenPOWER on IntegriCloud