Deleted Added
full compact
if_vx.c (199559) if_vx.c (207554)
1/*-
2 * Copyright (c) 1994 Herb Peyerl <hpeyerl@novatel.ca>
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

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

26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 *
30 *
31 */
32
33#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1994 Herb Peyerl <hpeyerl@novatel.ca>
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

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

26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 *
30 *
31 */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/sys/dev/vx/if_vx.c 199559 2009-11-19 22:06:40Z jhb $");
34__FBSDID("$FreeBSD: head/sys/dev/vx/if_vx.c 207554 2010-05-03 07:32:50Z sobomax $");
35
36/*
37 * Created from if_ep.c driver by Fred Gray (fgray@rice.edu) to support
38 * the 3c590 family.
39 */
40
41/*
42 * Modified from the FreeBSD 1.1.5.1 version by:

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

184 return 0;
185 }
186 x = CSR_READ_2(sc, VX_W0_EEPROM_DATA);
187 eaddr[(i << 1)] = x >> 8;
188 eaddr[(i << 1) + 1] = x;
189 }
190
191 ifp->if_mtu = ETHERMTU;
35
36/*
37 * Created from if_ep.c driver by Fred Gray (fgray@rice.edu) to support
38 * the 3c590 family.
39 */
40
41/*
42 * Modified from the FreeBSD 1.1.5.1 version by:

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

184 return 0;
185 }
186 x = CSR_READ_2(sc, VX_W0_EEPROM_DATA);
187 eaddr[(i << 1)] = x >> 8;
188 eaddr[(i << 1) + 1] = x;
189 }
190
191 ifp->if_mtu = ETHERMTU;
192 ifp->if_snd.ifq_maxlen = IFQ_MAXLEN;
192 ifp->if_snd.ifq_maxlen = ifqmaxlen;
193 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
194 ifp->if_start = vx_start;
195 ifp->if_ioctl = vx_ioctl;
196 ifp->if_init = vx_init;
197 ifp->if_softc = sc;
198
199 ether_ifattach(ifp, eaddr);
200

--- 878 unchanged lines hidden ---
193 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
194 ifp->if_start = vx_start;
195 ifp->if_ioctl = vx_ioctl;
196 ifp->if_init = vx_init;
197 ifp->if_softc = sc;
198
199 ether_ifattach(ifp, eaddr);
200

--- 878 unchanged lines hidden ---