summaryrefslogtreecommitdiffstats
path: root/sys/dev/ie/if_ievar.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ie/if_ievar.h')
-rw-r--r--sys/dev/ie/if_ievar.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/ie/if_ievar.h b/sys/dev/ie/if_ievar.h
index 7869951..e588d80 100644
--- a/sys/dev/ie/if_ievar.h
+++ b/sys/dev/ie/if_ievar.h
@@ -67,10 +67,16 @@ struct ie_softc {
int mcast_count;
u_short irq_encoded; /* encoded interrupt on IEE16 */
+
+ struct mtx lock;
};
#define PORT(sc) sc->port
#define MEM(sc) sc->iomem
+#define IE_LOCK(sc) mtx_lock(&(sc)->lock)
+#define IE_UNLOCK(sc) mtx_unlock(&(sc)->lock)
+#define IE_ASSERT_LOCKED(sc) mtx_assert(&(sc)->lock, MA_OWNED)
+
void ie_intr (void *);
int ie_alloc_resources (device_t);
void ie_release_resources (device_t);
OpenPOWER on IntegriCloud