From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 27 03:09:24 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 9BD2916A41F; Sun, 27 Nov 2005 03:09:24 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FE6543D58; Sun, 27 Nov 2005 03:09:24 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.3/8.13.3) with ESMTP id jAR39NA1056033; Sat, 26 Nov 2005 19:09:23 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.3/8.13.3/Submit) id jAR39M6U056032; Sat, 26 Nov 2005 19:09:23 -0800 (PST) (envelope-from jmg) Date: Sat, 26 Nov 2005 19:09:22 -0800 From: John-Mark Gurney To: kylin Message-ID: <20051127030922.GH885@funkthat.com> Mail-Followup-To: kylin , freebsd-questions@freebsd.org, "freebsd-hackers@freebsd.org" References: <87ab37ab0511261855lfc5d062h7d394f25bcd00ec0@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87ab37ab0511261855lfc5d062h7d394f25bcd00ec0@mail.gmail.com> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: "freebsd-hackers@freebsd.org" , freebsd-questions@freebsd.org 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 Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2005 03:09:24 -0000 kylin wrote this message on Sun, Nov 27, 2005 at 10:55 +0800: > I > i can use pciconf in freebsd to list the pci device ,but how to list > the device tree in freeebsd? devinfo.... > II > i got some anornymous definition on devclass driver and device that > differ from the current man page > i think they seems reasonable but how can devclass Represents a bus > or leaf device driver while driver still Represents a bus or > leaf-level end-device driver ? > and device is just a instance of bus or (leaf) end-device.?? > is it oop? can the disigner of the arch show us a word?:) read device(9).. and devclass(9).. I'm not quite sure what you are asking here, but take a look at a bunch of the other drivers... My zoran driver (http://people.freebsd.org/~jmg/zoran.html) is both a driver, and a bus for i2c... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."