xref: /openbmc/linux/arch/mips/include/uapi/asm/statfs.h (revision 61730c53)
161730c53SDavid Howells /*
261730c53SDavid Howells  * This file is subject to the terms and conditions of the GNU General Public
361730c53SDavid Howells  * License.  See the file "COPYING" in the main directory of this archive
461730c53SDavid Howells  * for more details.
561730c53SDavid Howells  *
661730c53SDavid Howells  * Copyright (C) 1995, 1999 by Ralf Baechle
761730c53SDavid Howells  */
861730c53SDavid Howells #ifndef _ASM_STATFS_H
961730c53SDavid Howells #define _ASM_STATFS_H
1061730c53SDavid Howells 
1161730c53SDavid Howells #include <linux/posix_types.h>
1261730c53SDavid Howells #include <asm/sgidefs.h>
1361730c53SDavid Howells 
1461730c53SDavid Howells #ifndef __KERNEL_STRICT_NAMES
1561730c53SDavid Howells 
1661730c53SDavid Howells #include <linux/types.h>
1761730c53SDavid Howells 
1861730c53SDavid Howells typedef __kernel_fsid_t        fsid_t;
1961730c53SDavid Howells 
2061730c53SDavid Howells #endif
2161730c53SDavid Howells 
2261730c53SDavid Howells struct statfs {
2361730c53SDavid Howells 	long		f_type;
2461730c53SDavid Howells #define f_fstyp f_type
2561730c53SDavid Howells 	long		f_bsize;
2661730c53SDavid Howells 	long		f_frsize;	/* Fragment size - unsupported */
2761730c53SDavid Howells 	long		f_blocks;
2861730c53SDavid Howells 	long		f_bfree;
2961730c53SDavid Howells 	long		f_files;
3061730c53SDavid Howells 	long		f_ffree;
3161730c53SDavid Howells 	long		f_bavail;
3261730c53SDavid Howells 
3361730c53SDavid Howells 	/* Linux specials */
3461730c53SDavid Howells 	__kernel_fsid_t	f_fsid;
3561730c53SDavid Howells 	long		f_namelen;
3661730c53SDavid Howells 	long		f_flags;
3761730c53SDavid Howells 	long		f_spare[5];
3861730c53SDavid Howells };
3961730c53SDavid Howells 
4061730c53SDavid Howells #if (_MIPS_SIM == _MIPS_SIM_ABI32) || (_MIPS_SIM == _MIPS_SIM_NABI32)
4161730c53SDavid Howells 
4261730c53SDavid Howells /*
4361730c53SDavid Howells  * Unlike the traditional version the LFAPI version has none of the ABI junk
4461730c53SDavid Howells  */
4561730c53SDavid Howells struct statfs64 {
4661730c53SDavid Howells 	__u32	f_type;
4761730c53SDavid Howells 	__u32	f_bsize;
4861730c53SDavid Howells 	__u32	f_frsize;	/* Fragment size - unsupported */
4961730c53SDavid Howells 	__u32	__pad;
5061730c53SDavid Howells 	__u64	f_blocks;
5161730c53SDavid Howells 	__u64	f_bfree;
5261730c53SDavid Howells 	__u64	f_files;
5361730c53SDavid Howells 	__u64	f_ffree;
5461730c53SDavid Howells 	__u64	f_bavail;
5561730c53SDavid Howells 	__kernel_fsid_t f_fsid;
5661730c53SDavid Howells 	__u32	f_namelen;
5761730c53SDavid Howells 	__u32	f_flags;
5861730c53SDavid Howells 	__u32	f_spare[5];
5961730c53SDavid Howells };
6061730c53SDavid Howells 
6161730c53SDavid Howells #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
6261730c53SDavid Howells 
6361730c53SDavid Howells #if _MIPS_SIM == _MIPS_SIM_ABI64
6461730c53SDavid Howells 
6561730c53SDavid Howells struct statfs64 {			/* Same as struct statfs */
6661730c53SDavid Howells 	long		f_type;
6761730c53SDavid Howells 	long		f_bsize;
6861730c53SDavid Howells 	long		f_frsize;	/* Fragment size - unsupported */
6961730c53SDavid Howells 	long		f_blocks;
7061730c53SDavid Howells 	long		f_bfree;
7161730c53SDavid Howells 	long		f_files;
7261730c53SDavid Howells 	long		f_ffree;
7361730c53SDavid Howells 	long		f_bavail;
7461730c53SDavid Howells 
7561730c53SDavid Howells 	/* Linux specials */
7661730c53SDavid Howells 	__kernel_fsid_t	f_fsid;
7761730c53SDavid Howells 	long		f_namelen;
7861730c53SDavid Howells 	long		f_flags;
7961730c53SDavid Howells 	long		f_spare[5];
8061730c53SDavid Howells };
8161730c53SDavid Howells 
8261730c53SDavid Howells struct compat_statfs64 {
8361730c53SDavid Howells 	__u32	f_type;
8461730c53SDavid Howells 	__u32	f_bsize;
8561730c53SDavid Howells 	__u32	f_frsize;	/* Fragment size - unsupported */
8661730c53SDavid Howells 	__u32	__pad;
8761730c53SDavid Howells 	__u64	f_blocks;
8861730c53SDavid Howells 	__u64	f_bfree;
8961730c53SDavid Howells 	__u64	f_files;
9061730c53SDavid Howells 	__u64	f_ffree;
9161730c53SDavid Howells 	__u64	f_bavail;
9261730c53SDavid Howells 	__kernel_fsid_t f_fsid;
9361730c53SDavid Howells 	__u32	f_namelen;
9461730c53SDavid Howells 	__u32	f_flags;
9561730c53SDavid Howells 	__u32	f_spare[5];
9661730c53SDavid Howells };
9761730c53SDavid Howells 
9861730c53SDavid Howells #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
9961730c53SDavid Howells 
10061730c53SDavid Howells #endif /* _ASM_STATFS_H */
101