Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/gehenna-devsw]: src/sys/dev/mvme Add the character device switch.



details:   https://anonhg.NetBSD.org/src/rev/dc03b690355c
branches:  gehenna-devsw
changeset: 527088:dc03b690355c
user:      gehenna <gehenna%NetBSD.org@localhost>
date:      Thu May 16 12:02:54 2002 +0000

description:
Add the character device switch.

diffstat:

 sys/dev/mvme/lpt_mvme.c |  18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diffs (39 lines):

diff -r 67241fc2b100 -r dc03b690355c sys/dev/mvme/lpt_mvme.c
--- a/sys/dev/mvme/lpt_mvme.c   Thu May 16 12:01:36 2002 +0000
+++ b/sys/dev/mvme/lpt_mvme.c   Thu May 16 12:02:54 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lpt_mvme.c,v 1.1 2002/02/12 20:38:44 scw Exp $ */
+/*     $NetBSD: lpt_mvme.c,v 1.1.10.1 2002/05/16 12:02:54 gehenna Exp $        */
 
 /*-
  * Copyright (c) 1999, 2002 The NetBSD Foundation, Inc.
@@ -121,13 +121,6 @@
 int lptdebug = 1;
 #endif
 
-/* {b,c}devsw[] function prototypes */
-dev_type_open(lptopen);
-dev_type_close(lptclose);
-dev_type_write(lptwrite);
-dev_type_ioctl(lptioctl);
-
-
 #define        LPTUNIT(s)      (minor(s) & 0x0f)
 #define        LPTFLAGS(s)     (minor(s) & 0xf0)
 
@@ -136,6 +129,15 @@
 
 extern struct cfdriver lpt_cd;
 
+dev_type_open(lptopen);
+dev_type_close(lptclose);
+dev_type_write(lptwrite);
+dev_type_ioctl(lptioctl);
+
+const struct cdevsw lpt_cdevsw = {
+       lptopen, lptclose, noread, lptwrite, lptioctl,
+       nostop, notty, nopoll, nommap,
+};
 
 void
 lpt_attach_subr(sc)



Home | Main Index | Thread Index | Old Index