Source-Changes-HG archive

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

[src/trunk]: src/etc add support for wwanc(4) device nodes (xmm[0-9])



details:   https://anonhg.NetBSD.org/src/rev/69ee1fe76fdf
branches:  trunk
changeset: 974232:69ee1fe76fdf
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sun Jul 26 15:47:27 2020 +0000

description:
add support for wwanc(4) device nodes (xmm[0-9])

diffstat:

 etc/MAKEDEV.tmpl           |  10 +++++++++-
 etc/etc.amd64/MAKEDEV.conf |   3 ++-
 2 files changed, 11 insertions(+), 2 deletions(-)

diffs (42 lines):

diff -r fc423ce0be60 -r 69ee1fe76fdf etc/MAKEDEV.tmpl
--- a/etc/MAKEDEV.tmpl  Sun Jul 26 15:38:22 2020 +0000
+++ b/etc/MAKEDEV.tmpl  Sun Jul 26 15:47:27 2020 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh -
-#      $NetBSD: MAKEDEV.tmpl,v 1.220 2020/06/07 09:45:19 maxv Exp $
+#      $NetBSD: MAKEDEV.tmpl,v 1.221 2020/07/26 15:47:27 jdolecek Exp $
 #
 # Copyright (c) 2003,2007,2008 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -2235,6 +2235,14 @@
        mkdev ipmi${unit} c %ipmi_chr% $unit 600
        ;;
 
+xmm[0-9])
+       unit=${i#xmm}
+       makedir xmm${unit} 755
+       mkdev xmm${unit}/rpc c %wwanc_chr% $(($unit * 65536 + 1))
+       mkdev ttyXMM${unit}0 c %wwanc_chr% $(($unit * 65536 + 2))
+       mkdev ttyXMM${unit}1 c %wwanc_chr% $(($unit * 65536 + 4))
+       ;;
+
 midevend)
 %MI_DEVICES_END%
 local)
diff -r fc423ce0be60 -r 69ee1fe76fdf etc/etc.amd64/MAKEDEV.conf
--- a/etc/etc.amd64/MAKEDEV.conf        Sun Jul 26 15:38:22 2020 +0000
+++ b/etc/etc.amd64/MAKEDEV.conf        Sun Jul 26 15:47:27 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: MAKEDEV.conf,v 1.29 2020/04/05 14:09:17 jdolecek Exp $
+# $NetBSD: MAKEDEV.conf,v 1.30 2020/07/26 15:47:27 jdolecek Exp $
 
 # As of 2003-04-17, the "init" case must not create more than 890 entries.
 all_md)
@@ -44,6 +44,7 @@
        makedev cir0 cir1 irframe0 irframe1
        makedev kttcp
        makedev bio
+       makedev xmm0
        ;;
 
 xen)



Home | Main Index | Thread Index | Old Index