Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/etc.sparc add clcd device support, plus document magma s...
details: https://anonhg.NetBSD.org/src/rev/a0f3d27346e2
branches: trunk
changeset: 520010:a0f3d27346e2
user: mrg <mrg%NetBSD.org@localhost>
date: Tue Jan 01 07:55:26 2002 +0000
description:
add clcd device support, plus document magma support.
diffstat:
etc/etc.sparc/MAKEDEV | 22 +++++++++++++++++++++-
1 files changed, 21 insertions(+), 1 deletions(-)
diffs (45 lines):
diff -r aae9d16f95ac -r a0f3d27346e2 etc/etc.sparc/MAKEDEV
--- a/etc/etc.sparc/MAKEDEV Tue Jan 01 06:31:49 2002 +0000
+++ b/etc/etc.sparc/MAKEDEV Tue Jan 01 07:55:26 2002 +0000
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: MAKEDEV,v 1.64 2001/12/19 18:30:11 wiz Exp $
+# $NetBSD: MAKEDEV,v 1.65 2002/01/01 07:55:26 mrg Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@@ -87,6 +87,8 @@
# ss* SCSI scanner
# uk* unknown SCSI device
# pci* PCI bus access devices
+# magma* Magma multiport serial/parallel cards
+# clcd* CL18xx-based multiport serial cards
dialin=0
dialout=524288 # high bit of the minor number
@@ -459,6 +461,24 @@
mknod bpp${unit}1 c 101 $(($unit * 64 + 1))
;;
+clcd*)
+ unit=${i#clcd}
+ if [ 0$unit -gt 7 ]
+ then
+ echo "bad unit for $i: $unit"
+ break
+ fi
+
+ rm -f ttyA$unit[0-7] dtyA$unit[0-7]
+ for j in 0 1 2 3 4 5 6 7
+ do
+ mknod ttyA$unit$j c 124 $(($unit * 8 + $j + $dialin))
+ mknod dtyA$unit$j c 124 $(($unit * 8 + $j + $dialout))
+ done
+ chown uucp.wheel ttyA$unit[0-9a-f] dtyA$unit[0-9a-f]
+
+ ;;
+
scsibus*)
unit=${i#scsibus};
rm -f scsibus$unit
Home |
Main Index |
Thread Index |
Old Index