xref: /illumos-gate/usr/src/psm/stand/boot/sparc/common/nfsconf.c (revision 45d3dd981abb9025d8ac994cf4cc8ce8cb1a9480)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 #pragma ident	"%Z%%M%	%I%	%E% SMI"
27 
28 #include <sys/param.h>
29 #include <sys/sysmacros.h>
30 #include <sys/obpdefs.h>
31 #include <sys/stat.h>
32 #include <sys/bootvfs.h>
33 #include <sys/bootdebug.h>
34 #include <sys/promif.h>
35 #include <sys/salib.h>
36 #include "boot_plat.h"
37 
38 /*
39  * filesystem switch table, NFS
40  */
41 extern struct boot_fs_ops boot_nfs_ops;
42 struct boot_fs_ops *boot_fsw[] = {
43 	&boot_nfs_ops,
44 };
45 
46 int boot_nfsw = sizeof (boot_fsw) / sizeof (boot_fsw[0]);
47 int nfs_readsize = 0;
48 
49 static char *nfsname = "nfs";
50 
51 /* ARGSUSED */
52 char *
53 set_fstype(char *v2path, char *bpath)
54 {
55 	set_default_fs(nfsname);
56 	return (nfsname);
57 }
58