summaryrefslogtreecommitdiffstats
path: root/include/common.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-05 18:01:23 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-05 18:01:23 +0200
commitabfbbad1eb897c58d2ebc918a8b91cf1ea226c5f (patch)
treedd9ea8d7369c4c8e8c04da9725b3eb437980db30 /include/common.h
parent11a0b5a0dd5f092777de41db00f3ffa8a95d698c (diff)
downloadbarebox-abfbbad1eb897c58d2ebc918a8b91cf1ea226c5f.tar.gz
barebox-abfbbad1eb897c58d2ebc918a8b91cf1ea226c5f.tar.xz
svn_rev_109
do not know anymore
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index 531f6700fb..7d0dac1d9b 100644
--- a/include/common.h
+++ b/include/common.h
@@ -635,4 +635,19 @@ void show_boot_progress (int status);
*/
int cmd_get_data_size(char* arg, int default_size);
+#define MEMAREA_SIZE_SPECIFIED 1
+
+struct memarea_info {
+ struct device_d *device;
+ unsigned long start;
+ unsigned long end;
+ unsigned long size;
+ unsigned long flags;
+};
+
+int spec_str_to_info(const char *str, struct memarea_info *info);
+
+/* Just like simple_strtoul(), but this one honors a K/M/G suffix */
+unsigned long strtoul_suffix(const char *str, char **endp, int base);
+
#endif /* __COMMON_H_ */