]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add locking to the adw(4) driver and mark it MPSAFE.
authorJohn Baldwin <jhb@FreeBSD.org>
Mon, 15 Oct 2012 15:26:00 +0000 (15:26 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Mon, 15 Oct 2012 15:26:00 +0000 (15:26 +0000)
commita25d65b0648f7ec24390e9867ebe73a0e536a1ed
treed219f6feff56e89387eee7cbcb1e7e9763327e95
parentfee3ee9b2bd8c6908b90f01b2b8e1ad029bc0aba
Add locking to the adw(4) driver and mark it MPSAFE.
- Use device_printf() and device_get_nameunit() instead of adw_name().
- Remove use of explicit bus space handles and tags.
- Use pci_enable_busmaster() rather than frobbing the PCI command register
  directly.
- Use the softc provided by new-bus rather than allocating a new one.

Tested by: no one
sys/dev/advansys/adw_pci.c
sys/dev/advansys/adwcam.c
sys/dev/advansys/adwlib.c
sys/dev/advansys/adwlib.h
sys/dev/advansys/adwvar.h