Subject: port-amiga/810: updated MAKEDEV for mcfs and other drivers
To: None <gnats-admin@NetBSD.ORG>
From: Superuser <root@arresum.inka.de>
List: netbsd-bugs
Date: 02/21/1995 10:35:03
>Number: 810
>Category: port-amiga
>Synopsis: changes for new devices
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Feb 21 10:35:02 1995
>Originator: Bernd Ernesti
>Organization:
>Release: NetBSD-current 02-16-95
>Environment:
System: NetBSD arresum.inka.de 1.0A NetBSD 1.0A (VEEGO) #48: Mon Feb 20 19:12:20 GMT+0100 1995 root@arresum.inka.de:/src/sys/arch/amiga/compile/VEEGO amiga
>Description:
add mfcs, tun, ttye3 and grf3 support in /dev/MAKEDEV and /etc/ttys
>How-To-Repeat:
>Fix:
there are no ttys in the current MAKEDEV to use the multifacecard
so I add an mfcs which uses tty01 (ttym1) for mfcs0 and tty02 (ttym2)
for mfcs1.
and updated ttye and grf for the upcoming grf_cl driver
*** etc/etc.amiga/MAKEDEV-orig Mon Nov 21 22:22:36 1994
--- etc/etc.amiga/MAKEDEV Tue Feb 21 13:18:19 1995
***************
*** 62,67 ****
--- 62,68 ----
#
# Terminal ports:
# tty* standard serial port.
+ # mfcs* serial ports for the MultiFaceCard.
#
# Pseudo terminals:
# pty* set of 16 master and slave pseudo terminals
***************
*** 70,81 ****
# par* motherboard parallel port
#
# Special purpose devices:
! # grf* custom chip (grf0) or Retina (grf1) video
# kbd Amiga keyboard
# view* generic interface to graphic displays.
# aconf autoconfig information (not yet)
# lkm loadable kernel modules interface.
# bpf* Berkeley Packet Filter
PATH=/sbin:/bin:/usr/sbin:/usr/bin
umask 77
--- 71,83 ----
# par* motherboard parallel port
#
# Special purpose devices:
! # grf* custom chip (grf0) or Retina (grf1) video or CL5426 boards (grf3)
# kbd Amiga keyboard
# view* generic interface to graphic displays.
# aconf autoconfig information (not yet)
# lkm loadable kernel modules interface.
# bpf* Berkeley Packet Filter
+ # tun* network tunnel driver
PATH=/sbin:/bin:/usr/sbin:/usr/bin
umask 77
***************
*** 83,98 ****
do
case $i in
all)
! sh MAKEDEV std fd st0 ttye0 ttye1 ttye2 mouse0 mouse1 tty00 grf0 grf1 grf2
! sh MAKEDEV kbd sd0 sd1 sd2 sd3 sd4 sd5 sd6 sd7 sd8 sd9 vnd0 vnd1 vnd2
! sh MAKEDEV vnd3 vnd4 view00 view01 view02 view03 view04 view05 pty0
! sh MAKEDEV vnd5 vnd6 cd0 fd0 fd1 fd2 fd3 bpf0 bpf1 bpf2 bpf3 par0
! sh MAKEDEV lkm local
;;
floppy)
! sh MAKEDEV std st0 ttye0 ttye1 ttye2 tty00 grf0 grf1 grf2 kbd
! sh MAKEDEV sd0 sd1 sd2 sd3 sd4 sd5 sd6 cd0 fd0 fd1
;;
std)
--- 85,100 ----
do
case $i in
all)
! sh MAKEDEV std fd st0 ttye0 ttye1 ttye2 ttye3 mouse0 mouse1 tty00
! sh MAKEDEV grf0 grf1 grf2 grf3 kbd sd0 sd1 sd2 sd3 sd4 sd5 sd6 sd7
! sh MAKEDEV sd8 sd9 vnd0 vnd1 vnd2 vnd3 vnd4 vnd5 vnd6 view00 view01
! sh MAKEDEV view02 view03 view04 view05 pty0 cd0 fd0 fd1 fd2 fd3 lkm
! sh MAKEDEV bpf0 bpf1 bpf2 bpf3 tun0 tun1 tun2 tun3 par0 local mfcs0 mfcs1
;;
floppy)
! sh MAKEDEV std st0 ttye0 ttye1 ttye2 ttye3 tty00 grf0 grf1 grf2 grf3
! sh MAKEDEV kbd sd0 sd1 sd2 sd3 sd4 sd5 sd6 cd0 fd0 fd1
;;
std)
***************
*** 267,272 ****
--- 269,290 ----
;;
+ mfcs*)
+ unit=`expr $i : 'mfcs\(.*\)'`
+ rm -f mfcs`expr ${unit} + 1` tty0`expr ${unit} + 1` ttym`expr ${unit} + 1`
+ case $unit in
+ 0|1|2|3)
+ mknod tty0`expr ${unit} + 1` c 17 `expr ${unit} + 0`
+ mknod ttym`expr ${unit} + 1` c 17 `expr ${unit} + 128`
+ chown uucp:wheel tty0`expr ${unit} + 1` ttym`expr ${unit} + 1`
+ ;;
+ *)
+ echo bad unit for mfcs in: $i
+ ;;
+ esac
+ ;;
+
+
par*)
unit=`expr $i : 'par\(.*\)'`
rm -f par${unit}
***************
*** 286,292 ****
rm -f ttye${unit}
rm -f ite*
case $unit in
! 0|1|2)
mknod ttye${unit} c 13 ${unit}
;;
*)
--- 304,310 ----
rm -f ttye${unit}
rm -f ite*
case $unit in
! 0|1|2|3)
mknod ttye${unit} c 13 ${unit}
;;
*)
***************
*** 299,305 ****
unit=`expr $i : 'grf\(.*\)'`
rm -f grf${unit}
case $unit in
! 0|1|2)
mknod grf${unit} c 10 ${unit}; chmod 666 grf${unit}
;;
*)
--- 317,323 ----
unit=`expr $i : 'grf\(.*\)'`
rm -f grf${unit}
case $unit in
! 0|1|2|3)
mknod grf${unit} c 10 ${unit}; chmod 666 grf${unit}
;;
*)
***************
*** 375,380 ****
--- 393,406 ----
rm -f bpf$unit
mknod bpf$unit c 22 $unit
chown root.wheel bpf$unit
+ ;;
+
+ tun*)
+ unit=`expr $i : 'tun\(.*\)'`
+ rm -f tun${unit}
+ mknod tun$unit c 23 $unit
+ chmod 600 tun$unit
+ chown root.wheel tun$unit
;;
lkm)
*** etc/etc.amiga/ttys-orig Thu Jul 7 08:59:23 1994
--- etc/etc.amiga/ttys Tue Feb 21 13:17:04 1995
***************
*** 8,14 ****
# the root password.
console "/usr/libexec/getty Pc" vt200 off secure
ttye0 "/usr/libexec/getty Pc" vt200 on secure # custom chips
! ttye1 "/usr/libexec/getty Pc" vt200 on secure # retina
tty00 "/usr/libexec/getty std.9600" unknown off secure # int. serial.
ttyp0 none network
ttyp1 none network
--- 8,16 ----
# the root password.
console "/usr/libexec/getty Pc" vt200 off secure
ttye0 "/usr/libexec/getty Pc" vt200 on secure # custom chips
! ttye1 "/usr/libexec/getty Pc" vt200 on secure # retina z2
! ttye2 "/usr/libexec/getty Pc" vt200 off secure # retina z3
! ttye3 "/usr/libexec/getty Pc" vt200 off secure # cirrus 5426
tty00 "/usr/libexec/getty std.9600" unknown off secure # int. serial.
ttyp0 none network
ttyp1 none network
>Audit-Trail:
>Unformatted: