aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/snc
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/snc')
-rw-r--r--sys/dev/snc/dp83932.c6
-rw-r--r--sys/dev/snc/dp83932var.h4
2 files changed, 7 insertions, 3 deletions
diff --git a/sys/dev/snc/dp83932.c b/sys/dev/snc/dp83932.c
index 07218535535a..bb92c96cc440 100644
--- a/sys/dev/snc/dp83932.c
+++ b/sys/dev/snc/dp83932.c
@@ -256,7 +256,7 @@ sncioctl(ifp, cmd, data)
{
struct ifreq *ifr;
struct snc_softc *sc = ifp->if_softc;
- int s = splnet(), err = 0;
+ int s = splhardnet(), err = 0;
int temp;
switch (cmd) {
@@ -398,7 +398,7 @@ sncinit(xsc)
/* already running */
return;
- s = splnet();
+ s = splhardnet();
NIC_PUT(sc, SNCR_CR, CR_RST); /* DCR only accessable in reset mode! */
@@ -463,7 +463,7 @@ sncstop(sc)
struct snc_softc *sc;
{
struct mtd *mtd;
- int s = splnet();
+ int s = splhardnet();
/* stick chip in reset */
NIC_PUT(sc, SNCR_CR, CR_RST);
diff --git a/sys/dev/snc/dp83932var.h b/sys/dev/snc/dp83932var.h
index 2431bb704628..fcc6a2245284 100644
--- a/sys/dev/snc/dp83932var.h
+++ b/sys/dev/snc/dp83932var.h
@@ -34,7 +34,11 @@
#endif
/* NetBSD Emulation */
+#ifdef __NetBSD__
+#define splhardnet splnet
+#endif
#ifdef __FreeBSD__
+#define splhardnet splimp
#ifndef NBPG
#define NBPG PAGE_SIZE
#endif