View | Details | Raw Unified | Return to bug 263820 | Differences between
and this patch

Collapse All | Expand All

(-)b/sys/dev/dwc/if_dwc.c (+23 lines)
Lines 1108-1113 dwc_txstart(struct ifnet *ifp) Link Here
1108
	DWC_UNLOCK(sc);
1108
	DWC_UNLOCK(sc);
1109
}
1109
}
1110
1110
1111
static void
1112
dwc_setup_macaddr(struct dwc_softc *sc)
1113
{
1114
	struct ifnet *ifp;
1115
	uint8_t *eaddr;
1116
	uint32_t hi, lo;
1117
1118
	DWC_ASSERT_LOCKED(sc);
1119
1120
	ifp = sc->ifp;
1121
1122
	/*
1123
	 * Set the primary address.
1124
	 */
1125
	eaddr = IF_LLADDR(ifp);
1126
	lo = eaddr[0] | (eaddr[1] << 8) | (eaddr[2] << 16) |
1127
	    (eaddr[3] << 24);
1128
	hi = eaddr[4] | (eaddr[5] << 8);
1129
	WRITE4(sc, MAC_ADDRESS_LOW(0), lo);
1130
	WRITE4(sc, MAC_ADDRESS_HIGH(0), hi);
1131
}
1132
1111
static void
1133
static void
1112
dwc_init_locked(struct dwc_softc *sc)
1134
dwc_init_locked(struct dwc_softc *sc)
1113
{
1135
{
Lines 1131-1136 dwc_init_locked(struct dwc_softc *sc) Link Here
1131
	 */
1153
	 */
1132
	mii_mediachg(sc->mii_softc);
1154
	mii_mediachg(sc->mii_softc);
1133
	callout_reset(&sc->dwc_callout, hz, dwc_tick, sc);
1155
	callout_reset(&sc->dwc_callout, hz, dwc_tick, sc);
1156
	dwc_setup_macaddr(sc);
1134
}
1157
}
1135
1158
1136
static void
1159
static void

Return to bug 263820