Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/allwinner initialize if_xname, if_capabilities, ...
details: https://anonhg.NetBSD.org/src/rev/569c0bf7af1f
branches: trunk
changeset: 332098:569c0bf7af1f
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Sep 06 19:00:50 2014 +0000
description:
initialize if_xname, if_capabilities, if_flags, if_snd
diffstat:
sys/arch/arm/allwinner/awin_eth.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (39 lines):
diff -r be737211aa1e -r 569c0bf7af1f sys/arch/arm/allwinner/awin_eth.c
--- a/sys/arch/arm/allwinner/awin_eth.c Sat Sep 06 18:58:35 2014 +0000
+++ b/sys/arch/arm/allwinner/awin_eth.c Sat Sep 06 19:00:50 2014 +0000
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: awin_eth.c,v 1.6 2014/09/06 18:19:54 matt Exp $");
+__KERNEL_RCSID(1, "$NetBSD: awin_eth.c,v 1.7 2014/09/06 19:00:50 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -197,7 +197,7 @@
aprint_normal(": 10/100 Ethernet Controller\n");
/*
- * Diable and then clear all interrupts
+ * Disable and then clear all interrupts
*/
awin_eth_write(sc, AWIN_EMAC_INT_CTL_REG, 0);
awin_eth_write(sc, AWIN_EMAC_INT_STA_REG,
@@ -223,13 +223,17 @@
enaddr[5] = a0 >> 0;
}
+ strlcpy(ifp->if_xname, device_xname(self), IFNAMSIZ);
ifp->if_softc = sc;
+ ifp->if_capabilities = 0;
+ ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
ifp->if_start = awin_eth_ifstart;
ifp->if_ioctl = awin_eth_ifioctl;
ifp->if_init = awin_eth_ifinit;
ifp->if_stop = awin_eth_ifstop;
ifp->if_watchdog = awin_eth_ifwatchdog;
ifp->if_drain = awin_eth_ifdrain;
+ IFQ_SET_READY(&ifp->if_snd);
ifmedia_init(&mii->mii_media, 0, ether_mediachange, ether_mediastatus);
Home |
Main Index |
Thread Index |
Old Index