if_ed.c (62236) | if_ed.c (63090) |
---|---|
1/* 2 * Copyright (c) 1995, David Greenman 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * | 1/* 2 * Copyright (c) 1995, David Greenman 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/sys/dev/ed/if_ed.c 62236 2000-06-29 07:31:37Z ps $ | 27 * $FreeBSD: head/sys/dev/ed/if_ed.c 63090 2000-07-13 22:54:34Z archie $ |
28 */ 29 30/* 31 * Device driver for National Semiconductor DS8390/WD83C690 based ethernet 32 * adapters. By David Greenman, 29-April-1993 33 * 34 * Currently supports the Western Digital/SMC 8003 and 8013 series, 35 * the SMC Elite Ultra (8216), the 3Com 3c503, the NE1000 and NE2000, --- 1601 unchanged lines hidden (view full) --- 1637 IFF_MULTICAST | IFF_ALTPHYS); 1638 else 1639 ifp->if_flags = (IFF_BROADCAST | IFF_SIMPLEX | 1640 IFF_MULTICAST); 1641 1642 /* 1643 * Attach the interface 1644 */ | 28 */ 29 30/* 31 * Device driver for National Semiconductor DS8390/WD83C690 based ethernet 32 * adapters. By David Greenman, 29-April-1993 33 * 34 * Currently supports the Western Digital/SMC 8003 and 8013 series, 35 * the SMC Elite Ultra (8216), the 3Com 3c503, the NE1000 and NE2000, --- 1601 unchanged lines hidden (view full) --- 1637 IFF_MULTICAST | IFF_ALTPHYS); 1638 else 1639 ifp->if_flags = (IFF_BROADCAST | IFF_SIMPLEX | 1640 IFF_MULTICAST); 1641 1642 /* 1643 * Attach the interface 1644 */ |
1645 if_attach(ifp); 1646 ether_ifattach(ifp); | 1645 ether_ifattach(ifp, ETHER_BPF_SUPPORTED); |
1647 } 1648 /* device attach does transition from UNCONFIGURED to IDLE state */ 1649 1650 /* 1651 * Print additional info when attached 1652 */ 1653 printf("%s%d: address %6D, ", ifp->if_name, ifp->if_unit, 1654 sc->arpcom.ac_enaddr, ":"); --- 9 unchanged lines hidden (view full) --- 1664 sc->hpp_mem_start ? "memory mapped" : "regular"); 1665 else 1666 printf("%s ", sc->isa16bit ? "(16 bit)" : "(8 bit)"); 1667 1668 printf("%s\n", (((sc->vendor == ED_VENDOR_3COM) || 1669 (sc->vendor == ED_VENDOR_HP)) && 1670 (ifp->if_flags & IFF_ALTPHYS)) ? " tranceiver disabled" : ""); 1671 | 1646 } 1647 /* device attach does transition from UNCONFIGURED to IDLE state */ 1648 1649 /* 1650 * Print additional info when attached 1651 */ 1652 printf("%s%d: address %6D, ", ifp->if_name, ifp->if_unit, 1653 sc->arpcom.ac_enaddr, ":"); --- 9 unchanged lines hidden (view full) --- 1663 sc->hpp_mem_start ? "memory mapped" : "regular"); 1664 else 1665 printf("%s ", sc->isa16bit ? "(16 bit)" : "(8 bit)"); 1666 1667 printf("%s\n", (((sc->vendor == ED_VENDOR_3COM) || 1668 (sc->vendor == ED_VENDOR_HP)) && 1669 (ifp->if_flags & IFF_ALTPHYS)) ? " tranceiver disabled" : ""); 1670 |
1672 /* 1673 * If BPF is in the kernel, call the attach for it 1674 */ 1675 bpfattach(ifp, DLT_EN10MB, sizeof(struct ether_header)); | |
1676 return (0); 1677} 1678 1679/* 1680 * Reset interface. 1681 */ 1682static void 1683ed_reset(ifp) --- 1612 unchanged lines hidden --- | 1671 return (0); 1672} 1673 1674/* 1675 * Reset interface. 1676 */ 1677static void 1678ed_reset(ifp) --- 1612 unchanged lines hidden --- |