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.45 (via patch, reque...
details: https://anonhg.NetBSD.org/src/rev/8aeba7a84e6c
branches: netbsd-1-6
changeset: 529774:8aeba7a84e6c
user: he <he%NetBSD.org@localhost>
date: Thu Dec 12 22:47:28 2002 +0000
description:
Pull up revision 1.45 (via patch, requested by martin in ticket #1012):
Add MAKEDEV and cdevsw entries for the already existing
``lpt* at ebus?'' driver.
diffstat:
etc/etc.sparc64/MAKEDEV | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diffs (45 lines):
diff -r 07d936075d92 -r 8aeba7a84e6c etc/etc.sparc64/MAKEDEV
--- a/etc/etc.sparc64/MAKEDEV Thu Dec 12 22:46:27 2002 +0000
+++ b/etc/etc.sparc64/MAKEDEV Thu Dec 12 22:47:28 2002 +0000
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: MAKEDEV,v 1.35.2.2 2002/12/07 21:14:51 he Exp $
+# $NetBSD: MAKEDEV,v 1.35.2.3 2002/12/12 22:47:28 he Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@@ -65,6 +65,9 @@
# Pseudo terminals:
# pty* set of 62 master and slave pseudo terminals
# opty first 16 ptys, to save inodes on install media
+# Printers:
+# lpt* stock lp
+# lpa* interuptless lp
# USB devices:
# usb* Bus control devices used by usbd for attach/detach
# uhid* Generic HID devices
@@ -134,6 +137,7 @@
sh -$- $0 audio0 audio1 audio2 audio3
sh -$- $0 pty0 vnd0 vnd1 vnd2 vnd3 audio
sh -$- $0 tun0 tun1 tun2 tun3
+ sh -$- $0 lpt0 lpt1 lpt2
sh -$- $0 ccd0 ccd1 ccd2 ccd3
sh -$- $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
sh -$- $0 bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7
@@ -484,6 +488,15 @@
mknod bpp${unit}1 c 101 $(($unit * 64 + 1))
;;
+lpt*|lpa*)
+ case $i in
+ lpt*) name=lpt; unit=${i#lpt}; chr=37; flags=0;;
+ lpa*) name=lpa; unit=${i#lpa}; chr=37; flags=128;;
+ esac
+ rm -f $name$unit
+ mknod $name$unit c $chr $(($unit + $flags))
+ ;;
+
scsibus*)
unit=${i#scsibus}
rm -f scsibus$unit
Home |
Main Index |
Thread Index |
Old Index