Re: puzzle about the pci_add_child

2005-11-28 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> kylin <[EMAIL PROTECTED]> writes: : 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 ?

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