1/* $NetBSD: if_admsw.c,v 1.3 2007/04/22 19:26:25 dyoung Exp $ */ 2 3/*- 4 * Copyright (c) 2007 Ruslan Ermilov and Vsevolod Lobko. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or 8 * without modification, are permitted provided that the following --- 62 unchanged lines hidden (view full) --- 71 * 72 * TODO: 73 * 74 * Better Rx buffer management; we want to get new Rx buffers 75 * to the chip more quickly than we currently do. 76 */ 77 78#include <sys/cdefs.h> |
79__FBSDID("$FreeBSD: head/sys/mips/adm5120/if_admsw.c 207554 2010-05-03 07:32:50Z sobomax $"); |
80 81#include <sys/param.h> 82#include <sys/systm.h> 83#include <sys/bus.h> 84#include <sys/kernel.h> 85#include <sys/mbuf.h> 86#include <sys/malloc.h> 87#include <sys/module.h> --- 447 unchanged lines hidden (view full) --- 535 if_initname(ifp, device_get_name(dev), i); 536 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; 537 ifp->if_ioctl = admsw_ioctl; 538 ifp->if_output = ether_output; 539 ifp->if_start = admsw_start; 540 ifp->if_init = admsw_init; 541 ifp->if_mtu = ETHERMTU; 542 ifp->if_baudrate = IF_Mbps(100); |
543 IFQ_SET_MAXLEN(&ifp->if_snd, max(ADMSW_NTXLDESC, ifqmaxlen)); 544 ifp->if_snd.ifq_drv_maxlen = max(ADMSW_NTXLDESC, ifqmaxlen); |
545 IFQ_SET_READY(&ifp->if_snd); 546 ifp->if_capabilities |= IFCAP_VLAN_MTU; 547 548 /* Attach the interface. */ 549 ether_ifattach(ifp, enaddr); 550 enaddr[5]++; 551 } 552 --- 801 unchanged lines hidden --- |