Date: Mon, 02 Oct 2000 08:15:22 -0700 From: "Kevin Oberman" <oberman@es.net> To: Lee Ann Goldstein <lgoldste@leeann.snedmail.com> Cc: stable@FreeBSD.ORG Subject: Re: A new file for the base system? Message-ID: <200010021515.e92FFMr11178@ptavv.es.net> In-Reply-To: Your message of "Sat, 30 Sep 2000 13:06:40 PDT." <200009302006.NAA11982@leeann.snedmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Thanks for the scripts, but Mark's seems to work a bit better than yours, although yours looks nicer. You script seems to miss several IRQs including my Ethernet and my sound card. Mark's output: atapci0: irq 0 atkbd0: irq 1 sio1 irq 3 sio0 irq 4 fdc0: irq 6 ppc0: irq 7 pcm0: irq 9 xl0: irq 10 pci1: irq 11 psm0: irq 12 ata0: irq 14 ata1: irq 15 Your output: atkbd0 irq 1 sio1 irq 3 sio0 irq 4 fdc0 irq 6 ppc0 irq 7 psm0 irq 12 I can understand "atapci0: irq 0" being missing, but pcm0: irq 9 xl0: irq 10 pci1: irq 11 ata0: irq 14 ata1: irq 15 all are legit. I'm not a sed person and, while Mark's sed script was pretty clear, yours is just a bit beyond me. Could this be related to the fact that I am running 4.1-Stable? R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 > Date: Sat, 30 Sep 2000 13:06:40 -0700 > From: Lee Ann Goldstein <lgoldste@leeann.snedmail.com> > Sender: owner-freebsd-stable@FreeBSD.ORG > > I decided I wanted to see the pci assignments as well, and thought I'd > make the output a little prettier while I was at it, so I "sliced et > diced" a little further... > > find_irq.sh > ----------- > #!/bin/sh > dmesg | \ > sed -n -f find_irq.sed | \ > sed -e 's/ [0-9]$/ &/' -e 's/://' | \ > sort -n +2 -3 > > find_irq.sed > ------------ > /irq [0-9][0-9]* on pci/ s/\(^[a-z0-9]*[: ]\).*\(irq [0-9][0-9]*\).*\(pci[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)/\1 \2 \3/p > /pci/b > s/\(^[a-z0-9]*[: ]\).*\(irq [0-9][0-9]*\).*/\1 \2/p > > (those are tabs after the "\1"s, and that first substitution command > wraps to the next line. I couldn't figure out a way to split it for > readability that wouldn't risk introducing worse errors than letting > it wrap might) > > For my system (still at 3.4-R), this produces: > > atkbd0 irq 1 > sio1 irq 3 > sio0 irq 4 > pcm1 irq 5 > fdc0 irq 6 > ppc0 irq 7 > adv0 irq 10 pci0.10.0 > fxp0 irq 10 pci0.9.0 > uhci0 irq 10 pci0.7.2 > vga0 irq 11 pci1.0.0 > psm0 irq 12 > wdc0 irq 14 > wdc1 irq 15 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010021515.e92FFMr11178>