Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/efe97bb95258
branches:  gehenna-devsw
changeset: 527044:efe97bb95258
user:      gehenna <gehenna%NetBSD.org@localhost>
date:      Thu May 16 04:18:02 2002 +0000

description:
Add the character device switch.

diffstat:

 sys/coda/coda_psdev.c |  18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diffs (53 lines):

diff -r ca047b2c4142 -r efe97bb95258 sys/coda/coda_psdev.c
--- a/sys/coda/coda_psdev.c     Thu May 16 04:14:48 2002 +0000
+++ b/sys/coda/coda_psdev.c     Thu May 16 04:18:02 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: coda_psdev.c,v 1.19 2001/11/23 17:42:48 perry Exp $    */
+/*     $NetBSD: coda_psdev.c,v 1.19.8.1 2002/05/16 04:18:02 gehenna Exp $      */
 
 /*
  * 
@@ -52,7 +52,7 @@
 /* These routines are the device entry points for Venus. */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: coda_psdev.c,v 1.19 2001/11/23 17:42:48 perry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: coda_psdev.c,v 1.19.8.1 2002/05/16 04:18:02 gehenna Exp $");
 
 extern int coda_nc_initialized;    /* Set if cache has been initialized */
 
@@ -72,6 +72,7 @@
 #include <sys/ioctl.h>
 #include <sys/poll.h>
 #include <sys/select.h>
+#include <sys/conf.h>
 
 #include <miscfs/syncfs/syncfs.h>
 
@@ -79,7 +80,6 @@
 #include <coda/cnode.h>
 #include <coda/coda_namecache.h>
 #include <coda/coda_io.h>
-#include <coda/coda_psdev.h>
 
 #define CTL_C
 
@@ -96,6 +96,18 @@
 
 void vcodaattach(int n);
 
+dev_type_open(vc_nb_open);
+dev_type_close(vc_nb_close);
+dev_type_read(vc_nb_read);
+dev_type_write(vc_nb_write);
+dev_type_ioctl(vc_nb_ioctl);
+dev_type_poll(vc_nb_poll);
+
+const struct cdevsw vcoda_cdevsw = {
+       vc_nb_open, vc_nb_close, vc_nb_read, vc_nb_write, vc_nb_ioctl,
+       nostop, notty, vc_nb_poll, nommap,
+};
+
 struct vmsg {
     struct queue vm_chain;
     caddr_t     vm_data;



Home | Main Index | Thread Index | Old Index