if_pcn.c (131253) | if_pcn.c (134442) |
---|---|
1/* 2 * Copyright (c) 2000 Berkeley Software Design, Inc. 3 * Copyright (c) 1997, 1998, 1999, 2000 4 * Bill Paul <wpaul@osd.bsdi.com>. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 18 unchanged lines hidden (view full) --- 27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 31 * THE POSSIBILITY OF SUCH DAMAGE. 32 */ 33 34#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 2000 Berkeley Software Design, Inc. 3 * Copyright (c) 1997, 1998, 1999, 2000 4 * Bill Paul <wpaul@osd.bsdi.com>. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 18 unchanged lines hidden (view full) --- 27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 31 * THE POSSIBILITY OF SUCH DAMAGE. 32 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sys/pci/if_pcn.c 131253 2004-06-28 20:07:03Z imp $"); | 35__FBSDID("$FreeBSD: head/sys/pci/if_pcn.c 134442 2004-08-28 15:10:35Z rwatson $"); |
36 37/* 38 * AMD Am79c972 fast ethernet PCI NIC driver. Datatheets are available 39 * from http://www.amd.com. 40 * 41 * The AMD PCnet/PCI controllers are more advanced and functional 42 * versions of the venerable 7990 LANCE. The PCnet/PCI chips retain 43 * backwards compatibility with the LANCE and thus can be made --- 503 unchanged lines hidden (view full) --- 547 goto fail; 548 } 549 bzero(sc->pcn_ldata, sizeof(struct pcn_list_data)); 550 551 ifp = &sc->arpcom.ac_if; 552 ifp->if_softc = sc; 553 if_initname(ifp, device_get_name(dev), device_get_unit(dev)); 554 ifp->if_mtu = ETHERMTU; | 36 37/* 38 * AMD Am79c972 fast ethernet PCI NIC driver. Datatheets are available 39 * from http://www.amd.com. 40 * 41 * The AMD PCnet/PCI controllers are more advanced and functional 42 * versions of the venerable 7990 LANCE. The PCnet/PCI chips retain 43 * backwards compatibility with the LANCE and thus can be made --- 503 unchanged lines hidden (view full) --- 547 goto fail; 548 } 549 bzero(sc->pcn_ldata, sizeof(struct pcn_list_data)); 550 551 ifp = &sc->arpcom.ac_if; 552 ifp->if_softc = sc; 553 if_initname(ifp, device_get_name(dev), device_get_unit(dev)); 554 ifp->if_mtu = ETHERMTU; |
555 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; | 555 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST | 556 IFF_NEEDSGIANT; |
556 ifp->if_ioctl = pcn_ioctl; 557 ifp->if_start = pcn_start; 558 ifp->if_watchdog = pcn_watchdog; 559 ifp->if_init = pcn_init; 560 ifp->if_baudrate = 10000000; 561 ifp->if_snd.ifq_maxlen = PCN_TX_LIST_CNT - 1; 562 563 /* --- 830 unchanged lines hidden --- | 557 ifp->if_ioctl = pcn_ioctl; 558 ifp->if_start = pcn_start; 559 ifp->if_watchdog = pcn_watchdog; 560 ifp->if_init = pcn_init; 561 ifp->if_baudrate = 10000000; 562 ifp->if_snd.ifq_maxlen = PCN_TX_LIST_CNT - 1; 563 564 /* --- 830 unchanged lines hidden --- |