Date: Sat, 20 May 2006 11:15:08 +0800 From: "william wallace" <avalonwallace@gmail.com> To: freebsd-hackers@freebsd.org Subject: Re: misc questions about the device&driver arch Message-ID: <87ab37ab0605192015h363ef74aw23dcc2d97721dea9@mail.gmail.com> In-Reply-To: <87ab37ab0511032030o134b9316j83295dd303e4e44b@mail.gmail.com> References: <87ab37ab0511032030o134b9316j83295dd303e4e44b@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
about devclass_find_internal devclass_find_internal will be called to create a new devclass in such 2 conditions : one is creating a new device , as : if (name) { dc =3D devclass_find_internal(name, 0, TRUE); another is in the function:devclass_add_driver. but ,if a driver 's name is different from the name of any deviceclass in the system ,it just create a new devclass ,and link it self into the parent busdevice's driver link and do nothing .what is the use of the driver at this situation? On 11/4/05, kylin <fierykylin@gmail.com> wrote: > > hello every one :) good day! > i have list the 3 puzzle coming to me in my recent coding reading of free= bsd > 0 > /////////////// > pci bridge dynamic resize > ///////////// > it seems that the device arch of freebsd is similar to what is revealed i= n > window OS. i have read the pcie hotplug tps of windows longhorn ,it is sa= id > that with some hardware mechanisms the pci bridge driver can do global pc= i > resource window reconfiguration.so good to the hotplugin pci device for i= t > avoid prelocating resource for the device . > i wonder ,if the mem /io/irq reconfiguration possible under freebsd .:) > > 1 > ////////////// > is bus_data_generation > ///////// > what idoes bus_data_generation for, is it the generation count for the > device manager tree? > void > bus_data_generation_update(void) > { > bus_data_generation++; > } > > 2 > ////////////// > pci_write_config vs pci_write_config_method > ////////////// > under the source code /dev/pci .there are functions name pci_write_config > (pcivar.h) and pci_write_config_method(pci.c) > they both call the parent method ,though the content is different ,but do= es > that a liitle overlap whit each other? > > > -- > we who r about to die,salute u! --=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?87ab37ab0605192015h363ef74aw23dcc2d97721dea9>