Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F96442820
D37846.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1017 B
Referenced Files
None
Subscribers
None
D37846.id.diff
View Options
diff --git a/sys/arm/allwinner/aw_if_dwc.c b/sys/arm/allwinner/aw_if_dwc.c
--- a/sys/arm/allwinner/aw_if_dwc.c
+++ b/sys/arm/allwinner/aw_if_dwc.c
@@ -31,8 +31,11 @@
#include <sys/systm.h>
#include <sys/bus.h>
#include <sys/kernel.h>
+#include <sys/socket.h>
#include <sys/module.h>
+#include <net/if.h>
+
#include <machine/bus.h>
#include <dev/dwc/if_dwc.h>
diff --git a/sys/dev/dwc/if_dwc.c b/sys/dev/dwc/if_dwc.c
--- a/sys/dev/dwc/if_dwc.c
+++ b/sys/dev/dwc/if_dwc.c
@@ -475,7 +475,7 @@
/*
* Set the primary address.
*/
- eaddr = IF_LLADDR(ifp);
+ eaddr = if_getlladdr(ifp);
lo = eaddr[0] | (eaddr[1] << 8) | (eaddr[2] << 16) |
(eaddr[3] << 24);
hi = eaddr[4] | (eaddr[5] << 8);
diff --git a/sys/dev/dwc/if_dwcvar.h b/sys/dev/dwc/if_dwcvar.h
--- a/sys/dev/dwc/if_dwcvar.h
+++ b/sys/dev/dwc/if_dwcvar.h
@@ -65,7 +65,7 @@
int mii_clk;
device_t miibus;
struct mii_data * mii_softc;
- struct ifnet *ifp;
+ if_t ifp;
int if_flags;
struct mtx mtx;
void * intr_cookie;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 25, 11:35 PM (14 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
12760790
Default Alt Text
D37846.id.diff (1017 B)
Attached To
Mode
D37846: Mechanically convert dwc(4) to DrvAPI
Attached
Detach File
Event Timeline
Log In to Comment