From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 28 04:36:53 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 785B416A41F for ; Mon, 28 Nov 2005 04:36:53 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF7F743D5A for ; Mon, 28 Nov 2005 04:36:52 +0000 (GMT) (envelope-from fierykylin@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so877311wxc for ; Sun, 27 Nov 2005 20:36:50 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kgILTcVfO/fod4hbk/vgYq0wdFAOT8TNbE8ZAfdWZ1SW8NP4n6PRoZqxJxunfZOsRL2AOL7BcquB+pytnZ1jWX3U5CfeRfpKphlMaHR3FwI9ZZRSaVnBkFzrJzaWaThoiUZOX5BIiTGtqRJZvwjLVa13c1uDKzbEL1EGgZp3jSk= Received: by 10.70.46.13 with SMTP id t13mr821130wxt; Sun, 27 Nov 2005 20:36:50 -0800 (PST) Received: by 10.70.18.16 with HTTP; Sun, 27 Nov 2005 20:36:50 -0800 (PST) Message-ID: <87ab37ab0511272036t60b22769sff7a201d4d3cf8f9@mail.gmail.com> Date: Mon, 28 Nov 2005 12:36:50 +0800 From: kylin To: "M. Warner Losh" , freebsd-hackers@freebsd.org In-Reply-To: <20051127.164001.61158282.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <87ab37ab0511261855lfc5d062h7d394f25bcd00ec0@mail.gmail.com> <20051127.164001.61158282.imp@bsdimp.com> Cc: Subject: Re: to list all the devices in freebsd &definition analyse X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2005 04:36:53 -0000 On 11/28/05, M. Warner Losh wrote: > In message: <87ab37ab0511261855lfc5d062h7d394f25bcd00ec0@mail.gmail.com> > kylin writes: > : i can use pciconf in freebsd to list the pci device ,but how to list > : the device tree in freeebsd? > > devinfo -v devinfo is different with pciconf devinfo depends on the sysctl mechanism while pciconf ioctl the /dev/pci who will directly read the pci configuration space > devclass is the information about all instances of the device. > device_t is an instance of the device. The only difference between a > bus and a device is that a bus has children. > > Warner > but pcib and cbb still have pci or cardbus as there children ,and pcib and cbb is bridge rather than bus :( i am puzzle with the definition:( -- we who r about to die,salute u!