2 * (C) Masami Komiya <mkomiya@sonare.it> 2004
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2, or (at
7 * your option) any later version.
13 #define SUNRPC_PORT 111
15 #define PROG_PORTMAP 100000
16 #define PROG_NFS 100003
17 #define PROG_MOUNT 100005
22 #define PORTMAP_GETPORT 3
24 #define MOUNT_ADDENTRY 1
25 #define MOUNT_UMOUNTALL 4
28 #define NFS_READLINK 5
34 #define NFSERR_NOENT 2
35 #define NFSERR_ACCES 13
36 #define NFSERR_ISDIR 21
37 #define NFSERR_INVAL 22
39 /* Block size used for NFS read accesses. A RPC reply packet (including all
40 * headers) must fit within a single Ethernet frame to avoid fragmentation.
41 * However, if CONFIG_IP_DEFRAG is set, the config file may want to use a
42 * bigger value. In any case, most NFS servers are optimized for a power of 2.
44 #ifdef CONFIG_NFS_READ_SIZE
45 #define NFS_READ_SIZE CONFIG_NFS_READ_SIZE
47 #define NFS_READ_SIZE 1024 /* biggest power of two that fits Ether frame */
50 #define NFS_MAXLINKDEPTH 16
75 extern void NfsStart(void); /* Begin NFS */
78 /**********************************************************************/
80 #endif /* __NFS_H__ */