Add locking to mcd(4) and mark MPSAFE.
authorjhb <jhb@FreeBSD.org>
Tue, 18 Nov 2014 21:51:01 +0000 (21:51 +0000)
committerjhb <jhb@FreeBSD.org>
Tue, 18 Nov 2014 21:51:01 +0000 (21:51 +0000)
commite6087752024249ef49782dacc4c331dbb7f889a7
tree20eebc3ca70654ed700117c376a272441d945e7a
parent70411541066ff7cf1b5375741af3dc40a9cb38ce
Add locking to mcd(4) and mark MPSAFE.
- Actually use existing per-softc mutex.
- Use mutex in cdev routines and remove D_NEEDGIANT.
- Use callout(9) instead of timeout(9).
- Don't check for impossible conditions (e.g. MCDINIT being clear).
- Remove critical_enter/exit when sending a PIO command.
- Use bus_*() instead of bus_space_*().

Tested by: no one
sys/dev/mcd/mcd.c
sys/dev/mcd/mcd_isa.c
sys/dev/mcd/mcdvar.h