if_smc.c (194024) | if_smc.c (207554) |
---|---|
1/*- 2 * Copyright (c) 2008 Benno Rice. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 9 unchanged lines hidden (view full) --- 18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 */ 24 25#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2008 Benno Rice. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 9 unchanged lines hidden (view full) --- 18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 */ 24 25#include <sys/cdefs.h> |
26__FBSDID("$FreeBSD: head/sys/dev/smc/if_smc.c 194024 2009-06-11 17:14:54Z avg $"); | 26__FBSDID("$FreeBSD: head/sys/dev/smc/if_smc.c 207554 2010-05-03 07:32:50Z sobomax $"); |
27 28/* 29 * Driver for SMSC LAN91C111, may work for older variants. 30 */ 31 32#ifdef HAVE_KERNEL_OPTION_HEADERS 33#include "opt_device_polling.h" 34#endif --- 307 unchanged lines hidden (view full) --- 342 eaddr[5] = smc_read_1(sc, IAR5); 343 344 if_initname(ifp, device_get_name(dev), device_get_unit(dev)); 345 ifp->if_softc = sc; 346 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; 347 ifp->if_init = smc_init; 348 ifp->if_ioctl = smc_ioctl; 349 ifp->if_start = smc_start; | 27 28/* 29 * Driver for SMSC LAN91C111, may work for older variants. 30 */ 31 32#ifdef HAVE_KERNEL_OPTION_HEADERS 33#include "opt_device_polling.h" 34#endif --- 307 unchanged lines hidden (view full) --- 342 eaddr[5] = smc_read_1(sc, IAR5); 343 344 if_initname(ifp, device_get_name(dev), device_get_unit(dev)); 345 ifp->if_softc = sc; 346 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; 347 ifp->if_init = smc_init; 348 ifp->if_ioctl = smc_ioctl; 349 ifp->if_start = smc_start; |
350 IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN); | 350 IFQ_SET_MAXLEN(&ifp->if_snd, ifqmaxlen); |
351 IFQ_SET_READY(&ifp->if_snd); 352 353 ifp->if_capabilities = ifp->if_capenable = 0; 354 355#ifdef DEVICE_POLLING 356 ifp->if_capabilities |= IFCAP_POLLING; 357#endif 358 --- 981 unchanged lines hidden --- | 351 IFQ_SET_READY(&ifp->if_snd); 352 353 ifp->if_capabilities = ifp->if_capenable = 0; 354 355#ifdef DEVICE_POLLING 356 ifp->if_capabilities |= IFCAP_POLLING; 357#endif 358 --- 981 unchanged lines hidden --- |