Deleted Added
full compact
if_ic.c (191148) if_ic.c (207554)
1/*-
2 * Copyright (c) 1998, 2001 Nicolas Souchu
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

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1998, 2001 Nicolas Souchu
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

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/dev/iicbus/if_ic.c 191148 2009-04-16 20:30:28Z kmacy $");
28__FBSDID("$FreeBSD: head/sys/dev/iicbus/if_ic.c 207554 2010-05-03 07:32:50Z sobomax $");
29
30/*
31 * I2C bus IP driver
32 */
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/mbuf.h>

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

176
177 ifp->if_softc = sc;
178 if_initname(ifp, device_get_name(dev), device_get_unit(dev));
179 ifp->if_flags = IFF_SIMPLEX | IFF_POINTOPOINT | IFF_MULTICAST;
180 ifp->if_ioctl = icioctl;
181 ifp->if_output = icoutput;
182 ifp->if_hdrlen = 0;
183 ifp->if_addrlen = 0;
29
30/*
31 * I2C bus IP driver
32 */
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/mbuf.h>

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

176
177 ifp->if_softc = sc;
178 if_initname(ifp, device_get_name(dev), device_get_unit(dev));
179 ifp->if_flags = IFF_SIMPLEX | IFF_POINTOPOINT | IFF_MULTICAST;
180 ifp->if_ioctl = icioctl;
181 ifp->if_output = icoutput;
182 ifp->if_hdrlen = 0;
183 ifp->if_addrlen = 0;
184 ifp->if_snd.ifq_maxlen = IFQ_MAXLEN;
184 ifp->if_snd.ifq_maxlen = ifqmaxlen;
185
186 ic_alloc_buffers(sc, ICMTU);
187
188 if_attach(ifp);
189
190 bpfattach(ifp, DLT_NULL, ICHDRLEN);
191
192 return (0);

--- 244 unchanged lines hidden ---
185
186 ic_alloc_buffers(sc, ICMTU);
187
188 if_attach(ifp);
189
190 bpfattach(ifp, DLT_NULL, ICHDRLEN);
191
192 return (0);

--- 244 unchanged lines hidden ---