Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Mar 2011 13:22:12 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/dev/pci pci.c pci_user.c pcireg.h pcivar.h
Message-ID:  <201103311322.p2VDMY0x079389@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

jhb         2011-03-31 13:22:12 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/pci          pci.c pci_user.c pcireg.h pcivar.h 
  Log:
  SVN rev 220195 on 2011-03-31 13:22:12Z by jhb
  
  Explicitly track the state of all known BARs for each PCI device.  The PCI
  bus driver will now remember the size of a BAR obtained during the initial
  bus scan and use that size when doing lazy resource allocation rather than
  resizing the BAR.  The bus driver will now also report unallocated BARs to
  userland for display by 'pciconf -lb'.  Psuedo-resources that are not BARs
  (such as the implicit I/O port resources for master/slave ATA controllers)
  will no longer be listed as BARs in 'pciconf -lb'.  During resume, BARs are
  restored from their new saved state instead of having the raw registers
  saved and restored across resume.  This also fixes restoring BARs at
  unusual loactions if said BAR has been allocated by a driver.
  
  Add a constant for the offset of the ROM BIOS BAR in PCI-PCI bridges and
  properly handle ROM BIOS BARs in PCI-PCI bridges.  The PCI bus now also
  properly handles the lack of a ROM BIOS BAR in a PCI-Cardbus bridge.
  
  Tested by:      jkim
  
  Revision  Changes    Path
  1.417     +153 -49   src/sys/dev/pci/pci.c
  1.30      +6 -47     src/sys/dev/pci/pci_user.c
  1.80      +1 -0      src/sys/dev/pci/pcireg.h
  1.91      +12 -3     src/sys/dev/pci/pcivar.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103311322.p2VDMY0x079389>