18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public
48c2ecf20Sopenharmony_ci * License.  See the file "COPYING" in the main directory of this archive
58c2ecf20Sopenharmony_ci * for more details.
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * Copyright (C) 1995, 1999 by Ralf Baechle
88c2ecf20Sopenharmony_ci */
98c2ecf20Sopenharmony_ci#ifndef _ASM_STATFS_H
108c2ecf20Sopenharmony_ci#define _ASM_STATFS_H
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#include <linux/posix_types.h>
138c2ecf20Sopenharmony_ci#include <asm/sgidefs.h>
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#ifndef __KERNEL_STRICT_NAMES
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#include <linux/types.h>
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_citypedef __kernel_fsid_t	       fsid_t;
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci#endif
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_cistruct statfs {
248c2ecf20Sopenharmony_ci	long		f_type;
258c2ecf20Sopenharmony_ci#define f_fstyp f_type
268c2ecf20Sopenharmony_ci	long		f_bsize;
278c2ecf20Sopenharmony_ci	long		f_frsize;	/* Fragment size - unsupported */
288c2ecf20Sopenharmony_ci	long		f_blocks;
298c2ecf20Sopenharmony_ci	long		f_bfree;
308c2ecf20Sopenharmony_ci	long		f_files;
318c2ecf20Sopenharmony_ci	long		f_ffree;
328c2ecf20Sopenharmony_ci	long		f_bavail;
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci	/* Linux specials */
358c2ecf20Sopenharmony_ci	__kernel_fsid_t f_fsid;
368c2ecf20Sopenharmony_ci	long		f_namelen;
378c2ecf20Sopenharmony_ci	long		f_flags;
388c2ecf20Sopenharmony_ci	long		f_spare[5];
398c2ecf20Sopenharmony_ci};
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci#if (_MIPS_SIM == _MIPS_SIM_ABI32) || (_MIPS_SIM == _MIPS_SIM_NABI32)
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ci/*
448c2ecf20Sopenharmony_ci * Unlike the traditional version the LFAPI version has none of the ABI junk
458c2ecf20Sopenharmony_ci */
468c2ecf20Sopenharmony_cistruct statfs64 {
478c2ecf20Sopenharmony_ci	__u32	f_type;
488c2ecf20Sopenharmony_ci	__u32	f_bsize;
498c2ecf20Sopenharmony_ci	__u32	f_frsize;	/* Fragment size - unsupported */
508c2ecf20Sopenharmony_ci	__u32	__pad;
518c2ecf20Sopenharmony_ci	__u64	f_blocks;
528c2ecf20Sopenharmony_ci	__u64	f_bfree;
538c2ecf20Sopenharmony_ci	__u64	f_files;
548c2ecf20Sopenharmony_ci	__u64	f_ffree;
558c2ecf20Sopenharmony_ci	__u64	f_bavail;
568c2ecf20Sopenharmony_ci	__kernel_fsid_t f_fsid;
578c2ecf20Sopenharmony_ci	__u32	f_namelen;
588c2ecf20Sopenharmony_ci	__u32	f_flags;
598c2ecf20Sopenharmony_ci	__u32	f_spare[5];
608c2ecf20Sopenharmony_ci};
618c2ecf20Sopenharmony_ci
628c2ecf20Sopenharmony_ci#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ci#if _MIPS_SIM == _MIPS_SIM_ABI64
658c2ecf20Sopenharmony_ci
668c2ecf20Sopenharmony_cistruct statfs64 {			/* Same as struct statfs */
678c2ecf20Sopenharmony_ci	long		f_type;
688c2ecf20Sopenharmony_ci	long		f_bsize;
698c2ecf20Sopenharmony_ci	long		f_frsize;	/* Fragment size - unsupported */
708c2ecf20Sopenharmony_ci	long		f_blocks;
718c2ecf20Sopenharmony_ci	long		f_bfree;
728c2ecf20Sopenharmony_ci	long		f_files;
738c2ecf20Sopenharmony_ci	long		f_ffree;
748c2ecf20Sopenharmony_ci	long		f_bavail;
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ci	/* Linux specials */
778c2ecf20Sopenharmony_ci	__kernel_fsid_t f_fsid;
788c2ecf20Sopenharmony_ci	long		f_namelen;
798c2ecf20Sopenharmony_ci	long		f_flags;
808c2ecf20Sopenharmony_ci	long		f_spare[5];
818c2ecf20Sopenharmony_ci};
828c2ecf20Sopenharmony_ci
838c2ecf20Sopenharmony_cistruct compat_statfs64 {
848c2ecf20Sopenharmony_ci	__u32	f_type;
858c2ecf20Sopenharmony_ci	__u32	f_bsize;
868c2ecf20Sopenharmony_ci	__u32	f_frsize;	/* Fragment size - unsupported */
878c2ecf20Sopenharmony_ci	__u32	__pad;
888c2ecf20Sopenharmony_ci	__u64	f_blocks;
898c2ecf20Sopenharmony_ci	__u64	f_bfree;
908c2ecf20Sopenharmony_ci	__u64	f_files;
918c2ecf20Sopenharmony_ci	__u64	f_ffree;
928c2ecf20Sopenharmony_ci	__u64	f_bavail;
938c2ecf20Sopenharmony_ci	__kernel_fsid_t f_fsid;
948c2ecf20Sopenharmony_ci	__u32	f_namelen;
958c2ecf20Sopenharmony_ci	__u32	f_flags;
968c2ecf20Sopenharmony_ci	__u32	f_spare[5];
978c2ecf20Sopenharmony_ci};
988c2ecf20Sopenharmony_ci
998c2ecf20Sopenharmony_ci#endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
1008c2ecf20Sopenharmony_ci
1018c2ecf20Sopenharmony_ci#endif /* _ASM_STATFS_H */
102