diff options
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/am7990.c | 11 | ||||
-rw-r--r-- | sys/dev/ic/am7990var.h | 5 |
2 files changed, 14 insertions, 2 deletions
diff --git a/sys/dev/ic/am7990.c b/sys/dev/ic/am7990.c index d7da2c91f99..0ff01a562e3 100644 --- a/sys/dev/ic/am7990.c +++ b/sys/dev/ic/am7990.c @@ -1,4 +1,4 @@ -/* $OpenBSD: am7990.c,v 1.13 1998/06/24 20:05:03 deraadt Exp $ */ +/* $OpenBSD: am7990.c,v 1.14 1998/09/16 22:41:20 jason Exp $ */ /* $NetBSD: am7990.c,v 1.22 1996/10/13 01:37:19 christos Exp $ */ /*- @@ -53,6 +53,7 @@ #include <sys/errno.h> #include <net/if.h> +#include <net/if_media.h> #ifdef INET #include <netinet/in.h> @@ -918,6 +919,14 @@ am7990_ioctl(ifp, cmd, data) } break; + case SIOCGIFMEDIA: + case SIOCSIFMEDIA: + if (sc->sc_hasifmedia) + error = ifmedia_ioctl(ifp, ifr, &sc->sc_ifmedia, cmd); + else + error = EINVAL; + break; + default: error = EINVAL; break; diff --git a/sys/dev/ic/am7990var.h b/sys/dev/ic/am7990var.h index fa171c1e298..e08a3cc38f8 100644 --- a/sys/dev/ic/am7990var.h +++ b/sys/dev/ic/am7990var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: am7990var.h,v 1.7 1997/08/08 08:05:42 downsj Exp $ */ +/* $OpenBSD: am7990var.h,v 1.8 1998/09/16 22:41:20 jason Exp $ */ /* $NetBSD: am7990var.h,v 1.8 1996/07/05 23:57:01 abrown Exp $ */ /* @@ -89,6 +89,9 @@ struct am7990_softc { void (*sc_hwinit) __P((struct am7990_softc *)); void (*sc_nocarrier) __P((struct am7990_softc *)); + int sc_hasifmedia; + struct ifmedia sc_ifmedia; + void *sc_sh; /* shutdownhook cookie */ u_int16_t sc_conf3; /* CSR3 value */ |