Deleted Added
full compact
rt2560var.h (288095) rt2560var.h (289168)
1/* $FreeBSD: head/sys/dev/ral/rt2560var.h 288095 2015-09-22 06:34:07Z adrian $ */
1/* $FreeBSD: head/sys/dev/ral/rt2560var.h 289168 2015-10-12 05:21:51Z adrian $ */
2
3/*-
4 * Copyright (c) 2005, 2006
5 * Damien Bergamini <damien.bergamini@free.fr>
6 *
7 * Permission to use, copy, modify, and distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
9 * copyright notice and this permission notice appear in all copies.

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

141
142 int led_mode;
143 int hw_radio;
144 int rx_ant;
145 int tx_ant;
146 int nb_ant;
147
148 struct rt2560_rx_radiotap_header sc_rxtap;
2
3/*-
4 * Copyright (c) 2005, 2006
5 * Damien Bergamini <damien.bergamini@free.fr>
6 *
7 * Permission to use, copy, modify, and distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
9 * copyright notice and this permission notice appear in all copies.

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

141
142 int led_mode;
143 int hw_radio;
144 int rx_ant;
145 int tx_ant;
146 int nb_ant;
147
148 struct rt2560_rx_radiotap_header sc_rxtap;
149 int sc_rxtap_len;
150
151 struct rt2560_tx_radiotap_header sc_txtap;
149 struct rt2560_tx_radiotap_header sc_txtap;
152 int sc_txtap_len;
150
153#define RT2560_F_INPUT_RUNNING 0x1
154#define RT2560_F_RUNNING 0x2
155 int sc_flags;
156};
157
158int rt2560_attach(device_t, int);
159int rt2560_detach(void *);
160void rt2560_stop(void *);
161void rt2560_resume(void *);
162void rt2560_intr(void *);
163
164#define RAL_LOCK(sc) mtx_lock(&(sc)->sc_mtx)
165#define RAL_LOCK_ASSERT(sc) mtx_assert(&(sc)->sc_mtx, MA_OWNED)
166#define RAL_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx)
151#define RT2560_F_INPUT_RUNNING 0x1
152#define RT2560_F_RUNNING 0x2
153 int sc_flags;
154};
155
156int rt2560_attach(device_t, int);
157int rt2560_detach(void *);
158void rt2560_stop(void *);
159void rt2560_resume(void *);
160void rt2560_intr(void *);
161
162#define RAL_LOCK(sc) mtx_lock(&(sc)->sc_mtx)
163#define RAL_LOCK_ASSERT(sc) mtx_assert(&(sc)->sc_mtx, MA_OWNED)
164#define RAL_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx)