cvs commit: src/sys/dev/bfe if_bfe.c

John Baldwin jhb at freebsd.org
Tue Jul 29 20:16:12 UTC 2008


On Tuesday 29 July 2008 04:49:36 am Pyun YongHyeon wrote:
> yongari     2008-07-29 08:49:36 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/dev/bfe          if_bfe.c 
>   Log:
>   SVN rev 180952 on 2008-07-29 08:49:36Z by yongari
>   
>   Cache PCI vendor/device ids to avoid unnecessary PCI configuration
>   space access in device probe.
>   Also nuke referencing softc in device probe.

pci_get_vendor() and pci_get_device() don't do configuration space accessses, 
they read values cached in the ivars for the device maintained by the PCI bus 
driver.

-- 
John Baldwin


More information about the cvs-all mailing list