Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Rename ifm to ife for struct ifmedia_entry *. No ...
details: https://anonhg.NetBSD.org/src/rev/e21dfafec5ae
branches: trunk
changeset: 465795:e21dfafec5ae
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed Dec 04 08:12:03 2019 +0000
description:
Rename ifm to ife for struct ifmedia_entry *. No functional change.
diffstat:
sys/dev/ic/gem.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (44 lines):
diff -r d7f1c21ae22f -r e21dfafec5ae sys/dev/ic/gem.c
--- a/sys/dev/ic/gem.c Wed Dec 04 07:49:39 2019 +0000
+++ b/sys/dev/ic/gem.c Wed Dec 04 08:12:03 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gem.c,v 1.121 2019/09/13 07:55:06 msaitoh Exp $ */
+/* $NetBSD: gem.c,v 1.122 2019/12/04 08:12:03 msaitoh Exp $ */
/*
*
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.121 2019/09/13 07:55:06 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.122 2019/12/04 08:12:03 msaitoh Exp $");
#include "opt_inet.h"
@@ -246,7 +246,7 @@
struct mii_data *mii = &sc->sc_mii;
bus_space_tag_t t = sc->sc_bustag;
bus_space_handle_t h = sc->sc_h1;
- struct ifmedia_entry *ifm;
+ struct ifmedia_entry *ife;
int i, error, phyaddr;
uint32_t v;
char *nullbuf;
@@ -559,11 +559,11 @@
* If we support GigE media, we support jumbo frames too.
* Unless we are Apple.
*/
- TAILQ_FOREACH(ifm, &mii->mii_media.ifm_list, ifm_list) {
- if (IFM_SUBTYPE(ifm->ifm_media) == IFM_1000_T ||
- IFM_SUBTYPE(ifm->ifm_media) == IFM_1000_SX ||
- IFM_SUBTYPE(ifm->ifm_media) == IFM_1000_LX ||
- IFM_SUBTYPE(ifm->ifm_media) == IFM_1000_CX) {
+ TAILQ_FOREACH(ife, &mii->mii_media.ifm_list, ifm_list) {
+ if (IFM_SUBTYPE(ife->ifm_media) == IFM_1000_T ||
+ IFM_SUBTYPE(ife->ifm_media) == IFM_1000_SX ||
+ IFM_SUBTYPE(ife->ifm_media) == IFM_1000_LX ||
+ IFM_SUBTYPE(ife->ifm_media) == IFM_1000_CX) {
if (!GEM_IS_APPLE(sc))
sc->sc_ethercom.ec_capabilities
|= ETHERCAP_JUMBO_MTU;
Home |
Main Index |
Thread Index |
Old Index