Deleted Added
full compact
if_uath.c (192502) if_uath.c (192511)
1/*-
2 * Copyright (c) 2006 Sam Leffler, Errno Consulting
3 * Copyright (c) 2008-2009 Weongyo Jeong <weongyo@freebsd.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

44 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
45 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
46 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
47 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
48 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
49 */
50
51#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2006 Sam Leffler, Errno Consulting
3 * Copyright (c) 2008-2009 Weongyo Jeong <weongyo@freebsd.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

44 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
45 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
46 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
47 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
48 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
49 */
50
51#include <sys/cdefs.h>
52__FBSDID("$FreeBSD: head/sys/dev/usb/wlan/if_uath.c 192502 2009-05-21 01:48:42Z thompsa $");
52__FBSDID("$FreeBSD: head/sys/dev/usb/wlan/if_uath.c 192511 2009-05-21 02:26:51Z thompsa $");
53
54/*-
55 * Driver for Atheros AR5523 USB parts.
56 *
57 * The driver requires firmware to be loaded into the device. This
58 * is done on device discovery from a user application (uathload)
59 * that is launched by devd when a device with suitable product ID
60 * is recognized. Once firmware has been loaded the device will

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

350 usb2_error_t error;
351 uint8_t macaddr[IEEE80211_ADDR_LEN];
352
353 sc->sc_dev = dev;
354 sc->sc_udev = uaa->device;
355#ifdef UATH_DEBUG
356 sc->sc_debug = uath_debug;
357#endif
53
54/*-
55 * Driver for Atheros AR5523 USB parts.
56 *
57 * The driver requires firmware to be loaded into the device. This
58 * is done on device discovery from a user application (uathload)
59 * that is launched by devd when a device with suitable product ID
60 * is recognized. Once firmware has been loaded the device will

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

350 usb2_error_t error;
351 uint8_t macaddr[IEEE80211_ADDR_LEN];
352
353 sc->sc_dev = dev;
354 sc->sc_udev = uaa->device;
355#ifdef UATH_DEBUG
356 sc->sc_debug = uath_debug;
357#endif
358 device_set_usb2_desc(dev);
358
359 /*
360 * Only post-firmware devices here.
361 */
362 mtx_init(&sc->sc_mtx, device_get_nameunit(sc->sc_dev), MTX_NETWORK_LOCK,
363 MTX_DEF);
364 callout_init(&sc->stat_ch, 0);
365 callout_init_mtx(&sc->watchdog_ch, &sc->sc_mtx, 0);

--- 2493 unchanged lines hidden ---
359
360 /*
361 * Only post-firmware devices here.
362 */
363 mtx_init(&sc->sc_mtx, device_get_nameunit(sc->sc_dev), MTX_NETWORK_LOCK,
364 MTX_DEF);
365 callout_init(&sc->stat_ch, 0);
366 callout_init_mtx(&sc->watchdog_ch, &sc->sc_mtx, 0);

--- 2493 unchanged lines hidden ---