summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pcib_private.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2016-05-17 19:48:28 +0000
committerjhb <jhb@FreeBSD.org>2016-05-17 19:48:28 +0000
commite877de95911b642940a838c49ce449fa2308e65b (patch)
tree76cf30d1c266060adc6caccd543367273b713125 /sys/dev/pci/pcib_private.h
parenteab5a1b232d7b52c3f39a7491ef8ed57acd7ac84 (diff)
downloadFreeBSD-src-e877de95911b642940a838c49ce449fa2308e65b.zip
FreeBSD-src-e877de95911b642940a838c49ce449fa2308e65b.tar.gz
Rework managing hotplug commands with command completions.
Previously the command completion interrupt would post any pending command immediately before pcib_pcie_hotplug_update() had been run to inspect the current status. Now, the command completion interrupt merely clears the flag and stops the timer assuming that the caller is always going to call pcib_pcie_hotplug_update() to generate the next hotplug command if one is needed. While here, fix a bug for systems with command completion where the old (existing) value was written to the slot control register instead of the new value. This fixes the complaint about a missing hotplug interrupt on my T400. Differential Revision: https://reviews.freebsd.org/D6363
Diffstat (limited to 'sys/dev/pci/pcib_private.h')
-rw-r--r--sys/dev/pci/pcib_private.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/pci/pcib_private.h b/sys/dev/pci/pcib_private.h
index 7d43e60..2d805a9 100644
--- a/sys/dev/pci/pcib_private.h
+++ b/sys/dev/pci/pcib_private.h
@@ -134,8 +134,6 @@ struct pcib_softc
uint16_t pcie_slot_sta;
uint32_t pcie_link_cap;
uint32_t pcie_slot_cap;
- uint16_t pcie_pending_link_ctl_mask;
- uint16_t pcie_pending_link_ctl_val;
struct resource *pcie_irq;
void *pcie_ihand;
struct task pcie_hp_task;
OpenPOWER on IntegriCloud