Deleted Added
full compact
if_uath.c (192499) if_uath.c (192502)
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 192499 2009-05-21 00:04:17Z thompsa $");
52__FBSDID("$FreeBSD: head/sys/dev/usb/wlan/if_uath.c 192502 2009-05-21 01:48:42Z 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

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

111#include <dev/usb/usb_error.h>
112#include <dev/usb/usb_lookup.h>
113#include <dev/usb/usb_util.h>
114#include "usbdevs.h"
115
116#include <dev/usb/wlan/if_uathreg.h>
117#include <dev/usb/wlan/if_uathvar.h>
118
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

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

111#include <dev/usb/usb_error.h>
112#include <dev/usb/usb_lookup.h>
113#include <dev/usb/usb_util.h>
114#include "usbdevs.h"
115
116#include <dev/usb/wlan/if_uathreg.h>
117#include <dev/usb/wlan/if_uathvar.h>
118
119SYSCTL_NODE(_hw_usb2, OID_AUTO, uath, CTLFLAG_RW, 0, "USB Atheros");
119SYSCTL_NODE(_hw_usb, OID_AUTO, uath, CTLFLAG_RW, 0, "USB Atheros");
120
121static int uath_countrycode = CTRY_DEFAULT; /* country code */
120
121static int uath_countrycode = CTRY_DEFAULT; /* country code */
122SYSCTL_INT(_hw_usb2_uath, OID_AUTO, countrycode, CTLFLAG_RW, &uath_countrycode,
122SYSCTL_INT(_hw_usb_uath, OID_AUTO, countrycode, CTLFLAG_RW, &uath_countrycode,
123 0, "country code");
123 0, "country code");
124TUNABLE_INT("hw.usb2.uath.countrycode", &uath_countrycode);
124TUNABLE_INT("hw.usb.uath.countrycode", &uath_countrycode);
125static int uath_regdomain = 0; /* regulatory domain */
125static int uath_regdomain = 0; /* regulatory domain */
126SYSCTL_INT(_hw_usb2_uath, OID_AUTO, regdomain, CTLFLAG_RD, &uath_regdomain,
126SYSCTL_INT(_hw_usb_uath, OID_AUTO, regdomain, CTLFLAG_RD, &uath_regdomain,
127 0, "regulatory domain");
128
129#ifdef UATH_DEBUG
130int uath_debug = 0;
127 0, "regulatory domain");
128
129#ifdef UATH_DEBUG
130int uath_debug = 0;
131SYSCTL_INT(_hw_usb2_uath, OID_AUTO, debug, CTLFLAG_RW, &uath_debug, 0,
131SYSCTL_INT(_hw_usb_uath, OID_AUTO, debug, CTLFLAG_RW, &uath_debug, 0,
132 "uath debug level");
133TUNABLE_INT("hw.usb.uath.debug", &uath_debug);
134enum {
135 UATH_DEBUG_XMIT = 0x00000001, /* basic xmit operation */
136 UATH_DEBUG_XMIT_DUMP = 0x00000002, /* xmit dump */
137 UATH_DEBUG_RECV = 0x00000004, /* basic recv operation */
138 UATH_DEBUG_TX_PROC = 0x00000008, /* tx ISR proc */
139 UATH_DEBUG_RX_PROC = 0x00000010, /* rx ISR proc */

--- 2719 unchanged lines hidden ---
132 "uath debug level");
133TUNABLE_INT("hw.usb.uath.debug", &uath_debug);
134enum {
135 UATH_DEBUG_XMIT = 0x00000001, /* basic xmit operation */
136 UATH_DEBUG_XMIT_DUMP = 0x00000002, /* xmit dump */
137 UATH_DEBUG_RECV = 0x00000004, /* basic recv operation */
138 UATH_DEBUG_TX_PROC = 0x00000008, /* tx ISR proc */
139 UATH_DEBUG_RX_PROC = 0x00000010, /* rx ISR proc */

--- 2719 unchanged lines hidden ---