From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 13 20:19:23 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6BBFA6CE; Mon, 13 Jan 2014 20:19:23 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 44CC0135E; Mon, 13 Jan 2014 20:19:23 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 44432B9A0; Mon, 13 Jan 2014 15:19:22 -0500 (EST) From: John Baldwin To: freebsd-drivers@freebsd.org, Nomad Esst Subject: Re: Access pci devices' serial numbers programmatically Date: Mon, 13 Jan 2014 13:49:06 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20130906; KDE/4.5.5; amd64; ; ) References: <1389515545.51283.YahooMailNeo@web162704.mail.bf1.yahoo.com> In-Reply-To: <1389515545.51283.YahooMailNeo@web162704.mail.bf1.yahoo.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201401131349.06456.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 13 Jan 2014 15:19:22 -0500 (EST) Cc: "freebsd-hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jan 2014 20:19:23 -0000 On Sunday, January 12, 2014 3:32:25 am Nomad Esst wrote: > Hi list > Any experiences on how to do so? Please tell me if you know how can I do that? There are methods available to query VPD data in dev/pci/pcivar.h if the serial number is stored in VPD (specifically you can call pci_get_vpd_readonly()). -- John Baldwin