1 /* $NetBSD: devopen.c,v 1.1.24.1 2005/01/24 08:35:03 skrll Exp $ */
5 #include <machine/mon.h>
11 * Open the device named by the combined device/file name
12 * given as the "fname" arg, something like: "sd()netbsd"
14 * However, Sun PROMs don't really let you choose which
15 * device you will talk to. You can only open the device
16 * that was used to load the boot program. Therefore, we
17 * do not accept a "device" part in the "fname" string.
18 * Pass the PROM device name to open in case it needs it.
21 devopen(struct open_file
*f
, const char *fname
, char **file
)
29 error
= (*dp
->dv_open
)(f
, prom_bootdev
);