Module Name:    src
Committed By:   jdolecek
Date:           Sun Jul 26 15:47:27 UTC 2020

Modified Files:
        src/etc: MAKEDEV.tmpl
        src/etc/etc.amd64: MAKEDEV.conf

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


To generate a diff of this commit:
cvs rdiff -u -r1.220 -r1.221 src/etc/MAKEDEV.tmpl
cvs rdiff -u -r1.29 -r1.30 src/etc/etc.amd64/MAKEDEV.conf

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/etc/MAKEDEV.tmpl
diff -u src/etc/MAKEDEV.tmpl:1.220 src/etc/MAKEDEV.tmpl:1.221
--- src/etc/MAKEDEV.tmpl:1.220	Sun Jun  7 09:45:19 2020
+++ src/etc/MAKEDEV.tmpl	Sun Jul 26 15:47:27 2020
@@ -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 @@ ipmi[0-9]*)
 	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)

Index: src/etc/etc.amd64/MAKEDEV.conf
diff -u src/etc/etc.amd64/MAKEDEV.conf:1.29 src/etc/etc.amd64/MAKEDEV.conf:1.30
--- src/etc/etc.amd64/MAKEDEV.conf:1.29	Sun Apr  5 14:09:17 2020
+++ src/etc/etc.amd64/MAKEDEV.conf	Sun Jul 26 15:47:27 2020
@@ -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 @@ all_md)
 	makedev cir0 cir1 irframe0 irframe1
 	makedev kttcp
 	makedev bio
+	makedev xmm0
 	;;
 
 xen)

Reply via email to