Deleted Added
full compact
ah_desc.h (229791) ah_desc.h (237153)
1/*
2 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
3 * Copyright (c) 2002-2008 Atheros Communications, Inc.
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 *
1/*
2 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
3 * Copyright (c) 2002-2008 Atheros Communications, Inc.
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 *
17 * $FreeBSD: head/sys/dev/ath/ath_hal/ah_desc.h 229791 2012-01-07 20:23:05Z adrian $
17 * $FreeBSD: head/sys/dev/ath/ath_hal/ah_desc.h 237153 2012-06-16 04:41:35Z adrian $
18 */
19
20#ifndef _DEV_ATH_DESC_H
21#define _DEV_ATH_DESC_H
22
23#include "opt_ah.h" /* NB: required for AH_SUPPORT_AR5416 */
24
25/*

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

220 struct ath_rx_status rx;/* recv status */
221 } ds_us;
222};
223
224#define ds_txstat ds_us.tx
225#define ds_rxstat ds_us.rx
226
227/* flags passed to tx descriptor setup methods */
18 */
19
20#ifndef _DEV_ATH_DESC_H
21#define _DEV_ATH_DESC_H
22
23#include "opt_ah.h" /* NB: required for AH_SUPPORT_AR5416 */
24
25/*

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

220 struct ath_rx_status rx;/* recv status */
221 } ds_us;
222};
223
224#define ds_txstat ds_us.tx
225#define ds_rxstat ds_us.rx
226
227/* flags passed to tx descriptor setup methods */
228/* This is a uint16_t field in ath_buf, just be warned! */
228#define HAL_TXDESC_CLRDMASK 0x0001 /* clear destination filter mask */
229#define HAL_TXDESC_NOACK 0x0002 /* don't wait for ACK */
230#define HAL_TXDESC_RTSENA 0x0004 /* enable RTS */
231#define HAL_TXDESC_CTSENA 0x0008 /* enable CTS */
232#define HAL_TXDESC_INTREQ 0x0010 /* enable per-descriptor interrupt */
233#define HAL_TXDESC_VEOL 0x0020 /* mark virtual EOL */
234/* NB: this only affects frame, not any RTS/CTS */
235#define HAL_TXDESC_DURENA 0x0040 /* enable h/w write of duration field */
236#define HAL_TXDESC_EXT_ONLY 0x0080 /* send on ext channel only (11n) */
237#define HAL_TXDESC_EXT_AND_CTL 0x0100 /* send on ext + ctl channels (11n) */
238#define HAL_TXDESC_VMF 0x0200 /* virtual more frag */
239
240/* flags passed to rx descriptor setup methods */
241#define HAL_RXDESC_INTREQ 0x0020 /* enable per-descriptor interrupt */
242#endif /* _DEV_ATH_DESC_H */
229#define HAL_TXDESC_CLRDMASK 0x0001 /* clear destination filter mask */
230#define HAL_TXDESC_NOACK 0x0002 /* don't wait for ACK */
231#define HAL_TXDESC_RTSENA 0x0004 /* enable RTS */
232#define HAL_TXDESC_CTSENA 0x0008 /* enable CTS */
233#define HAL_TXDESC_INTREQ 0x0010 /* enable per-descriptor interrupt */
234#define HAL_TXDESC_VEOL 0x0020 /* mark virtual EOL */
235/* NB: this only affects frame, not any RTS/CTS */
236#define HAL_TXDESC_DURENA 0x0040 /* enable h/w write of duration field */
237#define HAL_TXDESC_EXT_ONLY 0x0080 /* send on ext channel only (11n) */
238#define HAL_TXDESC_EXT_AND_CTL 0x0100 /* send on ext + ctl channels (11n) */
239#define HAL_TXDESC_VMF 0x0200 /* virtual more frag */
240
241/* flags passed to rx descriptor setup methods */
242#define HAL_RXDESC_INTREQ 0x0020 /* enable per-descriptor interrupt */
243#endif /* _DEV_ATH_DESC_H */