diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-05 18:01:23 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-07-05 18:01:23 +0200 |
commit | abfbbad1eb897c58d2ebc918a8b91cf1ea226c5f (patch) | |
tree | dd9ea8d7369c4c8e8c04da9725b3eb437980db30 /include/common.h | |
parent | 11a0b5a0dd5f092777de41db00f3ffa8a95d698c (diff) | |
download | barebox-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.h | 15 |
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_ */ |