]>
git.ipfire.org Git - people/ms/u-boot.git/blob - net/nfs.h
2 * (C) Masami Komiya <mkomiya@sonare.it> 2004
4 * SPDX-License-Identifier: GPL-2.0+
10 #define SUNRPC_PORT 111
12 #define PROG_PORTMAP 100000
13 #define PROG_NFS 100003
14 #define PROG_MOUNT 100005
19 #define PORTMAP_GETPORT 3
21 #define MOUNT_ADDENTRY 1
22 #define MOUNT_UMOUNTALL 4
25 #define NFS_READLINK 5
31 #define NFSERR_NOENT 2
32 #define NFSERR_ACCES 13
33 #define NFSERR_ISDIR 21
34 #define NFSERR_INVAL 22
36 /* Block size used for NFS read accesses. A RPC reply packet (including all
37 * headers) must fit within a single Ethernet frame to avoid fragmentation.
38 * However, if CONFIG_IP_DEFRAG is set, the config file may want to use a
39 * bigger value. In any case, most NFS servers are optimized for a power of 2.
41 #ifdef CONFIG_NFS_READ_SIZE
42 #define NFS_READ_SIZE CONFIG_NFS_READ_SIZE
44 #define NFS_READ_SIZE 1024 /* biggest power of two that fits Ether frame */
47 #define NFS_MAXLINKDEPTH 16
72 void nfs_start(void); /* Begin NFS */
75 /**********************************************************************/
77 #endif /* __NFS_H__ */