Deleted Added
full compact
ah_osdep.c (219948) ah_osdep.c (220367)
1/*-
2 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
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

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

21 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
22 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27 * THE POSSIBILITY OF SUCH DAMAGES.
28 *
1/*-
2 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
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

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

21 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
22 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27 * THE POSSIBILITY OF SUCH DAMAGES.
28 *
29 * $FreeBSD: head/sys/dev/ath/ah_osdep.c 219948 2011-03-24 04:57:35Z adrian $
29 * $FreeBSD: head/sys/dev/ath/ah_osdep.c 220367 2011-04-05 16:14:54Z adrian $
30 */
31#include "opt_ah.h"
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/kernel.h>
36#include <sys/module.h>
37#include <sys/sysctl.h>

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

168 */
169#include <sys/alq.h>
170#include <sys/pcpu.h>
171#include <dev/ath/ath_hal/ah_decode.h>
172
173static struct alq *ath_hal_alq;
174static int ath_hal_alq_emitdev; /* need to emit DEVICE record */
175static u_int ath_hal_alq_lost; /* count of lost records */
30 */
31#include "opt_ah.h"
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/kernel.h>
36#include <sys/module.h>
37#include <sys/sysctl.h>

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

168 */
169#include <sys/alq.h>
170#include <sys/pcpu.h>
171#include <dev/ath/ath_hal/ah_decode.h>
172
173static struct alq *ath_hal_alq;
174static int ath_hal_alq_emitdev; /* need to emit DEVICE record */
175static u_int ath_hal_alq_lost; /* count of lost records */
176static const char *ath_hal_logfile = "/tmp/ath_hal.log";
176static char ath_hal_logfile[MAXPATHLEN] = "/tmp/ath_hal.log";
177
178SYSCTL_STRING(_hw_ath_hal, OID_AUTO, alq_logfile, CTLFLAG_RW,
179 &ath_hal_logfile, sizeof(kernelname), "Name of ALQ logfile");
180
177static u_int ath_hal_alq_qsize = 64*1024;
178
179static int
180ath_hal_setlogging(int enable)
181{
182 int error;
183
184 if (enable) {

--- 176 unchanged lines hidden ---
181static u_int ath_hal_alq_qsize = 64*1024;
182
183static int
184ath_hal_setlogging(int enable)
185{
186 int error;
187
188 if (enable) {

--- 176 unchanged lines hidden ---