Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Added clockctl



details:   https://anonhg.NetBSD.org/src/rev/513e76fd3ecb
branches:  trunk
changeset: 520480:513e76fd3ecb
user:      manu <manu%NetBSD.org@localhost>
date:      Sat Jan 12 13:22:23 2002 +0000

description:
Added clockctl

diffstat:

 sys/arch/hpcsh/hpcsh/conf.c     |  5 ++++-
 sys/arch/i386/i386/conf.c       |  9 +++++++--
 sys/arch/luna68k/luna68k/conf.c |  9 +++++++--
 sys/arch/mac68k/mac68k/conf.c   |  6 +++++-
 sys/arch/mipsco/mipsco/conf.c   |  7 ++++++-
 5 files changed, 29 insertions(+), 7 deletions(-)

diffs (190 lines):

diff -r a55df720a984 -r 513e76fd3ecb sys/arch/hpcsh/hpcsh/conf.c
--- a/sys/arch/hpcsh/hpcsh/conf.c       Sat Jan 12 13:11:08 2002 +0000
+++ b/sys/arch/hpcsh/hpcsh/conf.c       Sat Jan 12 13:22:23 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.c,v 1.7 2001/07/09 18:18:25 uch Exp $     */
+/*     $NetBSD: conf.c,v 1.8 2002/01/12 13:22:23 manu Exp $    */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -127,6 +127,8 @@
 cdev_decl(com);
 #include "biconsdev.h"
 cdev_decl(biconsdev);
+#include "clockctl.h"
+cdev_decl(clockctl);
 
 struct bdevsw bdevsw[] =
 {
@@ -182,6 +184,7 @@
        cdev_tty_init(NSCI,sci),        /* 32: SH internal serial */
        cdev_tty_init(NBICONSDEV,
                      biconsdev),       /* 33: bicons pseudo-dev */
+       cdev_clockctl_init(NCLOCKCTL, clockctl),/* 34: clockctl pseudo device */
 };
 
 static int chrtoblktbl[] =  {
diff -r a55df720a984 -r 513e76fd3ecb sys/arch/i386/i386/conf.c
--- a/sys/arch/i386/i386/conf.c Sat Jan 12 13:11:08 2002 +0000
+++ b/sys/arch/i386/i386/conf.c Sat Jan 12 13:22:23 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.c,v 1.152 2002/01/04 02:59:54 deberg Exp $        */
+/*     $NetBSD: conf.c,v 1.153 2002/01/12 13:23:47 manu Exp $  */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.152 2002/01/04 02:59:54 deberg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.153 2002/01/12 13:23:47 manu Exp $");
 
 #include "opt_compat_svr4.h"
 
@@ -258,6 +258,9 @@
 #include "pci.h"
 cdev_decl(pci);
 
+#include "clockctl.h"
+cdev_decl(clockctl);
+
 struct cdevsw  cdevsw[] =
 {
        cdev_cn_init(1,cn),             /* 0: virtual console */
@@ -356,6 +359,7 @@
        cdev_ir_init(NCIR,cir),         /* 86: Consumer Ir */
        cdev_radio_init(NRADIO,radio),  /* 87: generic radio I/O */
        cdev_netsmb_init(NNETSMB,nsmb_dev_),/* 88: SMB */
+       cdev_clockctl_init(NCLOCKCTL, clockctl),/* 89: clockctl pseudo device */
 };
 int    nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
 
@@ -486,6 +490,7 @@
        /* 86 */        NODEV,
        /* 87 */        NODEV,
        /* 88 */        NODEV,
+       /* 89 */        NODEV,
 };
 
 /*
diff -r a55df720a984 -r 513e76fd3ecb sys/arch/luna68k/luna68k/conf.c
--- a/sys/arch/luna68k/luna68k/conf.c   Sat Jan 12 13:11:08 2002 +0000
+++ b/sys/arch/luna68k/luna68k/conf.c   Sat Jan 12 13:22:23 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: conf.c,v 1.3 2001/02/21 01:44:44 nisimura Exp $ */
+/* $NetBSD: conf.c,v 1.4 2002/01/12 13:25:34 manu Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.3 2001/02/21 01:44:44 nisimura Exp $");
+__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.4 2002/01/12 13:25:34 manu Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -138,6 +138,9 @@
 
 #include "rnd.h"
 
+#include "clockctl.h"
+cdev_decl(clockctl);
+
 struct cdevsw  cdevsw[] =
 {
        cdev_cn_init(1,cn),             /* 0: virtual console */
