From owner-freebsd-questions@FreeBSD.ORG Fri Aug 4 00:29:57 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E33C16A4DA for ; Fri, 4 Aug 2006 00:29:57 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D1A843D6A for ; Fri, 4 Aug 2006 00:29:53 +0000 (GMT) (envelope-from freebsd@hub.org) Received: from localhost (wm.hub.org [200.46.204.128]) by hub.org (Postfix) with ESMTP id 17F45291B0D; Thu, 3 Aug 2006 21:29:48 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 19440-07; Fri, 4 Aug 2006 00:29:53 +0000 (UTC) Received: from ganymede.hub.org (blk-224-179-167.eastlink.ca [24.224.179.167]) by hub.org (Postfix) with ESMTP id F081B291B05; Thu, 3 Aug 2006 21:29:46 -0300 (ADT) Received: by ganymede.hub.org (Postfix, from userid 1027) id 078925C64A; Thu, 3 Aug 2006 21:29:56 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id 00CD75C49A; Thu, 3 Aug 2006 21:29:55 -0300 (ADT) Date: Thu, 3 Aug 2006 21:29:55 -0300 (ADT) From: User Freebsd To: Antony Mawer In-Reply-To: <44D29220.1000807@mawer.org> Message-ID: <20060803212521.J25268@ganymede.hub.org> References: <20060728164526.E27679@ganymede.hub.org> <17615.30414.314802.792740@jerusalem.litteratus.org> <20060801223754.U27679@ganymede.hub.org> <20060801230301.Q27679@ganymede.hub.org> <44D09F46.6020300@dial.pipex.com> <44D0F2FE.9020507@dial.pipex.com> <20060802203604.A6529@ganymede.hub.org> <44D153D0.9000304@webanoide.org> <87wt9qzh2i.fsf@photon.homelinux.org> <20060803011653.G6529@ganymede.hub.org> <44D1A866.2030206@mawer.org> <20060803154705.X6529@ganymede.hub.org> <44D29220.1000807@mawer.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Xiao-Yong Jin , freebsd-questions@freebsd.org Subject: Re: Gotta start somewhere ... how many of us are really out there? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Aug 2006 00:29:57 -0000 On Fri, 4 Aug 2006, Antony Mawer wrote: > On 4/08/2006 4:58 AM, User Freebsd wrote: >> Getting a list of devices is actually pretty easy, and I've tried this on >> my 4.x machines also, so it isn't something that will be a problem on older >> versions: >> >> # pciconf -l >> chip0@pci0:0:0: class=0x060000 card=0x00000000 chip=0x700c1022 rev=0x20 >> hdr=0x00 > ... >> And, more specifically, we can get: >> >> # pciconf -l -v >> asr0@pci0:9:0: class=0x010400 card=0xc0351044 chip=0xa5111044 rev=0x01 >> hdr=0x00 >> vendor = 'Adaptec (Formerly: Distributed Processing Technology >> (DPT))' >> device = 'Raptor SmartRAID Controller' >> class = mass storage >> subclass = RAID > > All of the expanded 'vendor', 'device', 'class' and 'subclass' information is > present in the non -v version of the command output. The numbers shown > earlier can be used to derive the text information: > > class=0x010400 > determines the class/subclass lines, using the table from here: > http://fxr.watson.org/fxr/source/dev/pci/pci.c#L1340 > > card=0xc0351044 chip=0xa5111044 > these make up the vendor and device lines, using the list in > /usr/share/misc/pci_vendors (which is derived from the PCIDEVS.TXT > listing). > > The last 4 hex digits of the card and chip lines are the vendor ID > while the first 4 are the device ID. The card is often given by > the vendor, while the chip identifies the actual part it uses to > implement functionality. For instance, a Netcomm ethernet NIC may > use a Realtek 8139 chip... so chip gives us the fact it's > essentially a generic Realtek chipset, while the card tells us the > vendor who manufactured the card & perhaps their name for it. > > In short, there's no reason to have to transmit all the text names back to > any server -- this can all be resolved at the server end, I was thinking of that ... my concern, and it may be totally invalid, but is it guaranteed to always translate the same? ie: fxp0@pci2:8:0: class=0x020000 card=0x10408086 chip=0x12298086 rev=0x10 hdr=0x00 vendor = 'Intel Corporation' device = '82550/1/7/8/9 EtherExpress PRO/100(B) Ethernet Adapter' class = network subclass = ethernet Will that always translate the same regardless of running 4.x vs 5.x vs ... ? If so, you are right, that does greatly simplify things ... I just wasn't 100% certain ... ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664