1 /* 2 * Copyright (c) 1991 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Rick Macklem at The University of Guelph. 7 * 8 * %sccs.include.redist.c% 9 * 10 * @(#)nfsswapvmunix.c 7.1 (Berkeley) 03/04/91 11 */ 12 13 /* 14 * Sample NFS swapvmunix configuration file. 15 * This should be filled in by the bootstrap program. 16 * See /sys/nfs/nfsdiskless.h for details of the fields. 17 */ 18 19 #include "../sys/param.h" 20 #include "../sys/conf.h" 21 #include "../sys/socket.h" 22 #include "../sys/mount.h" 23 #include "../net/if.h" 24 #include "../nfs/nfsv2.h" 25 #include "../nfs/nfsdiskless.h" 26 27 extern int nfs_mountroot(); 28 int (*mountroot)() = nfs_mountroot; 29 30 dev_t rootdev = NODEV; 31 dev_t argdev = NODEV; 32 dev_t dumpdev = NODEV; 33 34 struct swdevt swdevt[] = { 35 { NODEV, 0, 5000 }, /* happy:/u/swap.dopey */ 36 { 0, 0, 0 } 37 }; 38 struct nfs_diskless nfs_diskless = { 39 { { 'q', 'e', '0', '\0' }, 40 { 0x10, 0x2, { 0x0, 0x0, 0x83, 0x68, 0x30, 0x2, } }, 41 { 0x10, 0x2, { 0x0, 0x0, 0x83, 0x68, 0x30, 0xff, } }, 42 { 0x10, 0x0, { 0x0, 0x0, 0xff, 0xff, 0xff, 0x0, } }, 43 }, 44 { 0x10, 0x2, { 0x0, 0x0, 0x83, 0x68, 0x30, 0x12, } }, 45 { 46 (struct sockaddr *)0, SOCK_DGRAM, 0, (nfsv2fh_t *)0, 47 0, 8192, 8192, 10, 100, (char *)0, 48 }, 49 { 50 0xf, 51 0x9, 52 0x0, 53 0x0, 54 0x1, 55 0x0, 56 0x0, 57 0x0, 58 0xc, 59 0x0, 60 0x0, 61 0x0, 62 0x6, 63 0x0, 64 0x0, 65 0x0, 66 0x27, 67 0x18, 68 0x79, 69 0x27, 70 0x0, 71 0x0, 72 0x0, 73 0x0, 74 0x0, 75 0x0, 76 0x0, 77 0x0, 78 0x0, 79 0x0, 80 0x0, 81 0x0, 82 }, 83 { 0x10, 0x2, { 0x8, 0x1, 0x83, 0x68, 0x30, 0x5, } }, 84 "happy", 85 { 86 (struct sockaddr *)0, SOCK_DGRAM, 0, (nfsv2fh_t *)0, 87 0, 8192, 8192, 10, 100, (char *)0, 88 }, 89 { 90 0x0, 91 0x9, 92 0x0, 93 0x0, 94 0x1, 95 0x0, 96 0x0, 97 0x0, 98 0xc, 99 0x0, 100 0x0, 101 0x0, 102 0x2, 103 0x0, 104 0x0, 105 0x0, 106 0xd0, 107 0x48, 108 0x42, 109 0x25, 110 0x0, 111 0x0, 112 0x0, 113 0x0, 114 0x0, 115 0x0, 116 0x0, 117 0x0, 118 0x0, 119 0x0, 120 0x0, 121 0x0, 122 }, 123 { 0x10, 0x2, { 0x8, 0x1, 0x83, 0x68, 0x30, 0x5, } }, 124 "happy", 125 }; 126