summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pcivar.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2007-03-26 20:18:52 +0000
committerjhb <jhb@FreeBSD.org>2007-03-26 20:18:52 +0000
commit0236cc99b768a2d3425bf954c746f7eace24a26b (patch)
treea608d2e502214caf874677e4817a4ae59cb383ad /sys/dev/pci/pcivar.h
parent764339998b0ac37e74d4476c424e7b75c7383880 (diff)
downloadFreeBSD-src-0236cc99b768a2d3425bf954c746f7eace24a26b.zip
FreeBSD-src-0236cc99b768a2d3425bf954c746f7eace24a26b.tar.gz
Change the VPD code to read the VPD data on-demand when a driver asks for
it via pci_get_vpd_*() rather than always reading it for each device during boot. I've left the tunable so that it can still be turned off if a device driver causes a lockup via a query to a broken device, but devices whose drivers do not use VPD (the vast majority) should no longer result in lockups during boot, and most folks should not need to tweak the tunable now. Tested on: bge(4) Silence from: jmg
Diffstat (limited to 'sys/dev/pci/pcivar.h')
-rw-r--r--sys/dev/pci/pcivar.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/pci/pcivar.h b/sys/dev/pci/pcivar.h
index a075745..0b1b5ad 100644
--- a/sys/dev/pci/pcivar.h
+++ b/sys/dev/pci/pcivar.h
@@ -67,6 +67,7 @@ struct vpd_write {
struct pcicfg_vpd {
uint8_t vpd_reg; /* base register, + 2 for addr, + 4 data */
+ char vpd_cached;
char *vpd_ident; /* string identifier */
int vpd_rocnt;
struct vpd_readonly *vpd_ros;
OpenPOWER on IntegriCloud