summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1999-08-27 07:26:26 +0000
committerjulian <julian@FreeBSD.org>1999-08-27 07:26:26 +0000
commita0797ab43e7d1e9c6641c6f2f89994f1f8dda27f (patch)
tree3b869586ea654277810c20b32801d13ccc0f0866 /sys/dev
parentef5c098b80b05fce18894be29b3297b9f4436089 (diff)
downloadFreeBSD-src-a0797ab43e7d1e9c6641c6f2f89994f1f8dda27f.zip
FreeBSD-src-a0797ab43e7d1e9c6641c6f2f89994f1f8dda27f.tar.gz
Add PHK's make_dev() into more places where DEVFS used to be
hooked in directly. Alpha change checked by: Matthew Jacob <mjacob@feral.com> i4b ISDN changes checked by: Udo Schweigert <ust@cert.siemens.de> and Hellmuth Michaelis <hm@hcs.de> PC98 changes checked by: Takahashi Yoshihiro <nyan@FreeBSD.org>
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/fdc/fdc.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c
index dc1a699..c2670fd 100644
--- a/sys/dev/fdc/fdc.c
+++ b/sys/dev/fdc/fdc.c
@@ -47,7 +47,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
- * $Id: fd.c,v 1.152 1999/08/14 11:40:41 phk Exp $
+ * $Id: fd.c,v 1.153 1999/08/23 20:58:59 phk Exp $
*
*/
@@ -906,9 +906,22 @@ static int
fd_attach(device_t dev)
{
struct fd_data *fd;
+#if 0
+ int i;
+ int mynor;
+ int typemynor;
+ int typesize;
+#endif
fd = device_get_softc(dev);
+ make_dev(&fd_cdevsw, (fd->fdu << 6),
+ UID_ROOT, GID_OPERATOR, 0640, "rfd%d", fd->fdu);
+
+#if 0
+ /* Other make_dev() go here. */
+#endif
+
/*
* Export the drive to the devstat interface.
*/
OpenPOWER on IntegriCloud