Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/f6bb253c90e1
branches:  gehenna-devsw
changeset: 527055:f6bb253c90e1
user:      gehenna <gehenna%NetBSD.org@localhost>
date:      Thu May 16 04:44:03 2002 +0000

description:
Add the character device switch.

diffstat:

 sys/dev/wsfont/wsfontdev.c |  14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 319591e17f28 -r f6bb253c90e1 sys/dev/wsfont/wsfontdev.c
--- a/sys/dev/wsfont/wsfontdev.c        Thu May 16 04:41:43 2002 +0000
+++ b/sys/dev/wsfont/wsfontdev.c        Thu May 16 04:44:03 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsfontdev.c,v 1.3 2001/11/13 06:11:50 lukem Exp $ */
+/* $NetBSD: wsfontdev.c,v 1.3.8.1 2002/05/16 04:44:03 gehenna Exp $ */
 
 /*
  * Copyright (c) 2001
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wsfontdev.c,v 1.3 2001/11/13 06:11:50 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wsfontdev.c,v 1.3.8.1 2002/05/16 04:44:03 gehenna Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -39,7 +39,15 @@
 #include <dev/wscons/wsconsio.h> /* XXX */
 
 void wsfontattach(int);
-cdev_decl(wsfont);
+
+dev_type_open(wsfontopen);
+dev_type_close(wsfontclose);
+dev_type_ioctl(wsfontioctl);
+
+const struct cdevsw wsfont_cdevsw = {
+       wsfontopen, wsfontclose, noread, nowrite, wsfontioctl,
+       nostop, notty, nopoll, nommap,
+};
 
 static int wsfont_isopen;
 



Home | Main Index | Thread Index | Old Index