Deleted Added
full compact
if_cs.c (202580) if_cs.c (207554)
1/*-
2 * Copyright (c) 1997,1998 Maxim Bolotin and Oleg Sharoiko.
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

--- 13 unchanged lines hidden (view full) ---

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 */
28
29#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1997,1998 Maxim Bolotin and Oleg Sharoiko.
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

--- 13 unchanged lines hidden (view full) ---

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 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/dev/cs/if_cs.c 202580 2010-01-18 17:52:57Z imp $");
30__FBSDID("$FreeBSD: head/sys/dev/cs/if_cs.c 207554 2010-05-03 07:32:50Z sobomax $");
31
32/*
33 *
34 * Device driver for Crystal Semiconductor CS8920 based ethernet
35 * adapters. By Maxim Bolotin and Oleg Sharoiko, 27-April-1997
36 */
37
38/*

--- 456 unchanged lines hidden (view full) ---

495 cs_stop(sc);
496 CS_UNLOCK(sc);
497
498 ifp->if_softc=sc;
499 if_initname(ifp, device_get_name(dev), device_get_unit(dev));
500 ifp->if_start=cs_start;
501 ifp->if_ioctl=cs_ioctl;
502 ifp->if_init=cs_init;
31
32/*
33 *
34 * Device driver for Crystal Semiconductor CS8920 based ethernet
35 * adapters. By Maxim Bolotin and Oleg Sharoiko, 27-April-1997
36 */
37
38/*

--- 456 unchanged lines hidden (view full) ---

495 cs_stop(sc);
496 CS_UNLOCK(sc);
497
498 ifp->if_softc=sc;
499 if_initname(ifp, device_get_name(dev), device_get_unit(dev));
500 ifp->if_start=cs_start;
501 ifp->if_ioctl=cs_ioctl;
502 ifp->if_init=cs_init;
503 IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
503 IFQ_SET_MAXLEN(&ifp->if_snd, ifqmaxlen);
504
505 ifp->if_flags=(IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST);
506
507 /*
508 * this code still in progress (DMA support)
509 *
510
511 sc->recv_ring=malloc(CS_DMA_BUFFER_SIZE<<1, M_DEVBUF, M_NOWAIT);

--- 732 unchanged lines hidden ---
504
505 ifp->if_flags=(IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST);
506
507 /*
508 * this code still in progress (DMA support)
509 *
510
511 sc->recv_ring=malloc(CS_DMA_BUFFER_SIZE<<1, M_DEVBUF, M_NOWAIT);

--- 732 unchanged lines hidden ---