Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Readd sacom to cdevsw.



details:   https://anonhg.NetBSD.org/src/rev/9c98355aca89
branches:  trunk
changeset: 514706:9c98355aca89
user:      toshii <toshii%NetBSD.org@localhost>
date:      Sun Sep 09 09:54:13 2001 +0000

description:
Readd sacom to cdevsw.

diffstat:

 sys/arch/arm/arm32/conf.c      |  9 ++++++++-
 sys/arch/arm/include/conf.h    |  3 ++-
 sys/arch/hpcarm/include/conf.h |  1 +
 3 files changed, 11 insertions(+), 2 deletions(-)

diffs (64 lines):

diff -r ef6bc352fc0a -r 9c98355aca89 sys/arch/arm/arm32/conf.c
--- a/sys/arch/arm/arm32/conf.c Sun Sep 09 08:07:36 2001 +0000
+++ b/sys/arch/arm/arm32/conf.c Sun Sep 09 09:54:13 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.c,v 1.2 2001/09/04 21:45:19 wiz Exp $     */
+/*     $NetBSD: conf.c,v 1.3 2001/09/09 09:54:14 toshii Exp $  */
 
 /*
  * Copyright (c) 1994-1998 Mark Brinicombe.
@@ -122,6 +122,10 @@
 #ifndef NRTC
 #define        NRTC    0
 #endif
+/*#include "sacom.h"*/
+#ifndef NSACOM
+#define        NSACOM  0
+#endif
 /*#include "scr.h"*/
 #ifndef NSCR
 #define        NSCR    0
@@ -424,6 +428,7 @@
        cdev_i4brbch_init(NI4BRBCH,i4brbch),    /* 81: i4b raw b-channel access */
        cdev_i4btrc_init(NI4BTRC,i4btrc),       /* 82: i4b trace device */
        cdev_i4btel_init(NI4BTEL,i4btel),       /* 83: i4b phone device */
+       cdev_tty_init(NSACOM,sacom),            /* 84: SA11x0 serial port */
 };
 
 int nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]);
@@ -549,6 +554,8 @@
     /* 80 */       NODEV,
     /* 81 */       NODEV,
     /* 82 */       NODEV,
+    /* 83 */       NODEV,
+    /* 84 */       NODEV,
 };
 
 /*
diff -r ef6bc352fc0a -r 9c98355aca89 sys/arch/arm/include/conf.h
--- a/sys/arch/arm/include/conf.h       Sun Sep 09 08:07:36 2001 +0000
+++ b/sys/arch/arm/include/conf.h       Sun Sep 09 09:54:13 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.h,v 1.1 2001/09/03 01:50:00 matt Exp $    */
+/*     $NetBSD: conf.h,v 1.2 2001/09/09 09:54:13 toshii Exp $  */
 
 /*
  * Copyright (c) 1997 Mark Brinicombe.
@@ -99,6 +99,7 @@
 cdev_decl(ofcons_);
 cdev_decl(ofd);
 cdev_decl(ofrtc);
+cdev_decl(sacom);
 cdev_decl(scr);
 cdev_decl(prof);
 #define ofromread  ofromrw
diff -r ef6bc352fc0a -r 9c98355aca89 sys/arch/hpcarm/include/conf.h
--- a/sys/arch/hpcarm/include/conf.h    Sun Sep 09 08:07:36 2001 +0000
+++ b/sys/arch/hpcarm/include/conf.h    Sun Sep 09 09:54:13 2001 +0000
@@ -9,5 +9,6 @@
 #define        CONF_HAVE_USB
 
 #include "biconsdev.h"
+#include "sacom.h"
 
 #endif /* _HPCARM_CONF_H */



Home | Main Index | Thread Index | Old Index