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.2 (Berkeley) 10/11/92 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 24 #include <net/if.h> 25 #include <nfs/nfsv2.h> 26 #include <nfs/nfsdiskless.h> 27 28 extern int nfs_mountroot(); 29 int (*mountroot)() = nfs_mountroot; 30 31 dev_t rootdev = NODEV; 32 dev_t argdev = NODEV; 33 dev_t dumpdev = NODEV; 34 35 struct swdevt swdevt[] = { 36 { NODEV, 0, 5000 }, /* happy:/u/swap.dopey */ 37 { 0, 0, 0 } 38 }; 39 struct nfs_diskless nfs_diskless = { 40 { { 'q', 'e', '0', '\0' }, 41 { 0x10, 0x2, { 0x0, 0x0, 0x83, 0x68, 0x30, 0x2, } }, 42 { 0x10, 0x2, { 0x0, 0x0, 0x83, 0x68, 0x30, 0xff, } }, 43 { 0x10, 0x0, { 0x0, 0x0, 0xff, 0xff, 0xff, 0x0, } }, 44 }, 45 { 0x10, 0x2, { 0x0, 0x0, 0x83, 0x68, 0x30, 0x12, } }, 46 { 47 (struct sockaddr *)0, SOCK_DGRAM, 0, (nfsv2fh_t *)0, 48 0, 8192, 8192, 10, 100, (char *)0, 49 }, 50 { 51 0xf, 52 0x9, 53 0x0, 54 0x0, 55 0x1, 56 0x0, 57 0x0, 58 0x0, 59 0xc, 60 0x0, 61 0x0, 62 0x0, 63 0x6, 64 0x0, 65 0x0, 66 0x0, 67 0x27, 68 0x18, 69 0x79, 70 0x27, 71 0x0, 72 0x0, 73 0x0, 74 0x0, 75 0x0, 76 0x0, 77 0x0, 78 0x0, 79 0x0, 80 0x0, 81 0x0, 82 0x0, 83 }, 84 { 0x10, 0x2, { 0x8, 0x1, 0x83, 0x68, 0x30, 0x5, } }, 85 "happy", 86 { 87 (struct sockaddr *)0, SOCK_DGRAM, 0, (nfsv2fh_t *)0, 88 0, 8192, 8192, 10, 100, (char *)0, 89 }, 90 { 91 0x0, 92 0x9, 93 0x0, 94 0x0, 95 0x1, 96 0x0, 97 0x0, 98 0x0, 99 0xc, 100 0x0, 101 0x0, 102 0x0, 103 0x2, 104 0x0, 105 0x0, 106 0x0, 107 0xd0, 108 0x48, 109 0x42, 110 0x25, 111 0x0, 112 0x0, 113 0x0, 114 0x0, 115 0x0, 116 0x0, 117 0x0, 118 0x0, 119 0x0, 120 0x0, 121 0x0, 122 0x0, 123 }, 124 { 0x10, 0x2, { 0x8, 0x1, 0x83, 0x68, 0x30, 0x5, } }, 125 "happy", 126 }; 127