Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/etc.amiga Add 4 lpt nodes



details:   https://anonhg.NetBSD.org/src/rev/aa78442583b0
branches:  trunk
changeset: 472900:aa78442583b0
user:      is <is%NetBSD.org@localhost>
date:      Tue May 11 20:45:38 1999 +0000

description:
Add 4 lpt nodes

diffstat:

 etc/etc.amiga/MAKEDEV |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (42 lines):

diff -r fce54e9d2de5 -r aa78442583b0 etc/etc.amiga/MAKEDEV
--- a/etc/etc.amiga/MAKEDEV     Tue May 11 20:30:14 1999 +0000
+++ b/etc/etc.amiga/MAKEDEV     Tue May 11 20:45:38 1999 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.47 1999/01/26 12:49:24 frueauf Exp $
+#      $NetBSD: MAKEDEV,v 1.48 1999/05/11 20:45:38 is Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -72,7 +72,8 @@
 #      pty*    set of 16 master and slave pseudo terminals
 #
 # Printers:
-#      par*    motherboard parallel port
+#      par0    Amiga motherboard parallel port
+#      lpt*    lpt parallel port (DraCo mainboard, soon HyperCom etc.)
 #
 # Special purpose devices:
 #      grf*    custom chip (grf0), Retina Z2/Z3 (grf1/grf2),
@@ -106,6 +107,7 @@
 case $i in
 all)
        sh $0 std fd fd0 fd1 fd2 fd3 kbd mouse0 mouse1 par0
+       sh $0 lpt0 lpt1 lpt2 lpt3
        sh $0 ttye0 ttye1 ttye2 ttye3 ttye4 ttye5 ttye6 ttye7
        sh $0 grf0 grf1 grf2 grf3 grf4 grf5 grf6 grf7
        sh $0 tty00 ttyA0 ttyA1
@@ -346,6 +348,12 @@
        esac
        ;;
 
+lpt*)
+       unit=${i#lpt};  chr=33
+       rm -f lpt${unit} lpt${unit}a
+       mknod lpt${unit}        c $chr $unit
+       mknod lpt${unit}a       c $chr $(($unit + 128))
+       ;;
 
 ttye*)
        unit=${i#ttye}; chr=13



Home | Main Index | Thread Index | Old Index