ar9280.h revision 189747
1189747Ssam/*
2189747Ssam * Copyright (c) 2008-2009 Sam Leffler, Errno Consulting
3189747Ssam *
4189747Ssam * Permission to use, copy, modify, and/or distribute this software for any
5189747Ssam * purpose with or without fee is hereby granted, provided that the above
6189747Ssam * copyright notice and this permission notice appear in all copies.
7189747Ssam *
8189747Ssam * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9189747Ssam * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10189747Ssam * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11189747Ssam * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12189747Ssam * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13189747Ssam * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14189747Ssam * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15189747Ssam *
16189747Ssam * $FreeBSD: head/sys/dev/ath/ath_hal/ar5416/ar9280.h 189747 2009-03-12 18:18:28Z sam $
17189747Ssam */
18189747Ssam#ifndef _ATH_AR9280_H_
19189747Ssam#define _ATH_AR9280_H_
20189747Ssam
21189747Ssam#include "ar5416/ar5416.h"
22189747Ssam
23189747Ssamstruct ath_hal_9280 {
24189747Ssam	struct ath_hal_5416 ah_5416;
25189747Ssam
26189747Ssam	HAL_INI_ARRAY	ah_ini_xmodes;
27189747Ssam	HAL_INI_ARRAY	ah_ini_rxgain;
28189747Ssam	HAL_INI_ARRAY	ah_ini_txgain;
29189747Ssam};
30189747Ssam#define	AH9280(_ah)	((struct ath_hal_9280 *)(_ah))
31189747Ssam
32189747Ssam#define	AR9280_DEFAULT_RXCHAINMASK	3
33189747Ssam#define	AR9280_DEFAULT_TXCHAINMASK	1
34189747Ssam
35189747SsamHAL_BOOL ar9280RfAttach(struct ath_hal *, HAL_STATUS *);
36189747Ssam
37189747Ssamstruct ath_hal;
38189747Ssam
39189747SsamHAL_BOOL	ar9280SetAntennaSwitch(struct ath_hal *, HAL_ANT_SETTING);
40189747Ssam#endif	/* _ATH_AR9280_H_ */
41