-/* $OpenBSD: if_pcn.c,v 1.47 2022/03/11 18:00:48 mpi Exp $ */
+/* $OpenBSD: if_pcn.c,v 1.48 2022/07/10 21:13:41 bluhm Exp $ */
/* $NetBSD: if_pcn.c,v 1.26 2005/05/07 09:15:44 is Exp $ */
/*
}
/* Set the media. */
- (void) (*sc->sc_mii.mii_media.ifm_change)(ifp);
+ (void) (*sc->sc_mii.mii_media.ifm_change_cb)(ifp);
/* Enable interrupts and external activity (and ACK IDON). */
pcn_csr_write(sc, LE_CSR0, LE_C0_INEA|LE_C0_STRT|LE_C0_IDON);
-/* $OpenBSD: if_athn_usb.c,v 1.64 2022/04/21 21:03:03 stsp Exp $ */
+/* $OpenBSD: if_athn_usb.c,v 1.65 2022/07/10 21:13:41 bluhm Exp $ */
/*-
* Copyright (c) 2011 Damien Bergamini <damien.bergamini@free.fr>
ic->ic_ampdu_tx_stop = athn_usb_ampdu_tx_stop;
#endif
ic->ic_newstate = athn_usb_newstate;
- ic->ic_media.ifm_change = athn_usb_media_change;
+ ic->ic_media.ifm_change_cb = athn_usb_media_change;
timeout_set(&sc->scan_to, athn_usb_next_scan, usc);
ops->rx_enable = athn_usb_rx_enable;
-/* $OpenBSD: if_media.c,v 1.32 2022/04/07 16:41:13 naddy Exp $ */
+/* $OpenBSD: if_media.c,v 1.33 2022/07/10 21:13:41 bluhm Exp $ */
/* $NetBSD: if_media.c,v 1.10 2000/03/13 23:52:39 soren Exp $ */
/*-
ifm->ifm_cur = NULL;
ifm->ifm_media = 0;
ifm->ifm_mask = dontcare_mask; /* IF don't-care bits */
- ifm->ifm_change = change_callback;
- ifm->ifm_status = status_callback;
+ ifm->ifm_change_cb = change_callback;
+ ifm->ifm_status_cb = status_callback;
}
/*
oldmedia = ifm->ifm_media;
ifm->ifm_cur = match;
ifm->ifm_media = newmedia;
- error = (*ifm->ifm_change)(ifp);
+ error = (*ifm->ifm_change_cb)(ifp);
if (error && error != ENETRESET) {
ifm->ifm_cur = oldentry;
ifm->ifm_media = oldmedia;
ifm->ifm_cur->ifm_media : IFM_NONE;
ifmr->ifm_mask = ifm->ifm_mask;
ifmr->ifm_status = 0;
- (*ifm->ifm_status)(ifp, ifmr);
+ (*ifm->ifm_status_cb)(ifp, ifmr);
/*
* Count them so we know a-priori how much is the max we'll
-/* $OpenBSD: if_media.h,v 1.42 2021/11/10 04:46:25 dlg Exp $ */
+/* $OpenBSD: if_media.h,v 1.43 2022/07/10 21:13:41 bluhm Exp $ */
/* $NetBSD: if_media.h,v 1.22 2000/02/17 21:53:16 sommerfeld Exp $ */
/*-
uint64_t ifm_media; /* current user-set media word */
struct ifmedia_entry *ifm_cur; /* currently selected media */
TAILQ_HEAD(, ifmedia_entry) ifm_list; /* list of all supported media */
- ifm_change_cb_t ifm_change; /* media change driver callback */
- ifm_stat_cb_t ifm_status; /* media status driver callback */
+ ifm_change_cb_t ifm_change_cb; /* media change driver callback */
+ ifm_stat_cb_t ifm_status_cb; /* media status driver callback */
};
/* Initialize an interface's struct if_media field. */