summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-06-22 14:33:46 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-06-30 16:53:25 +0200
commitcfcfc66d5486c2061316ebcdf32ef2f1ecbda433 (patch)
tree1e22ba08ebe90959214fb88f35371d5166fe05a0 /include
parentaece3fb42c16ad826804fa65675890611709c11d (diff)
downloadbarebox-cfcfc66d5486c2061316ebcdf32ef2f1ecbda433.tar.gz
barebox-cfcfc66d5486c2061316ebcdf32ef2f1ecbda433.tar.xz
partitions: Make 64bit capable
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/driver.h2
-rw-r--r--include/partition.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/driver.h b/include/driver.h
index 0b6d1b30c..eacd8e681 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -418,7 +418,7 @@ int cdev_erase(struct cdev *cdev, size_t count, loff_t offset);
#define DEVFS_PARTITION_READONLY (1 << 1)
#define DEVFS_IS_PARTITION (1 << 2)
-int devfs_add_partition(const char *devname, unsigned long offset, size_t size,
+int devfs_add_partition(const char *devname, loff_t offset, loff_t size,
int flags, const char *name);
int devfs_del_partition(const char *name);
diff --git a/include/partition.h b/include/partition.h
index 0827bb40c..8ad7490d8 100644
--- a/include/partition.h
+++ b/include/partition.h
@@ -8,7 +8,7 @@ struct partition {
int flags;
- unsigned long offset;
+ loff_t offset;
struct device_d *physdev;
struct device_d device;