aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/eqos
diff options
context:
space:
mode:
authorSøren Schmidt <sos@FreeBSD.org>2022-12-23 05:28:50 +0000
committerGanbold Tsagaankhuu <ganbold@FreeBSD.org>2022-12-23 05:28:50 +0000
commit5ba0691da9e2e252411e5de3b58295f64fd8fefe (patch)
tree6f464d6ddbdd492e45f2510f0887a32767896b6d /sys/dev/eqos
parent974be51b3f6070f9aae02e115ea6099f90bc9175 (diff)
downloadsrc-5ba0691da9e2e252411e5de3b58295f64fd8fefe.tar.gz
src-5ba0691da9e2e252411e5de3b58295f64fd8fefe.zip
Diffstat (limited to 'sys/dev/eqos')
-rw-r--r--sys/dev/eqos/if_eqos.c4
-rw-r--r--sys/dev/eqos/if_eqos_fdt.c2
-rw-r--r--sys/dev/eqos/if_eqos_if.m2
3 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/eqos/if_eqos.c b/sys/dev/eqos/if_eqos.c
index cacc51ef97b5..1eba702bb524 100644
--- a/sys/dev/eqos/if_eqos.c
+++ b/sys/dev/eqos/if_eqos.c
@@ -216,7 +216,7 @@ eqos_miibus_statchg(device_t dev)
WR4(sc, GMAC_MAC_CONFIGURATION, reg);
- EQOS_SET_SPEED(dev, IFM_SUBTYPE(mii->mii_media_active));
+ IF_EQOS_SET_SPEED(dev, IFM_SUBTYPE(mii->mii_media_active));
WR4(sc, GMAC_MAC_1US_TIC_COUNTER, (sc->csr_clock / 1000000) - 1);
}
@@ -1143,7 +1143,7 @@ eqos_attach(device_t dev)
}
- if ((error = EQOS_INIT(dev)))
+ if ((error = IF_EQOS_INIT(dev)))
return (error);
mtx_init(&sc->lock, "eqos lock", MTX_NETWORK_LOCK, MTX_DEF);
diff --git a/sys/dev/eqos/if_eqos_fdt.c b/sys/dev/eqos/if_eqos_fdt.c
index 020aeb435285..5aa5e26a85fd 100644
--- a/sys/dev/eqos/if_eqos_fdt.c
+++ b/sys/dev/eqos/if_eqos_fdt.c
@@ -243,7 +243,7 @@ static device_method_t eqos_fdt_methods[] = {
DEVMETHOD(device_probe, eqos_fdt_probe),
/* EQOS interface */
- DEVMETHOD(eqos_init, eqos_fdt_init),
+ DEVMETHOD(if_eqos_init, eqos_fdt_init),
DEVMETHOD_END
};
diff --git a/sys/dev/eqos/if_eqos_if.m b/sys/dev/eqos/if_eqos_if.m
index 0f56ce76c960..59eea33afa0e 100644
--- a/sys/dev/eqos/if_eqos_if.m
+++ b/sys/dev/eqos/if_eqos_if.m
@@ -28,7 +28,7 @@
# $Id: eqos_if.m 921 2022-08-09 18:38:11Z sos $
#
-INTERFACE eqos;
+INTERFACE if_eqos;
CODE {
static int