summaryrefslogtreecommitdiffstats
path: root/kernel/include/linux/msdos_fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/linux/msdos_fs.h')
-rw-r--r--kernel/include/linux/msdos_fs.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/include/linux/msdos_fs.h b/kernel/include/linux/msdos_fs.h
new file mode 100644
index 000000000..e1b163f91
--- /dev/null
+++ b/kernel/include/linux/msdos_fs.h
@@ -0,0 +1,11 @@
+#ifndef _LINUX_MSDOS_FS_H
+#define _LINUX_MSDOS_FS_H
+
+#include <uapi/linux/msdos_fs.h>
+
+/* media of boot sector */
+static inline int fat_valid_media(u8 media)
+{
+ return 0xf8 <= media || media == 0xf0;
+}
+#endif /* !_LINUX_MSDOS_FS_H */