@@ -177,6 +180,7 @@
        cdev_disk_init(NRAID,raid),     /* 32: RAIDframe disk driver */
        cdev_disk_init(NWSMUX,wsmux),   /* 33: ws multiplexor */
        cdev_rnd_init(NRND,rnd),        /* 34: random source pseudo-device */
+       cdev_clockctl_init(NCLOCKCTL, clockctl),/* 35: clockctl pseudo device */
 };
 int    nchrdev = sizeof (cdevsw) / sizeof (cdevsw[0]);
 
@@ -250,6 +254,7 @@
        /* 32 */        14,     /* raid */
        /* 33 */        NODEV,
        /* 34 */        NODEV,
+       /* 35 */        NODEV,
 };
 
 /*
diff -r a55df720a984 -r 513e76fd3ecb sys/arch/mac68k/mac68k/conf.c
--- a/sys/arch/mac68k/mac68k/conf.c     Sat Jan 12 13:11:08 2002 +0000
+++ b/sys/arch/mac68k/mac68k/conf.c     Sat Jan 12 13:22:23 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.c,v 1.54 2000/02/14 07:01:48 scottr Exp $ */
+/*     $NetBSD: conf.c,v 1.55 2002/01/12 13:28:49 manu Exp $   */
 
 /*
  * Copyright (c) 1990 The Regents of the University of California.
@@ -119,6 +119,7 @@
 #include "zsc.h"
 #include "zstty.h"
 #include "scsibus.h"
+#include "clockctl.h"
 
 cdev_decl(aed);
 cdev_decl(asc);
@@ -161,6 +162,7 @@
 cdev_decl(zsc);
 cdev_decl(scsibus);
 cdev_decl(vc_nb_);
+cdev_decl(clockctl);
 
 dev_decl(filedesc,open);
 
@@ -214,6 +216,7 @@
        cdev_mouse_init(NWSMUX, wsmux), /* 45: ws multiplexor */
        cdev_wsdisplay_init(NWSDISPLAY,wsdisplay), /* 46: frame buffers, etc. */
        cdev_vc_nb_init(NVCODA,vc_nb_), /* 47: Venus cache driver (Coda) */
+       cdev_clockctl_init(NCLOCKCTL, clockctl),/* 48: clockctl pseudo device */
 };
 int    nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
 
@@ -303,6 +306,7 @@
        /* 45 */        NODEV,
        /* 46 */        NODEV,
        /* 47 */        NODEV,
+       /* 48 */        NODEV,
 };
 
 dev_t
diff -r a55df720a984 -r 513e76fd3ecb sys/arch/mipsco/mipsco/conf.c
--- a/sys/arch/mipsco/mipsco/conf.c     Sat Jan 12 13:11:08 2002 +0000
+++ b/sys/arch/mipsco/mipsco/conf.c     Sat Jan 12 13:22:23 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.c,v 1.4 2001/09/15 01:11:02 wdk Exp $     */
+/*     $NetBSD: conf.c,v 1.5 2002/01/12 13:32:11 manu Exp $    */
 
 /*
  * Copyright (c) 1992, 1993
@@ -64,6 +64,9 @@
 cdev_decl(com);
 cdev_decl(lpt);
 
+#include "clockctl.h"
+cdev_decl(clockctl);
+
 struct bdevsw  bdevsw[] =
 {
        bdev_disk_init(NSD,sd),         /* 0: SCSI disk */
@@ -199,6 +202,7 @@
        cdev_notdef(),                  /* 72: */
        cdev_scsibus_init(NSCSIBUS,scsibus), /* 73: SCSI bus */
        cdev_disk_init(NRAID,raid),     /* 74: RAIDframe disk driver */
+       cdev_clockctl_init(NCLOCKCTL, clockctl),/* 75: clockctl pseudo device */
 };
 int    nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
 
@@ -303,6 +307,7 @@
        /* 72 */        NODEV,
        /* 73 */        NODEV,
        /* 74 */        32,
+       /* 75 */        NODEV,
 };
 
 /*



Home | Main Index | Thread Index | Old Index