diff options
author | jhb <jhb@FreeBSD.org> | 2005-10-27 21:22:58 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2005-10-27 21:22:58 +0000 |
commit | 887d35215c9c56cb9920586a2289c6af81cbc16a (patch) | |
tree | 060cf2e762d57932106fa46f97dcf77a0cbce812 /sys/pci/if_wbreg.h | |
parent | 6034c52fb7b00595c543066768d02175be7400c3 (diff) | |
download | FreeBSD-src-887d35215c9c56cb9920586a2289c6af81cbc16a.zip FreeBSD-src-887d35215c9c56cb9920586a2289c6af81cbc16a.tar.gz |
Fixup locking and mark MPSAFE.
- Add locked variants of init() and start().
- Use callout_*() to manage callout.
- Test IFF_DRV_RUNNING rather than IFF_UP in wb_intr() to see if we are
still active when an interrupt comes in.
I couldn't find any of these cards anywhere to test on myself, and google
turns up references to FreeBSD and OpenBSD manpages for this driver when
trying to locate a card that way. I'm not sure anyone actually uses these
cards with FreeBSD.
Tested by: NO ONE (despite repeated requests)
Diffstat (limited to 'sys/pci/if_wbreg.h')
-rw-r--r-- | sys/pci/if_wbreg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pci/if_wbreg.h b/sys/pci/if_wbreg.h index 95ecbef..8a5b2cd 100644 --- a/sys/pci/if_wbreg.h +++ b/sys/pci/if_wbreg.h @@ -376,7 +376,7 @@ struct wb_softc { caddr_t wb_ldata_ptr; struct wb_list_data *wb_ldata; struct wb_chain_data wb_cdata; - struct callout_handle wb_stat_ch; + struct callout wb_stat_callout; struct mtx wb_mtx; }; |