Sync usage with man page.
[netbsd-mini2440.git] / sys / arch / mvmeppc / stand / boot / devopen.c
bloba64713293f5e350137dc2fc3497dfc2399a2d724
1 /* $NetBSD: devopen.c,v 1.1.20.1 2005/11/10 13:57:54 skrll Exp $ */
3 #include <sys/param.h>
4 #include <lib/libsa/stand.h>
6 /*
7 * Open the device named by the combined device/file name
8 * given as the "fname" arg, something like: "sd()bsd"
10 * However, Sun PROMs don't really let you choose which
11 * device you will talk to. You can only open the device
12 * that was used to load the boot program. Therefore, we
13 * do not accept a "device" part in the "fname" string.
14 * Pass the PROM device name to open in case it needs it.
16 int
17 devopen(struct open_file *f, const char *fname, char **file)
19 struct devsw *dp;
20 int error;
22 *file = (char*)fname;
23 dp = &devsw[0];
24 f->f_dev = dp;
25 error = (*dp->dv_open)(f, "net"); /* XXXSCW: Fixme */
27 return error;