Date: Wed, 6 Aug 2003 12:21:39 +0100 From: Darren <darren@dazdaz.org> To: "freebsd-hardware@freebsd.org" <freebsd-hardware@freebsd.org> Subject: 3c900 NIC statistics Message-ID: <3110704552.20030806122139@dazdaz.org>
next in thread | raw e-mail | index | archive | help
Hi, I would like to dump all possible statistics for my 3Com NIC. $ sudo /usr/X11R6/bin/scanpci | grep -1 3Com pci bus 0x0000 cardnum 0x0d function 0x00: vendor 0x10b7 device 0x9001 3Com Corporation 3c900 Combo [Boomerang] $ sudo pciconf -l | grep xl0 xl0@pci0:13:0: class=0x020000 card=0x00000000 chip=0x900110b7 rev=0x00 hdr=0x00 Ideally i'd like to be able to find out firmware version, which interface port is active and all the rest of the settings as i've yet to find a FreeBSD program that will tell me these details. This the driver code. /usr/src/sys/pci/if_xl.c /usr/src/sys/pci/if_xlreg.h I would presume it's a case of reading the structure, finding the offset and feeding it into pcitweak. This is the bit where I get lost, is my approach correct or am I off? If so why and can anyone help me to decode this some more, it's proving to be an interesting learning exercise. $ sudo /usr/X11R6/bin/pcitweak -r 00:0d:0 60 Ultimately this could turn into a useful 3Com diagnostic program. One day I would like to be able to understand how to change some of these NIC options without booting to a DOS bootdisk although i'm not sure if a reboot would be required or not after a change had been made. -- Best regards, Darren mailto:darren@dazdaz.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3110704552.20030806122139>