From: niklas Date: Wed, 22 Mar 2000 08:34:16 +0000 (+0000) Subject: Add ch to some dead ports for consistency, of course not tested. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=68da951a9a52e579d027eca1e6406dbf1ee479c6;p=openbsd Add ch to some dead ports for consistency, of course not tested. --- diff --git a/etc/etc.atari/MAKEDEV b/etc/etc.atari/MAKEDEV index 53d91b553ca..e4881a711a4 100644 --- a/etc/etc.atari/MAKEDEV +++ b/etc/etc.atari/MAKEDEV @@ -72,6 +72,7 @@ # pty* set of 16 master and slave pseudo terminals # # Special purpose devices: +# ch* SCSI media changer # grf* Motherboard bitmapped video. # kbd Atari keyboard. # view* generic interface to graphic displays. @@ -180,6 +181,16 @@ st*) umask 77 ;; +ch*) + umask 2 + name=ch; chr=33 + rm -f $name$unit + mknod ${name}${unit} c $chr $unit + chown root.operator ${name}${unit} + chmod 660 ${name}${unit} + umask 77 + ;; + fd*) umask 2 ; unit=`expr $i : '.*[^0-9]\([0-9]*\)'` rm -f fd$unit? rfd$unit? diff --git a/etc/etc.pc532/MAKEDEV b/etc/etc.pc532/MAKEDEV index e1436095896..e3aca0bfbdd 100644 --- a/etc/etc.pc532/MAKEDEV +++ b/etc/etc.pc532/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.18 2000/03/22 07:34:29 niklas Exp $ +# $OpenBSD: MAKEDEV,v 1.19 2000/03/22 08:34:16 niklas Exp $ # # Copyright (c) 1990 The Regents of the University of California. # All rights reserved. @@ -49,6 +49,7 @@ # lpt* Matthias's lp interface # # Special purpose devices: +# ch* SCSI media changer # fd file descriptors # bpf* packet filter # lkm loadable kernel modules interface @@ -240,6 +241,16 @@ st*) umask 77 ;; +ch*) + umask 2 + name=ch; chr=16 + rm -f $name$unit + mknod ${name}${unit} c $chr $unit + chown root.operator ${name}${unit} + chmod 660 ${name}${unit} + umask 77 + ;; + cd*) umask 2 ; unit=`expr $i : '.*cd\(.*\)'` case $i in diff --git a/sys/arch/atari/atari/conf.c b/sys/arch/atari/atari/conf.c index f7f892ee11b..cc79fd2f51f 100644 --- a/sys/arch/atari/atari/conf.c +++ b/sys/arch/atari/atari/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.13 1998/09/25 09:20:52 todd Exp $ */ +/* $OpenBSD: conf.c,v 1.14 2000/03/22 08:34:17 niklas Exp $ */ /* * Copyright (c) 1991 The Regents of the University of California. @@ -111,6 +111,7 @@ cdev_decl(sw); cdev_decl(zs); #include "ss.h" #include "uk.h" +#include "ch.h" #include "grf.h" cdev_decl(grf); #include "ite.h" @@ -175,7 +176,7 @@ struct cdevsw cdevsw[] = cdev_random_init(1,random), /* 30: random data source */ cdev_uk_init(NUK,uk), /* 31: unknown SCSI */ cdev_ss_init(NSS,ss), /* 32: SCSI scanner */ - cdev_notdef(), /* 33 */ + cdev_ch_init(NCH,ch), /* 33: SCSI media changer */ cdev_notdef(), /* 34 */ cdev_notdef(), /* 35 */ cdev_notdef(), /* 36 */ diff --git a/sys/arch/pc532/pc532/conf.c b/sys/arch/pc532/pc532/conf.c index b159b906b0a..2103fe88164 100644 --- a/sys/arch/pc532/pc532/conf.c +++ b/sys/arch/pc532/pc532/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.11 1998/09/25 09:20:54 todd Exp $ */ +/* $OpenBSD: conf.c,v 1.12 2000/03/22 08:34:16 niklas Exp $ */ /*- * Copyright (c) 1991 The Regents of the University of California. @@ -49,6 +49,7 @@ int ttselect __P((dev_t, int, struct proc *)); bdev_decl(sw); #include "st.h" #include "cd.h" +#include "ch.h" #include "ss.h" #include "uk.h" #include "rd.h" @@ -117,7 +118,7 @@ struct cdevsw cdevsw[] = cdev_disk_init(NVND,vnd), /* 13: vnode disk driver */ cdev_bpftun_init(NBPFILTER,bpf),/* 14: Berkeley packet filter */ cdev_bpftun_init(NTUN,tun), /* 15: network tunnel */ - cdev_notdef(), /* 16 */ + cdev_ch_init(NCH,ch), /* 16: SCSI media changer */ cdev_lpt_init(NLPT, lpt), /* 17: Centronics */ cdev_disk_init(NCCD,ccd), /* 18: concatenated disk driver */ cdev_gen_ipf(NIPF,ipl), /* 19: IP filter log */