Date: Mon, 28 Nov 2005 12:36:50 +0800 From: kylin <fierykylin@gmail.com> To: "M. Warner Losh" <imp@bsdimp.com>, freebsd-hackers@freebsd.org Subject: Re: to list all the devices in freebsd &definition analyse Message-ID: <87ab37ab0511272036t60b22769sff7a201d4d3cf8f9@mail.gmail.com> In-Reply-To: <20051127.164001.61158282.imp@bsdimp.com> References: <87ab37ab0511261855lfc5d062h7d394f25bcd00ec0@mail.gmail.com> <20051127.164001.61158282.imp@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 11/28/05, M. Warner Losh <imp@bsdimp.com> wrote: > In message: <87ab37ab0511261855lfc5d062h7d394f25bcd00ec0@mail.gmail.com> > kylin <fierykylin@gmail.com> 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!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87ab37ab0511272036t60b22769sff7a201d4d3cf8f9>