opnsense-src/sys
John Baldwin 6f33eaa5f0 Implement a proper detach method for the PCI-PCI bridge driver.
- Add a pcib_detach() function for the PCI-PCI bridge driver.  It
  tears down the NEW_PCIB and hotplug state including destroying
  resource managers, deleting child devices, and disabling hotplug
  events.
- Add a detach method to the ACPI PCI-PCI bridge driver which calls
  pcib_detach() and then frees the copy of the _PRT interrupt routing
  table.
- Add a detach method to the PCI-Cardbus bridge driver which frees
  the PCI bus resources in addition to calling cbb_detach().
- Explicitly clear any pending hotplug events during attach to ensure
  future events will generate an interrupt.
- If a the Command Completed bit is set in the slot status register
  when the command completion timeout fires, treat it as if the
  command completed and the completion interrupt was just lost rather
  than forcing a detach.
- Don't wait for a Command Completed notification if Command Completion
  interrupts are disabled.  The spec explicitly says no interrupt is
  enabled when clearing CCIE, and on my T400 no interrupt is generated
  when CCIE is changed from cleared to set, either.  In addition, the
  T400 doesn't appear to set the Command Completed bit in the cases
  where it doesn't generate an interrupt, so don't schedule the timer
  either.  (If the CC bit were always set, one could always set the timer
  and rely on the logic of treating CC set as a missed interrupt.)

Reviewed by:	imp (older version)
Differential Revision:	https://reviews.freebsd.org/D6424
2016-05-20 00:03:22 +00:00
..
amd64 Don't repeat the the word 'the' 2016-05-17 12:52:31 +00:00
arm Use OF_prop_free instead of direct call to free(9) 2016-05-18 23:41:58 +00:00
arm64 Define PCI_RES_BUS for NEW_PCIB 2016-05-19 14:00:18 +00:00
boot Fixed memory leak in FDT overlay handling code 2016-05-19 20:51:47 +00:00
bsm
cam Add support for managing Shingled Magnetic Recording (SMR) drives. 2016-05-19 14:08:36 +00:00
cddl add vop_print methods to vnode operatios of various zfsctl node types 2016-05-18 13:21:29 +00:00
compat Add implementation of robust mutexes, hopefully close enough to the 2016-05-17 09:56:22 +00:00
conf Import the 'iflib' API library for network drivers. From the author: 2016-05-18 04:35:58 +00:00
contrib Make subsequent code reachable. 2016-05-15 22:35:11 +00:00
crypto aesni(4): Initialize error before use 2016-04-20 03:05:32 +00:00
ddb Add a small set of logical operators to DDB command language. 2016-05-16 19:42:38 +00:00
dev Implement a proper detach method for the PCI-PCI bridge driver. 2016-05-20 00:03:22 +00:00
fs If a local (AF_LOCAL, AF_UNIX) socket creation (bind) is attempted 2016-05-18 22:23:20 +00:00
gdb
geom Add support for managing Shingled Magnetic Recording (SMR) drives. 2016-05-19 14:08:36 +00:00
gnu [bwn] typo. 2016-05-19 05:06:12 +00:00
i386 atomic: Add testandclear on i386/amd64 2016-05-16 07:19:33 +00:00
isa sys/isa: minor spelling fixes. 2016-05-03 21:51:52 +00:00
kern Adjust the creation of tq_name so it can be freed correctly 2016-05-19 17:14:24 +00:00
kgssapi kgssapi: insignificant spelling fix. 2016-05-03 22:05:03 +00:00
libkern sys: Make use of our rounddown() macro when sys/param.h is available. 2016-04-30 14:41:18 +00:00
mips Exclude BCM from universe build until it compiles again. 2016-05-19 14:19:01 +00:00
modules Kill off ReiserFS as it is no longer supported, for obvious reasons. 2016-05-17 15:36:40 +00:00
net sys/net: more spelling. 2016-05-19 16:28:05 +00:00
net80211 net80211: restore interface state check for IEEE80211_IOC_SCAN_REQ ioctl. 2016-05-19 22:02:03 +00:00
netgraph sys/netgraph: spelling fixes in comments. 2016-04-29 21:25:05 +00:00
netinet Change net.inet.tcp.ecn.enable sysctl mib from a binary off/on 2016-05-19 22:20:35 +00:00
netinet6 Since PFIL can change destination address, use its always actual value 2016-05-19 12:45:20 +00:00
netipsec netipsec: Fix minor style nit 2016-05-10 20:14:11 +00:00
netnatm kernel: use our nitems() macro when it is available through param.h. 2016-04-19 23:48:27 +00:00
netpfil Move protocol state handling code from lookup_dyn_rule_locked() function 2016-05-18 12:53:21 +00:00
netsmb sys/net*: minor spelling fixes. 2016-05-03 18:05:43 +00:00
nfs NFS: spelling fixes on comments. 2016-04-29 16:07:25 +00:00
nfsclient
nfsserver
nlm Remove slightly used const values that can be replaced with nitems(). 2016-04-21 15:38:28 +00:00
ofed Don't repeat the the word 'the' 2016-05-17 12:52:31 +00:00
opencrypto sys/opencrypto: minor spelling fixes. 2016-05-06 23:37:19 +00:00
pc98 Move 'device pci' for the PCI bus driver to the MI NOTES file. 2016-04-29 23:53:55 +00:00
powerpc Use OF_prop_free instead of direct call to free(9) 2016-05-14 20:06:38 +00:00
riscv Eliminate an unused #include. For a brief period of time, _unrhdr.h was 2016-05-13 20:14:41 +00:00
rpc sys/rpc: minor spelling fixes. 2016-05-06 01:49:46 +00:00
security sys/security: minor spelling fixes. 2016-05-06 16:59:04 +00:00
sparc64 Use OF_prop_free instead of direct call to free(9) 2016-05-18 23:39:31 +00:00
sys elf_common.h: add section header flag and dynamic types 2016-05-19 21:04:59 +00:00
teken
tests
tools
ufs Ensure that ftruncate(2) is performed synchronously when file is 2016-05-18 12:03:57 +00:00
vm Clean up the handling of errors from vm_pager_get_pages(). Mostly, this 2016-05-19 19:27:33 +00:00
x86 Add an EARLY_AP_STARTUP option to start APs earlier during boot. 2016-05-14 18:22:52 +00:00
xdr RPC: for pointers replace 0 with NULL. 2016-04-14 17:06:37 +00:00
xen Don't repeat the the word 'the' 2016-05-17 12:52:31 +00:00
Makefile