diff options
-rw-r--r-- | sys/pci/if_xlreg.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/pci/if_xlreg.h b/sys/pci/if_xlreg.h index 5e1b920..d255752 100644 --- a/sys/pci/if_xlreg.h +++ b/sys/pci/if_xlreg.h @@ -589,8 +589,14 @@ struct xl_softc { struct mtx xl_mtx; }; +#if 0 +/* These are a bit premature. The driver still tries to sleep with locks. */ #define XL_LOCK(_sc) mtx_lock(&(_sc)->xl_mtx) #define XL_UNLOCK(_sc) mtx_unlock(&(_sc)->xl_mtx) +#else +#define XL_LOCK(x) do { } while (0) +#define XL_UNLOCK(x) do { } while (0) +#endif #define xl_rx_goodframes(x) \ ((x.xl_upper_frames_ok & 0x03) << 8) | x.xl_rx_frames_ok |