xref: /linux/include/linux/msdos_fs.h (revision 26fbb4c8c7c3ee9a4c3b4de555a8587b5a19154e)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_MSDOS_FS_H
3 #define _LINUX_MSDOS_FS_H
4 
5 #include <uapi/linux/msdos_fs.h>
6 
7 /* media of boot sector */
8 static inline int fat_valid_media(u8 media)
9 {
10 	return 0xf8 <= media || media == 0xf0;
11 }
12 #endif /* !_LINUX_MSDOS_FS_H */
13