Deleted Added
full compact
autoconf.c (10537) autoconf.c (10653)
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * William Jolitz.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 20 unchanged lines hidden (view full) ---

29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * from: @(#)autoconf.c 7.1 (Berkeley) 5/9/91
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * William Jolitz.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 20 unchanged lines hidden (view full) ---

29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * from: @(#)autoconf.c 7.1 (Berkeley) 5/9/91
37 * $Id: autoconf.c,v 1.36 1995/08/30 01:34:20 bde Exp $
37 * $Id: autoconf.c,v 1.37 1995/09/03 05:43:00 julian Exp $
38 */
39
40/*
41 * Setup the system to run on the current machine.
42 *
43 * Configure() is called at boot time and initializes the vba
44 * device tables and the memory controller monitoring. Available
45 * devices are determined (from possibilities mentioned in ioconf.c),

--- 23 unchanged lines hidden (view full) ---

69
70#ifdef FFS
71extern struct vfsops ufs_vfsops;
72#endif
73#ifdef LFS
74extern struct vfsops lfs_vfsops;
75#endif
76#ifdef NFS
38 */
39
40/*
41 * Setup the system to run on the current machine.
42 *
43 * Configure() is called at boot time and initializes the vba
44 * device tables and the memory controller monitoring. Available
45 * devices are determined (from possibilities mentioned in ioconf.c),

--- 23 unchanged lines hidden (view full) ---

69
70#ifdef FFS
71extern struct vfsops ufs_vfsops;
72#endif
73#ifdef LFS
74extern struct vfsops lfs_vfsops;
75#endif
76#ifdef NFS
77int nfs_mountroot __P((void));
77int nfs_mountroot __P((void *));
78#endif
79#ifdef CD9660
78#endif
79#ifdef CD9660
80int cd9660_mountroot __P((void));
80int cd9660_mountroot __P((void *));
81#endif
82#ifdef MSDOSFS
81#endif
82#ifdef MSDOSFS
83int msdosfs_mountroot __P((void));
83int msdosfs_mountroot __P((void *));
84#endif
85#ifdef MFS_ROOT
86int mfs_initminiroot __P((u_char *));
87u_char mfs_root[MFS_ROOT*1024] = "MFS Filesystem goes here";
88u_char end_mfs_root[] = "MFS Filesystem had better STOP here";
89#endif
90
91#include "eisa.h"

--- 21 unchanged lines hidden (view full) ---

113 { "cd", 6 },
114 { "mcd", 7 },
115 { "scd", 16 },
116 { "matcd", 17 },
117 { 0, 0}
118};
119
120int
84#endif
85#ifdef MFS_ROOT
86int mfs_initminiroot __P((u_char *));
87u_char mfs_root[MFS_ROOT*1024] = "MFS Filesystem goes here";
88u_char end_mfs_root[] = "MFS Filesystem had better STOP here";
89#endif
90
91#include "eisa.h"

--- 21 unchanged lines hidden (view full) ---

113 { "cd", 6 },
114 { "mcd", 7 },
115 { "scd", 16 },
116 { "matcd", 17 },
117 { 0, 0}
118};
119
120int
121find_cdrom_root()
121find_cdrom_root(dummy)
122 void *dummy;
122{
123 int i,j,k;
124
125 for (j = 0 ; j < 2; j++)
126 for (k = 0 ; try_cdrom[k].name ; k++) {
127 rootdev = makedev(try_cdrom[k].major,j*8);
128 printf("trying rootdev=0x%lx (%s%d)\n",
129 rootdev, try_cdrom[k].name,j);
123{
124 int i,j,k;
125
126 for (j = 0 ; j < 2; j++)
127 for (k = 0 ; try_cdrom[k].name ; k++) {
128 rootdev = makedev(try_cdrom[k].major,j*8);
129 printf("trying rootdev=0x%lx (%s%d)\n",
130 rootdev, try_cdrom[k].name,j);
130 i = (*cd9660_mountroot)();
131 i = (*cd9660_mountroot)(NULL);
131 if (!i) return i;
132 }
133 return EINVAL;
134}
135#endif /* CD9660 */
136
137#include "scbus.h"
138#if NSCBUS > 0

--- 15 unchanged lines hidden (view full) ---

154 scsi_configure_finish();
155#endif
156}
157
158/*
159 * Determine i/o configuration for a machine.
160 */
161void
132 if (!i) return i;
133 }
134 return EINVAL;
135}
136#endif /* CD9660 */
137
138#include "scbus.h"
139#if NSCBUS > 0

--- 15 unchanged lines hidden (view full) ---

155 scsi_configure_finish();
156#endif
157}
158
159/*
160 * Determine i/o configuration for a machine.
161 */
162void
162configure( caddr_t dummy ) /* arg not used */
163configure(dummy) /* arg not used */
164 void *dummy;
163{
164
165 configure_start();
166
167#if NEISA > 0
168 eisa_configure();
169#endif
170

--- 163 unchanged lines hidden ---
165{
166
167 configure_start();
168
169#if NEISA > 0
170 eisa_configure();
171#endif
172

--- 163 unchanged lines hidden ---