From owner-freebsd-stable Sat Aug 12 20: 1:27 2000 Delivered-To: freebsd-stable@freebsd.org Received: from neptune.innovativeinternet.net (neptune.innovativeinternet.net [208.244.165.5]) by hub.freebsd.org (Postfix) with SMTP id C765037B661 for ; Sat, 12 Aug 2000 20:01:24 -0700 (PDT) (envelope-from Harlan.Stenn@pfcs.com) Received: (qmail 381 invoked from network); 13 Aug 2000 03:01:22 -0000 Received: from harlan.xecu.net (HELO pcpsj.pfcs.com) (?dd3uXor/5ARgdw9tfuD8AD75OaZb5G/G?@216.127.150.112) by neptune.innovativeinternet.net with SMTP; 13 Aug 2000 03:01:22 -0000 Received: from mumps.pfcs.com [192.52.69.11] (HELO mumps.pfcs.com) by pcpsj.pfcs.com (8.9.3/8.9.3) via ESMTP id ; Sat, 12 Aug 2000 23:01:03 -0400 (EDT) Received: from pcnbs.pfcs.com [192.52.69.42] (HELO pcnbs.pfcs.com) by mumps.pfcs.com (8.8.8/8.8.8) via ESMTP id ; Sat, 12 Aug 2000 19:57:20 -0700 (PDT) Received: from localhost [127.0.0.1] (HELO pcnbs.pfcs.com) by pcnbs.pfcs.com (8.9.3/8.8.8) via ESMTP id ; Sat, 12 Aug 2000 22:57:19 -0400 (EDT) To: Mike Harding Cc: trond@ramstind.gtf.ol.no, freebsd-stable@FreeBSD.ORG Subject: Re: Is it OK to use IRQ 1 in rand_irqs in /etc/rc.conf? In-Reply-To: Mike Harding's (mvh@ix.netcom.com) message dated Sat, 12 Aug 2000 18:50:46. <20000813015046.04355E7264@netcom1.netcom.com> X-Face: "csXK}xnnsH\h_ce`T#|pM]tG,6Xu.{3Rb\]&XJgVyTS'w{E+|-(}n:c(Cc* $cbtusxDP6T)Hr'k&zrwq0.3&~bAI~YJco[r.mE+K|(q]F=ZNXug:s6tyOk{VTqARy0#axm6BWti9C d User-Agent: EMH/1.10.0 SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) XEmacs/21.1 (patch 10) (Capitol Reef) (i386-unknown-freebsd3.4) MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII Date: Sat, 12 Aug 2000 22:57:19 -0400 Message-ID: <10350.966135439@pcnbs.pfcs.com> From: Harlan Stenn Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I wrote this back in '96. It might need some updating. #! /usr/bin/perl # $Id$ # Author: Harlan Stenn $debug = 0; $list = ""; open(DMESG, "dmesg |") || die "Can't read from dmesg: $!"; while() { chop; if (/^([a-z]+).* irq (\d+)/) { $_ = $dev = $1; $irq = $2; print "Device $dev is on IRQ $irq\n" if $debug; # Good: Network cards, intelligent hard disk controllers, sound devices # Bad: COM ports, IDE disk/cdrom, system clock if (/^(aha|ahb|ahc|aic|bt|nca|ncr|sea|uha|wds)$/) { $list .= "-s $irq "; } elsif (/^(cx|de|ed|el|ep|fe|fea|fpa|fxp|ie|ix|le|lnc|vx|ze|zp)$/) { $list .= "-s $irq "; } elsif (/^(gus|gusxvi|mpu|mss|opl|pas|pca|sb|sbmidi|sbxvi|snd|uart)$/) { $list .= "-s $irq "; } } } close(DMESG); ($list = $list) =~ s/ $//; print $list."\n"; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message