freebsd-skq/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_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
twe.c Add locking to the twe(4) driver and make it MPSAFE: 2012-08-13 21:29:34 +00:00
tweio.h
twereg.h
twevar.h Add locking to the twe(4) driver and make it MPSAFE: 2012-08-13 21:29:34 +00:00