Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/etc/etc.sparc64 Pull up revision 1.40 (requested by mar...
details: https://anonhg.NetBSD.org/src/rev/f3f86b3583ca
branches: netbsd-1-6
changeset: 529671:f3f86b3583ca
user: he <he%NetBSD.org@localhost>
date: Sat Dec 07 21:14:51 2002 +0000
description:
Pull up revision 1.40 (requested by martin in ticket #873):
Add support for various USB devices.
diffstat:
etc/etc.sparc64/MAKEDEV | 101 +++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 100 insertions(+), 1 deletions(-)
diffs (145 lines):
diff -r 206445019f11 -r f3f86b3583ca etc/etc.sparc64/MAKEDEV
--- a/etc/etc.sparc64/MAKEDEV Sat Dec 07 21:14:05 2002 +0000
+++ b/etc/etc.sparc64/MAKEDEV Sat Dec 07 21:14:51 2002 +0000
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: MAKEDEV,v 1.35.2.1 2002/08/10 00:07:14 lukem Exp $
+# $NetBSD: MAKEDEV,v 1.35.2.2 2002/12/07 21:14:51 he Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@@ -46,6 +46,7 @@
# std standard devices
# local configuration specific devices
# isdns make ISDN devices
+# usbs make USB devices
# Tapes:
# st* SCSI tape
# Disks:
@@ -64,6 +65,14 @@
# Pseudo terminals:
# pty* set of 62 master and slave pseudo terminals
# opty first 16 ptys, to save inodes on install media
+# USB devices:
+# usb* Bus control devices used by usbd for attach/detach
+# uhid* Generic HID devices
+# ulpt* Printer devices
+# ugen* Generic device
+# urio* Diamond Rio 500
+# uscanner* Scanners
+# ttyU* Modem
# ISDN devices:
# isdn communication between userland isdnd and kernel
# isdnctl control device
@@ -96,6 +105,7 @@
dialin=0
dialout=524288 # high bit of the minor number
+callunit=262144
PATH=/sbin:/bin/:/usr/bin:/usr/sbin:/usr/etc
umask 77
@@ -131,6 +141,7 @@
sh -$- $0 cgeight0 tcx0
sh -$- $0 scsibus0 scsibus1 scsibus2 scsibus3
sh -$- $0 ipl lkm random local
+ sh -$- $0 usbs
sh -$- $0 isdns
sh -$- $0 pci0 pci1 pci2 pci3 pci4 pci5 pci6 pci7
sh -$- $0 clockctl
@@ -513,6 +524,94 @@
chmod 600 isdntrc$unit
;;
+usbs)
+ makedev usb usb0 usb1 usb2 usb3 usb4 usb5 usb6 usb7
+ makedev uhid0 uhid1 uhid2 uhid3
+ makedev ulpt0 ulpt1
+ makedev ttyU0 ttyU1
+ makedev urio0
+ makedev uscanner0 uscanner1
+ ;;
+
+usb*)
+ unit=${i#usb}
+ if [ "$unit" = "" ]; then
+ unit=255
+ usb=usb
+ else
+ usb=usb$unit
+ fi
+ major=78
+ rm -f $usb
+ mknod $usb c $major $unit
+ chmod 600 $usb
+ ;;
+
+uhid*)
+ unit=${i#uhid}
+ uhid=uhid$unit
+ major=79
+ rm -f $uhid
+ mknod $uhid c $major $unit
+ chmod 666 $uhid
+ ;;
+
+ulpt*)
+ unit=${i#ulpt}
+ ulpt=ulpt$unit
+ ulpn=ulpn$unit
+ major=80
+ rm -f $ulpt $ulpn
+ mknod $ulpt c $major $unit
+ mknod $ulpn c $major $(($unit + 64))
+ chmod 600 $ulpt $ulpn
+ ;;
+
+ugen*)
+ unit=${i#ugen}
+ ugen=ugen$unit
+ major=81
+ for j in 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15
+ do
+ ugenj=$ugen.$j
+ rm -f $ugenj
+ mknod $ugenj c $major $(($unit * 16 + $j))
+ chmod 600 $ugenj
+ done
+ ;;
+
+ttyU*)
+ unit=${i#ttyU}
+ ttyU=ttyU$unit
+ dtyU=dtyU$unit
+ ctyU=ctyU$unit
+ major=82
+ rm -f $ttyU $dtyU $ctyU
+ mknod $ttyU c $major $(($unit + $dialin ))
+ mknod $dtyU c $major $(($unit + $dialout ))
+ mknod $ctyU c $major $(($unit + $callunit))
+ chown uucp $ttyU $dtyU $ctyU
+ chmod 600 $ttyU $dtyU $ctyU
+ ;;
+
+urio*)
+ unit=${i#urio}
+ urio=urio$unit
+ major=83
+ rm -f $urio
+ mknod $urio c $major $unit
+ chmod 600 $urio
+ ;;
+
+uscanner*)
+ unit=${i#uscanner}
+ uscanner=uscanner$unit
+ major=84
+ rm -f $uscanner
+ mknod $uscanner c $major $unit
+ chmod 600 $uscanner
+ ;;
+
pci*)
unit=${i#pci}
rm -f pci$unit
Home |
Main Index |
Thread Index |
Old Index