Re: restoring PCI config space

From: John Baldwin <jhb_at_freebsd.org>
Date: Wed, 7 Feb 2007 12:12:06 -0500
On Wednesday 31 January 2007 12:08, Scott Long wrote:
> Andrew Gallatin wrote:
> > Scott Long writes:
> >  > I need to do the same thing, and I concluded that pci_cfg_restore needs
> >  > to be exported out via a DEVMETHOD.  It might also be useful to export
> > 
> > Hurray!  Do you plan to do this soon?
> > 
> >  > a pci_cfg_save function.
> > 
> > Doesn't the config space get saved in pci_add_child?
> > 
> > Drew
> 
> Wouldn't you want to preserve driver-local changes that are made to the
> config space?  Things like the busmaster enable bit comes to mind.

If you use 'pci_enable_busmaster()' then that updates the copy in the dinfo.

-- 
John Baldwin
Received on Wed Feb 07 2007 - 16:37:44 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:05 UTC