diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-02-08 14:18:32 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-02-09 09:28:55 +0100 |
commit | 1e009bf2667c7f304ea181974e3e22cb7b6a025b (patch) | |
tree | 7cf5adcf203eec5d23918ccb445996418dff63a9 /include/linux | |
parent | d5128bfaf458081d2d4a0cf736d3cc21967e4f2a (diff) | |
download | barebox-1e009bf2667c7f304ea181974e3e22cb7b6a025b.tar.gz barebox-1e009bf2667c7f304ea181974e3e22cb7b6a025b.tar.xz |
mtd: Make erase_info structs 64bit where necessary
Make the userspace structs 64bit where necessary. Since we do not have
separated kernel/userspace in barebox we can just modifiy the original
structs instead of adding separate 64bit structs.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mtd/mtd-abi.h | 8 | ||||
-rw-r--r-- | include/linux/mtd/mtd.h | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/include/linux/mtd/mtd-abi.h b/include/linux/mtd/mtd-abi.h index c46605d5e3..8e778df173 100644 --- a/include/linux/mtd/mtd-abi.h +++ b/include/linux/mtd/mtd-abi.h @@ -10,13 +10,13 @@ #include <asm-generic/div64.h> struct erase_info_user { - uint32_t start; - uint32_t length; + uint64_t start; + uint64_t length; }; struct mtd_oob_buf { - uint32_t start; - uint32_t length; + uint64_t start; + uint64_t length; unsigned char *ptr; }; diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index 7e828bc98f..e430217097 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h @@ -31,9 +31,9 @@ specific to any particular block. */ struct erase_info { struct mtd_info *mtd; - u_int32_t addr; - u_int32_t len; - u_int32_t fail_addr; + u_int64_t addr; + u_int64_t len; + u_int64_t fail_addr; u_long time; u_long retries; u_int dev; @@ -45,7 +45,7 @@ struct erase_info { }; struct mtd_erase_region_info { - u_int32_t offset; /* At which this region starts, from the beginning of the MTD */ + u_int64_t offset; /* At which this region starts, from the beginning of the MTD */ u_int32_t erasesize; /* For this region */ u_int32_t numblocks; /* Number of blocks of erasesize in this region */ unsigned long *lockmap; /* If keeping bitmap of locks */ |