Date: Sun, 21 May 2006 16:08:00 +0800 From: "william wallace" <avalonwallace@gmail.com> To: "Warner Losh" <imp@bsdimp.com> Cc: "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org> Subject: Re: misc questions about the device&driver arch Message-ID: <87ab37ab0605210108w127a235bue281428f52bbc784@mail.gmail.com> In-Reply-To: <20060521.000729.41671970.imp@bsdimp.com> References: <87ab37ab0605192239n73b7fcdbtbdd5dbd3f1099fc3@mail.gmail.com> <20060520.013546.104050983.imp@bsdimp.com> <87ab37ab0605201942o3e27c46w2ac57261e02a2890@mail.gmail.com> <20060521.000729.41671970.imp@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 5/21/06, Warner Losh <imp@bsdimp.com> wrote: > nope. It may be called once per bus instance per driver, if the bus > is not self-identifying. If the bus is self-idntiying, chances are > that it will not be called. pci never calls its children drivers' > identify routine because it already knows all the children on the bus > and doesn't need the leaf drivers to go find instances of themselves. > the isa bus driver, on the other hand, does call the identify routine > so that pre-plug and play standard device enumeration can happen. > > Warner the defination of self-enumerating 1 what does self-enumerating mean ? 2 does that mean the pci way of looping through configuration space ? 3 does that happen in start time and hotplug time ? 4 pci doesn't need the leaf drivers to go find instances of themselves. does that mean that self-enumerating device system use the top down w= ay , and the non- self-enumerating device system use the down -top way 5 i guest pci hot plug need some magic to identify or emulae(loop pci sons ) BTW There r so many hot plug specifications ,SHPC hotplug ,PCIE hotplug and compaq hotplug and so on , in linux ,they use different driver for different pci bridge so i think for us to implement in freeBSD ,just do 1 by 1:) --=20 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?87ab37ab0605210108w127a235bue281428f52bbc784>