if_sbni.c (182913) | if_sbni.c (207554) |
---|---|
1/*- 2 * Copyright (c) 1997-2001 Granch, Ltd. All rights reserved. 3 * Author: Denis I.Timofeev <timofeev@granch.ru> 4 * 5 * Redistributon 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 --- 13 unchanged lines hidden (view full) --- 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEIGENCE 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 */ 28 29#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1997-2001 Granch, Ltd. All rights reserved. 3 * Author: Denis I.Timofeev <timofeev@granch.ru> 4 * 5 * Redistributon 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 --- 13 unchanged lines hidden (view full) --- 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEIGENCE 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 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: head/sys/dev/sbni/if_sbni.c 182913 2008-09-10 18:42:19Z jhb $"); | 30__FBSDID("$FreeBSD: head/sys/dev/sbni/if_sbni.c 207554 2010-05-03 07:32:50Z sobomax $"); |
31 32/* 33 * Device driver for Granch SBNI12 leased line adapters 34 * 35 * Revision 2.0.0 1997/08/06 36 * Initial revision by Alexey Zverev 37 * 38 * Revision 2.0.1 1997/08/11 --- 191 unchanged lines hidden (view full) --- 230 set_initial_values(sc, flags); 231 232 /* Initialize ifnet structure */ 233 ifp->if_softc = sc; 234 if_initname(ifp, "sbni", unit); 235 ifp->if_init = sbni_init; 236 ifp->if_start = sbni_start; 237 ifp->if_ioctl = sbni_ioctl; | 31 32/* 33 * Device driver for Granch SBNI12 leased line adapters 34 * 35 * Revision 2.0.0 1997/08/06 36 * Initial revision by Alexey Zverev 37 * 38 * Revision 2.0.1 1997/08/11 --- 191 unchanged lines hidden (view full) --- 230 set_initial_values(sc, flags); 231 232 /* Initialize ifnet structure */ 233 ifp->if_softc = sc; 234 if_initname(ifp, "sbni", unit); 235 ifp->if_init = sbni_init; 236 ifp->if_start = sbni_start; 237 ifp->if_ioctl = sbni_ioctl; |
238 IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN); | 238 IFQ_SET_MAXLEN(&ifp->if_snd, ifqmaxlen); |
239 240 /* report real baud rate */ 241 csr0 = sbni_inb(sc, CSR0); 242 ifp->if_baudrate = 243 (csr0 & 0x01 ? 500000 : 2000000) / (1 << flags.rate); 244 245 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; 246 --- 1031 unchanged lines hidden --- | 239 240 /* report real baud rate */ 241 csr0 = sbni_inb(sc, CSR0); 242 ifp->if_baudrate = 243 (csr0 & 0x01 ? 500000 : 2000000) / (1 << flags.rate); 244 245 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; 246 --- 1031 unchanged lines hidden --- |