ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / asm-mips / statfs.h
1 /*
2  * This file is subject to the terms and conditions of the GNU General Public
3  * License.  See the file "COPYING" in the main directory of this archive
4  * for more details.
5  *
6  * Copyright (C) 1995, 1999 by Ralf Baechle
7  */
8 #ifndef _ASM_STATFS_H
9 #define _ASM_STATFS_H
10
11 #include <linux/posix_types.h>
12 #include <asm/sgidefs.h>
13
14 #ifndef __KERNEL_STRICT_NAMES
15
16 #include <linux/types.h>
17
18 typedef __kernel_fsid_t        fsid_t;
19
20 #endif
21
22 struct statfs {
23         long            f_type;
24 #define f_fstyp f_type
25         long            f_bsize;
26         long            f_frsize;       /* Fragment size - unsupported */
27         long            f_blocks;
28         long            f_bfree;
29         long            f_files;
30         long            f_ffree;
31
32         /* Linux specials */
33         long    f_bavail;
34         __kernel_fsid_t f_fsid;
35         long            f_namelen;
36         long            f_spare[6];
37 };
38
39 #if (_MIPS_SIM == _MIPS_SIM_ABI32) || (_MIPS_SIM == _MIPS_SIM_NABI32)
40
41 /*
42  * Unlike the traditional version the LFAPI version has none of the ABI junk
43  */
44 struct statfs64 {
45         __u32   f_type;
46         __u32   f_bsize;
47         __u64   f_blocks;
48         __u64   f_bfree;
49         __u64   f_bavail;
50         __u64   f_files;
51         __u64   f_ffree;
52         __kernel_fsid_t f_fsid;
53         __u32   f_namelen;
54         __u32   f_frsize;
55         __u32   f_spare[5];
56 };
57
58 #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
59  
60 #if _MIPS_SIM == _MIPS_SIM_ABI64
61
62 struct statfs64 {                       /* Same as struct statfs */
63         long            f_type;
64         long            f_bsize;
65         long            f_frsize;       /* Fragment size - unsupported */
66         long            f_blocks;
67         long            f_bfree;
68         long            f_files;
69         long            f_ffree;
70
71         /* Linux specials */
72         long    f_bavail;
73         __kernel_fsid_t f_fsid;
74         long            f_namelen;
75         long            f_spare[6];
76 };
77
78 struct compat_statfs64 {
79         __u32 f_type;
80         __u32 f_bsize;
81         __u64 f_blocks;
82         __u64 f_bfree;
83         __u64 f_bavail;
84         __u64 f_files;
85         __u64 f_ffree;
86         __kernel_fsid_t f_fsid;
87         __u32 f_namelen;
88         __u32 f_frsize;
89         __u32 f_spare[5];
90 };
91
92 #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
93
94 #endif /* _ASM_STATFS_H */