Skip to content

Commit 068f2c0

Browse files
committed
Mechanically convert dwc(4) to IfAPI
Reviewed by: manu (older) Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D37846
1 parent 6d18b48 commit 068f2c0

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

sys/arm/allwinner/aw_if_dwc.c

+3
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,11 @@ __FBSDID("$FreeBSD$");
3131
#include <sys/systm.h>
3232
#include <sys/bus.h>
3333
#include <sys/kernel.h>
34+
#include <sys/socket.h>
3435
#include <sys/module.h>
3536

37+
#include <net/if.h>
38+
3639
#include <machine/bus.h>
3740

3841
#include <dev/dwc/if_dwc.h>

sys/dev/dwc/if_dwc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ dwc_setup_rxfilter(struct dwc_softc *sc)
475475
/*
476476
* Set the primary address.
477477
*/
478-
eaddr = IF_LLADDR(ifp);
478+
eaddr = if_getlladdr(ifp);
479479
lo = eaddr[0] | (eaddr[1] << 8) | (eaddr[2] << 16) |
480480
(eaddr[3] << 24);
481481
hi = eaddr[4] | (eaddr[5] << 8);

sys/dev/dwc/if_dwcvar.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ struct dwc_softc {
6565
int mii_clk;
6666
device_t miibus;
6767
struct mii_data * mii_softc;
68-
struct ifnet *ifp;
68+
if_t ifp;
6969
int if_flags;
7070
struct mtx mtx;
7171
void * intr_cookie;

0 commit comments

Comments
 (0)