summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-09-05 12:59:29 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-09-05 12:59:29 +0200
commit40126ad7f81a115accc3297daf8383d7722a9e70 (patch)
tree53038120353aceecc2c94e0f21138da5f93aabf8 /include
parente141988898ffbef75e8c525347023d5941f7baad (diff)
parent94fd74dda7d905b37b61310ebd7281891d718241 (diff)
downloadbarebox-40126ad7f81a115accc3297daf8383d7722a9e70.tar.gz
barebox-40126ad7f81a115accc3297daf8383d7722a9e70.tar.xz
Merge branch 'for-next/fs'
Diffstat (limited to 'include')
-rw-r--r--include/filetype.h1
-rw-r--r--include/fs.h5
2 files changed, 6 insertions, 0 deletions
diff --git a/include/filetype.h b/include/filetype.h
index f5de8ed2b5..179ec0f5eb 100644
--- a/include/filetype.h
+++ b/include/filetype.h
@@ -18,6 +18,7 @@ enum filetype {
filetype_aimage,
filetype_sh,
filetype_mips_barebox,
+ filetype_fat,
};
const char *file_type_to_string(enum filetype f);
diff --git a/include/fs.h b/include/fs.h
index c0b9f71fbd..22470e6379 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -2,6 +2,7 @@
#define __FS_H
#include <driver.h>
+#include <filetype.h>
#define PATH_MAX 1024 /* include/linux/limits.h */
@@ -72,6 +73,8 @@ struct fs_driver_d {
struct driver_d drv;
+ enum filetype type;
+
unsigned long flags;
};
@@ -93,6 +96,8 @@ struct fs_device_d {
struct list_head list;
};
+#define drv_to_fs_driver(d) container_of(d, struct fs_driver_d, drv)
+
/*
* standard posix file functions
*/