Add clockctl device (at major # 55).
This commit is contained in:
parent
9574a41373
commit
4f0cd76133
@ -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 @@ all)
|
||||
makedev audio0 audio1 audio2 audio3
|
||||
makedev scsibus0 scsibus1 scsibus2 scsibus3
|
||||
makedev isdns
|
||||
makedev clockctl
|
||||
;;
|
||||
|
||||
floppy)
|
||||
@ -646,6 +648,13 @@ isdntrc*)
|
||||
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
|
||||
|
@ -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(isdntrc);
|
||||
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 @@ struct cdevsw cdevsw[] =
|
||||
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]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user