Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sh5/dev Convert to new devsw world order.



details:   https://anonhg.NetBSD.org/src/rev/137f71503840
branches:  trunk
changeset: 537663:137f71503840
user:      scw <scw%NetBSD.org@localhost>
date:      Fri Oct 04 10:16:56 2002 +0000

description:
Convert to new devsw world order.

diffstat:

 sys/arch/sh5/dev/dtfcons.c |  15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r 1555de416d89 -r 137f71503840 sys/arch/sh5/dev/dtfcons.c
--- a/sys/arch/sh5/dev/dtfcons.c        Fri Oct 04 09:24:52 2002 +0000
+++ b/sys/arch/sh5/dev/dtfcons.c        Fri Oct 04 10:16:56 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dtfcons.c,v 1.4 2002/10/02 15:52:36 thorpej Exp $      */
+/*     $NetBSD: dtfcons.c,v 1.5 2002/10/04 10:16:56 scw Exp $  */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -63,10 +63,19 @@
 
 #include <dev/cons.h>
 
-
-cdev_decl(dtfcons);
+dev_type_open(dtfconsopen);
+dev_type_close(dtfconsclose);
+dev_type_read(dtfconsread);
+dev_type_write(dtfconswrite);
+dev_type_ioctl(dtfconsioctl);
+dev_type_tty(dtfconstty);
+dev_type_poll(dtfconspoll);
 cons_decl(dtfcons);
 
+const struct cdevsw dtf_cdevsw = {
+       dtfconsopen, dtfconsclose, dtfconsread, dtfconswrite, dtfconsioctl,
+       nostop, dtfconstty, dtfconspoll, nommap, D_TTY
+};
 
 static int dtfconsmatch(struct device *, struct cfdata *, void *);
 static void dtfconsattach(struct device *, struct device *, void *);



Home | Main Index | Thread Index | Old Index