if_txp.c (268351) | if_txp.c (270856) |
---|---|
1/* $OpenBSD: if_txp.c,v 1.48 2001/06/27 06:34:50 kjc Exp $ */ 2 3/*- 4 * Copyright (c) 2001 5 * Jason L. Wright <jason@thought.net>, Theo de Raadt, and 6 * Aaron Campbell <aaron@monkey.org>. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 21 unchanged lines hidden (view full) --- 30 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 31 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 32 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 33 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 34 * THE POSSIBILITY OF SUCH DAMAGE. 35 */ 36 37#include <sys/cdefs.h> | 1/* $OpenBSD: if_txp.c,v 1.48 2001/06/27 06:34:50 kjc Exp $ */ 2 3/*- 4 * Copyright (c) 2001 5 * Jason L. Wright <jason@thought.net>, Theo de Raadt, and 6 * Aaron Campbell <aaron@monkey.org>. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 21 unchanged lines hidden (view full) --- 30 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 31 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 32 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 33 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 34 * THE POSSIBILITY OF SUCH DAMAGE. 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/sys/dev/txp/if_txp.c 268351 2014-07-07 00:27:09Z marcel $"); | 38__FBSDID("$FreeBSD: head/sys/dev/txp/if_txp.c 270856 2014-08-30 19:55:54Z glebius $"); |
39 40/* 41 * Driver for 3c990 (Typhoon) Ethernet ASIC 42 */ 43#include <sys/param.h> 44#include <sys/systm.h> 45#include <sys/bus.h> 46#include <sys/endian.h> --- 384 unchanged lines hidden (view full) --- 431 432 ether_ifattach(ifp, eaddr); 433 434 /* VLAN capability setup. */ 435 ifp->if_capabilities |= IFCAP_VLAN_MTU; 436 ifp->if_capabilities |= IFCAP_VLAN_HWTAGGING | IFCAP_VLAN_HWCSUM; 437 ifp->if_capenable = ifp->if_capabilities; 438 /* Tell the upper layer(s) we support long frames. */ | 39 40/* 41 * Driver for 3c990 (Typhoon) Ethernet ASIC 42 */ 43#include <sys/param.h> 44#include <sys/systm.h> 45#include <sys/bus.h> 46#include <sys/endian.h> --- 384 unchanged lines hidden (view full) --- 431 432 ether_ifattach(ifp, eaddr); 433 434 /* VLAN capability setup. */ 435 ifp->if_capabilities |= IFCAP_VLAN_MTU; 436 ifp->if_capabilities |= IFCAP_VLAN_HWTAGGING | IFCAP_VLAN_HWCSUM; 437 ifp->if_capenable = ifp->if_capabilities; 438 /* Tell the upper layer(s) we support long frames. */ |
439 ifp->if_data.ifi_hdrlen = sizeof(struct ether_vlan_header); | 439 ifp->if_hdrlen = sizeof(struct ether_vlan_header); |
440 441 WRITE_REG(sc, TXP_IER, TXP_INTR_NONE); 442 WRITE_REG(sc, TXP_IMR, TXP_INTR_ALL); 443 444 /* Create local taskq. */ 445 sc->sc_tq = taskqueue_create_fast("txp_taskq", M_WAITOK, 446 taskqueue_thread_enqueue, &sc->sc_tq); 447 if (sc->sc_tq == NULL) { --- 2552 unchanged lines hidden --- | 440 441 WRITE_REG(sc, TXP_IER, TXP_INTR_NONE); 442 WRITE_REG(sc, TXP_IMR, TXP_INTR_ALL); 443 444 /* Create local taskq. */ 445 sc->sc_tq = taskqueue_create_fast("txp_taskq", M_WAITOK, 446 taskqueue_thread_enqueue, &sc->sc_tq); 447 if (sc->sc_tq == NULL) { --- 2552 unchanged lines hidden --- |