-/* $OpenBSD: dwqe.c,v 1.6 2023/04/22 06:36:35 dlg Exp $ */
+/* $OpenBSD: dwqe.c,v 1.7 2023/04/23 06:22:15 dlg Exp $ */
/*
* Copyright (c) 2008, 2019 Mark Kettenis <kettenis@openbsd.org>
* Copyright (c) 2017, 2022 Patrick Wildt <patrick@blueri.se>
for (i = 0; i < 4; i++)
sc->sc_hw_feature[i] = dwqe_read(sc, GMAC_MAC_HW_FEATURE(i));
- timeout_set(&sc->sc_tick, dwqe_tick, sc);
+ timeout_set(&sc->sc_phy_tick, dwqe_tick, sc);
timeout_set(&sc->sc_rxto, dwqe_rxtick, sc);
ifp = &sc->sc_ac.ac_if;
mii_tick(&sc->sc_mii);
splx(s);
- timeout_add_sec(&sc->sc_tick, 1);
+ timeout_add_sec(&sc->sc_phy_tick, 1);
}
void
GMAC_CHAN_INTR_ENA_RIE |
GMAC_CHAN_INTR_ENA_TIE);
- timeout_add_sec(&sc->sc_tick, 1);
+ timeout_add_sec(&sc->sc_phy_tick, 1);
}
void
int i;
timeout_del(&sc->sc_rxto);
- timeout_del(&sc->sc_tick);
+ timeout_del(&sc->sc_phy_tick);
ifp->if_flags &= ~IFF_RUNNING;
ifq_clr_oactive(&ifp->if_snd);
-/* $OpenBSD: dwqevar.h,v 1.4 2023/04/07 09:33:51 dlg Exp $ */
+/* $OpenBSD: dwqevar.h,v 1.5 2023/04/23 06:22:15 dlg Exp $ */
/*
* Copyright (c) 2008, 2019 Mark Kettenis <kettenis@openbsd.org>
* Copyright (c) 2017, 2022 Patrick Wildt <patrick@blueri.se>
int sc_link;
int sc_phyloc;
enum dwqe_phy_mode sc_phy_mode;
+ struct timeout sc_phy_tick;
struct dwqe_dmamem *sc_txring;
struct dwqe_buf *sc_txbuf;
struct if_rxring sc_rx_ring;
int sc_rx_cons;
- struct timeout sc_tick;
struct timeout sc_rxto;
struct task sc_statchg_task;