Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 Add clockctl device.



details:   https://anonhg.NetBSD.org/src/rev/62671bd1ea82
branches:  trunk
changeset: 519090:62671bd1ea82
user:      chris <chris%NetBSD.org@localhost>
date:      Tue Dec 11 00:34:50 2001 +0000

description:
Add clockctl device.
Note that someone needs to tidy this up, we've got 92 block devices, which just ain't true.  Also appears we're actually missing some, eg the ld block device.

diffstat:

 sys/arch/arm/arm32/conf.c |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (36 lines):

diff -r 2f3df43ad9ea -r 62671bd1ea82 sys/arch/arm/arm32/conf.c
--- a/sys/arch/arm/arm32/conf.c Tue Dec 11 00:31:08 2001 +0000
+++ b/sys/arch/arm/arm32/conf.c Tue Dec 11 00:34:50 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.c,v 1.5 2001/10/27 16:29:23 rearnsha Exp $        */
+/*     $NetBSD: conf.c,v 1.6 2001/12/11 00:34:50 chris Exp $   */
 
 /*
  * Copyright (c) 1994-1998 Mark Brinicombe.
@@ -273,6 +273,9 @@
 #define        NWSMUX  0
 #endif
 
+#include "clockctl.h"
+cdev_decl(clockctl);
+ 
 #include <arm/conf.h>
 
 /* Block devices */
@@ -479,6 +482,7 @@
        cdev__oci_init(NMLX,mlx),               /* 91: Mylex DAC960 ctl iface */
        cdev_disk_init(NLD,ld),                 /* 92: Logical disk */
        cdev_tty_init(NPLCOM,plcom),            /* 93: IFPGA console */
+       cdev_clockctl_init(NCLOCKCTL, clockctl),/* 94: clockctl device */
 };
 
 int nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]);
@@ -614,6 +618,8 @@
     /* 90 */       NODEV,
     /* 91 */       NODEV,
     /* 92 */       92,
+    /* 93 */       NODEV,
+    /* 94 */       NODEV,
 };
 
 /*



Home | Main Index | Thread Index | Old Index