Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Add clockctl device (at major # 55).
details: https://anonhg.NetBSD.org/src/rev/050c080f5b72
branches: trunk
changeset: 532870:050c080f5b72
user: lukem <lukem%NetBSD.org@localhost>
date: Mon Jun 17 06:27:26 2002 +0000
description:
Add clockctl device (at major # 55).
diffstat:
etc/etc.amiga/MAKEDEV | 11 ++++++++++-
sys/arch/amiga/amiga/conf.c | 8 ++++++--
2 files changed, 16 insertions(+), 3 deletions(-)
diffs (77 lines):
diff -r 723d222b135d -r 050c080f5b72 etc/etc.amiga/MAKEDEV
--- a/etc/etc.amiga/MAKEDEV Mon Jun 17 05:25:18 2002 +0000
+++ b/etc/etc.amiga/MAKEDEV Mon Jun 17 06:27:26 2002 +0000
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: MAKEDEV,v 1.74 2002/04/11 20:27:40 heinz Exp $
+# $NetBSD: MAKEDEV,v 1.75 2002/06/17 06:27:26 lukem Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@@ -97,6 +97,7 @@
# isdntrc* trace device
#
# Special purpose devices:
+# clockctl clock control for non root users
# grf* custom chip (grf0), Retina Z2/Z3 (grf1/grf2),
# Cirrus boards (grf3), A2410 (grf4) video,
# CyberVision 64 (grf5), ET4000 boards (grf6)
@@ -159,6 +160,7 @@
makedev audio0 audio1 audio2 audio3
makedev scsibus0 scsibus1 scsibus2 scsibus3
makedev isdns
+ makedev clockctl
;;
floppy)
@@ -646,6 +648,13 @@
chmod 600 isdntrc$unit
;;
+clockctl)
+ rm -f clockctl
+ mknod clockctl c 55 0
+ chgrp ntpd clockctl
+ chmod 660 clockctl
+ ;;
+
local)
umask 0
sh $0.local all
diff -r 723d222b135d -r 050c080f5b72 sys/arch/amiga/amiga/conf.c
--- a/sys/arch/amiga/amiga/conf.c Mon Jun 17 05:25:18 2002 +0000
+++ b/sys/arch/amiga/amiga/conf.c Mon Jun 17 06:27:26 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: conf.c,v 1.65 2002/03/16 16:55:52 martin Exp $ */
+/* $NetBSD: conf.c,v 1.66 2002/06/17 06:27:26 lukem Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@@ -38,7 +38,7 @@
#include "opt_compat_svr4.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.65 2002/03/16 16:55:52 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.66 2002/06/17 06:27:26 lukem Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -133,6 +133,9 @@
cdev_decl(isdnbchan);
cdev_decl(isdntel);
+#include "clockctl.h"
+cdev_decl(clockctl);
+
struct cdevsw cdevsw[] =
{
cdev_cn_init(1,cn), /* 0: virtual console */
@@ -192,6 +195,7 @@
wsdisplay), /* 53: display */
cdev_mouse_init(NWSKBD,wskbd), /* 54: keyboard */
+ cdev_clockctl_init(NCLOCKCTL, clockctl),/* 55: clockctl pseudo device */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
Home |
Main Index |
Thread Index |
Old Index