Deleted Added
full compact
usb_ethernet.c (196403) usb_ethernet.c (207554)
1/* $FreeBSD: head/sys/dev/usb/net/usb_ethernet.c 196403 2009-08-20 19:17:53Z jhb $ */
1/* $FreeBSD: head/sys/dev/usb/net/usb_ethernet.c 207554 2010-05-03 07:32:50Z sobomax $ */
2/*-
3 * Copyright (c) 2009 Andrew Thompson (thompsa@FreeBSD.org)
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
9 * notice, this list of conditions and the following disclaimer.

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

209 ifp->if_mtu = ETHERMTU;
210 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
211 if (ue->ue_methods->ue_ioctl != NULL)
212 ifp->if_ioctl = ue->ue_methods->ue_ioctl;
213 else
214 ifp->if_ioctl = uether_ioctl;
215 ifp->if_start = ue_start;
216 ifp->if_init = ue_init;
2/*-
3 * Copyright (c) 2009 Andrew Thompson (thompsa@FreeBSD.org)
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
9 * notice, this list of conditions and the following disclaimer.

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

209 ifp->if_mtu = ETHERMTU;
210 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
211 if (ue->ue_methods->ue_ioctl != NULL)
212 ifp->if_ioctl = ue->ue_methods->ue_ioctl;
213 else
214 ifp->if_ioctl = uether_ioctl;
215 ifp->if_start = ue_start;
216 ifp->if_init = ue_init;
217 IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
218 ifp->if_snd.ifq_drv_maxlen = IFQ_MAXLEN;
217 IFQ_SET_MAXLEN(&ifp->if_snd, ifqmaxlen);
218 ifp->if_snd.ifq_drv_maxlen = ifqmaxlen;
219 IFQ_SET_READY(&ifp->if_snd);
220 ue->ue_ifp = ifp;
221
222 if (ue->ue_methods->ue_mii_upd != NULL &&
223 ue->ue_methods->ue_mii_sts != NULL) {
224 mtx_lock(&Giant); /* device_xxx() depends on this */
225 error = mii_phy_probe(ue->ue_dev, &ue->ue_miibus,
226 ue_ifmedia_upd, ue->ue_methods->ue_mii_sts);

--- 374 unchanged lines hidden ---
219 IFQ_SET_READY(&ifp->if_snd);
220 ue->ue_ifp = ifp;
221
222 if (ue->ue_methods->ue_mii_upd != NULL &&
223 ue->ue_methods->ue_mii_sts != NULL) {
224 mtx_lock(&Giant); /* device_xxx() depends on this */
225 error = mii_phy_probe(ue->ue_dev, &ue->ue_miibus,
226 ue_ifmedia_upd, ue->ue_methods->ue_mii_sts);

--- 374 unchanged lines hidden ---