Re: to list all the devices in freebsd definition analyse

2005-11-28 Thread kylin
my god ,mercy me On 11/28/05, Dag-Erling Smørgrav [EMAIL PROTECTED] wrote: kylin [EMAIL PROTECTED] writes: M. Warner Losh [EMAIL PROTECTED] writes: devinfo -v devinfo is different with pciconf devinfo depends on the sysctl mechanism while pciconf ioctl the /dev/pci who will directly

puzzle about the pci_add_child

2005-11-28 Thread kylin
i am reading the pci code of freeBSD 53 ,and come to the puzzle of pci_add_child. 1 why should we =09pci_cfg_save(dinfo-cfg.dev, dinfo, 0); after we have already fill the cfg in pci_read_device ? 2 what 's the purpose of the function couple pci_cfg_save(dinfo-cfg.dev, dinfo,

Re: dump causing system idle

2005-11-27 Thread kylin
i am using a Virtual PC as the Virtual machine. and today ,i reinstall a new slice of freebsd 53 and redo the same operation as show in the section :dump the kernel in freebsd developer handbook : dumpdev dumpdir dumpon swappartition On panic : Fatal trap 12: page fault while in kernel mode fault

Re: to list all the devices in freebsd definition analyse

2005-11-27 Thread kylin
On 11/28/05, M. Warner Losh [EMAIL PROTECTED] wrote: In message: [EMAIL PROTECTED] kylin [EMAIL PROTECTED] 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

dump causing system idle

2005-11-26 Thread kylin
folks: i am in terrible trouble when trying to dumping my kernel module 's fault i add dump device and dump dir in rc.conf and dumpon ... but when the first reboot after the panicdumpon freebsd 53 idles on WARNING: / was not properly dismounted start_init: trying /sbin/init

to list all the devices in freebsd definition analyse

2005-11-26 Thread kylin
I i can use pciconf in freebsd to list the pci device ,but how to list the device tree in freeebsd? 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

sysinit how does nexus find legacy's driver?

2005-11-21 Thread kylin
The nexus_attach(device_t dev) will call int bus_generic_probe(device_t dev) { devclass_t dc = dev-devclass; driverlink_t dl; TAILQ_FOREACH(dl, dc-drivers, link) {//here configure has point out the relation? DEVICE_IDENTIFY(dl-driver, dev);//here refer to

Re: misc questions about the devicedriver arch

2005-11-10 Thread kylin
other bridge because nexus level of resource view is ===continuouswith NO hole , can i extend the physical address space beyond the boot time locate range to PCI host bridge ? On 11/6/05, John Baldwin [EMAIL PROTECTED] wrote: On Sunday 06 November 2005 06:14 am, kylin wrote: On 11/6/05

Re: misc questions about the devicedriver arch

2005-11-06 Thread kylin
On 11/6/05, M. Warner Losh [EMAIL PROTECTED] wrote: In message: [EMAIL PROTECTED] kylin [EMAIL PROTECTED] writes: : /// : pci bridge dynamic resize : / : it seems that the device arch of freebsd is similar to what is revealed in : window OS. i have read

Re: misc questions about the devicedriver arch

2005-11-06 Thread kylin
On 11/6/05, John Baldwin [EMAIL PROTECTED] wrote: On Sunday 06 November 2005 06:14 am, kylin wrote: On 11/6/05, M. Warner Losh [EMAIL PROTECTED] wrote: In message: [EMAIL PROTECTED] kylin [EMAIL PROTECTED] writes: : /// : pci bridge dynamic resize

misc questions about the devicedriver arch

2005-11-04 Thread kylin
hello every one :) good day! i have list the 3 puzzle coming to me in my recent coding reading of freebsd 0 /// pci bridge dynamic resize / it seems that the device arch of freebsd is similar to what is revealed in window OS. i have read the pcie hotplug tps of windows

Enumerating devices and hardware conf from userland

2005-08-24 Thread kylin
I'm developping a tool running in userland (root) (a command line tools) for enumerating all devices present on the machine : This tool must scan all hardware buses : pci, but usb, firewire, ide, etc and retreive devices states : configure, not configured, handle by a driver, not handle by