opnsense-src/sys/dev/twe
John Baldwin 06e8730c59 Add locking to the twe(4) driver and make it MPSAFE:
- Add per-controller configuration (sx) and I/O (mutex) locks.  The
  configuration lock protects the relationship of volumes and drives
  while the I/O lock protects access to the controller's registers and
  the main I/O path.
- Remove some checks for M_WAITOK malloc()'s failing.
- Remove the explicit bus space tag/handle from the softc and use
  bus_*() rather than bus_space_*().
- Reuse the existing new-bus sysctl context instead of creating a
  new one.
- Remove compat shims for FreeBSD 4.x.
- Use pci_enable_busmaster() rather than doing it by hand, and rely
  on bus_alloc_resource() to enable PCI I/O decoding.

Tested by:	Mike Tancsa  mike sentex net
Reviewed by:	scottl (partially)
MFC after:	1 month
2012-08-13 21:29:34 +00:00
..
twe.c Add locking to the twe(4) driver and make it MPSAFE: 2012-08-13 21:29:34 +00:00
twe_compat.h Add locking to the twe(4) driver and make it MPSAFE: 2012-08-13 21:29:34 +00:00
twe_freebsd.c Add locking to the twe(4) driver and make it MPSAFE: 2012-08-13 21:29:34 +00:00
twe_tables.h
tweio.h Undoing recent changes to make 3ware's i386 tools work on amd64, since there are 2005-02-17 19:05:42 +00:00
twereg.h 1. Fixed potential problem that would cause out-of-order requests in twe_startio. 2004-05-12 04:10:37 +00:00
twevar.h Add locking to the twe(4) driver and make it MPSAFE: 2012-08-13 21:29:34 +00:00