Re: puzzle about the pci_add_child
From: M. Warner Losh (imp_at_bsdimp.com)
Date: 11/29/05
- Previous message: John-Mark Gurney: "Re: to list all the devices in freebsd &definition analyse"
- In reply to: kylin: "puzzle about the pci_add_child"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 28 Nov 2005 22:59:48 -0700 (MST) To: fierykylin@gmail.com
In message: <87ab37ab0511280850y1bca554n1da9b11c321be34b@mail.gmail.com>
kylin <fierykylin@gmail.com> 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 ?
It hasn't been completely filled in by pci_read_device.
: 2
: what 's the purpose of the function couple
: pci_cfg_save(dinfo->cfg.dev, dinfo, 0);
: pci_cfg_restore(dinfo->cfg.dev, dinfo)
: below is the function ,thank u
Power state gets set to D0 as a side effect so that the device is live
for the probe.
Warner
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
- Previous message: John-Mark Gurney: "Re: to list all the devices in freebsd &definition analyse"
- In reply to: kylin: "puzzle about the pci_add_child"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]