Subject: port-cobalt/17675: enable ALTQ support on port-cobalt
To: None <gnats-bugs@gnats.netbsd.org>
From: None <hideki@acm.org>
List: netbsd-bugs
Date: 07/22/2002 20:35:42
>Number:         17675
>Category:       port-cobalt
>Synopsis:       enable ALTQ support on port-cobalt
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-cobalt-maintainer
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 22 04:37:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     YOSHIDA Hideki
>Release:        NetBSD 1.6D
>Organization:
>Environment:
System: NetBSD qube 1.6D NetBSD 1.6D (ALTQ) #7: Mon Jul 22 19:57:09 JST 2002 hideki@qube:/usr/src/sys/arch/cobalt/compile/ALTQ cobalt
Architecture: mipsel
Machine: cobalt
>Description:
	ALTQ is not enabled on port-cobalt.
>How-To-Repeat:
	/usr/sbin/altqd won't run.
>Fix:
	Just imported several lines from i386.  Works fine on Qube2.

Index: sys/arch/cobalt/cobalt/conf.c
===================================================================
RCS file: /cvsroot/syssrc/sys/arch/cobalt/cobalt/conf.c,v
retrieving revision 1.15
diff -u -1 -r1.15 conf.c
--- sys/arch/cobalt/cobalt/conf.c	2002/07/19 16:38:18	1.15
+++ sys/arch/cobalt/cobalt/conf.c	2002/07/22 11:09:55
@@ -121,2 +121,4 @@
 
+#include <altq/altqconf.h>
+
 struct cdevsw cdevsw[] =
@@ -162,2 +164,3 @@
 #endif
+	cdev_altq_init(NALTQ, altq),		/* 35: ALTQ control interface */
 
Index: etc/etc.cobalt/MAKEDEV
===================================================================
RCS file: /cvsroot/basesrc/etc/etc.cobalt/MAKEDEV,v
retrieving revision 1.19
diff -u -1 -r1.19 MAKEDEV
--- etc/etc.cobalt/MAKEDEV	2002/06/18 13:40:17	1.19
+++ etc/etc.cobalt/MAKEDEV	2002/07/22 11:13:46
@@ -129,2 +129,3 @@
 	makedev systrace
+	makedev altq
 	;;
@@ -418,2 +419,15 @@
 	chmod 644 systrace
+	;;
+
+altq)
+	mkdir -p altq
+	chmod 755 altq
+	unit=0
+	for dev in altq cbq wfq afm fifoq red rio localq hfsc \
+	    cdnr blue priq; do
+		rm -f altq/$dev
+		mknod altq/$dev c 35 $unit
+		chmod 644 altq/$dev
+		unit=$(($unit + 1))
+	done
 	;;

>Release-Note:
>Audit-Trail:
>Unformatted: