diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-04-23 22:51:29 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-04-23 22:51:29 +0000 |
commit | 6d760f36642c9671932ee277fcc37b66f317822a (patch) | |
tree | 5ed834156f70f3e573d7cbf701445b35c6b7fc6b /sys/dev | |
parent | d3d58bd9eda54aadcea809414973a94274fbe139 (diff) |
style
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/xl.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/sys/dev/ic/xl.c b/sys/dev/ic/xl.c index 4d3eceb31ae..5cefc9199e1 100644 --- a/sys/dev/ic/xl.c +++ b/sys/dev/ic/xl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xl.c,v 1.62 2005/01/15 05:24:11 brad Exp $ */ +/* $OpenBSD: xl.c,v 1.63 2005/04/23 22:51:28 brad Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -2730,14 +2730,9 @@ xl_attach(sc) ifp->if_softc = sc; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; ifp->if_ioctl = xl_ioctl; - ifp->if_capabilities = IFCAP_VLAN_MTU; - if (sc->xl_type == XL_TYPE_905B) { + if (sc->xl_type == XL_TYPE_905B) ifp->if_start = xl_start_90xB; -#ifndef XL905B_TXCSUM_BROKEN - ifp->if_capabilities |= IFCAP_CSUM_IPv4|IFCAP_CSUM_TCPv4| - IFCAP_CSUM_UDPv4; -#endif - } else + else ifp->if_start = xl_start; ifp->if_watchdog = xl_watchdog; ifp->if_baudrate = 10000000; @@ -2745,6 +2740,13 @@ xl_attach(sc) IFQ_SET_READY(&ifp->if_snd); bcopy(sc->sc_dev.dv_xname, ifp->if_xname, IFNAMSIZ); + ifp->if_capabilities = IFCAP_VLAN_MTU; + +#ifndef XL905B_TXCSUM_BROKEN + ifp->if_capabilities |= IFCAP_CSUM_IPv4|IFCAP_CSUM_TCPv4| + IFCAP_CSUM_UDPv4; +#endif + XL_SEL_WIN(3); sc->xl_media = CSR_READ_2(sc, XL_W3_MEDIA_OPT); |