blob: 6a7267764ac950f39d5fff45f83c08eeb9401e11 [file] [log] [blame]
Luis R. Rodriguez795f5e22010-04-15 17:39:00 -04001/*
2 * Copyright (c) 2010 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */
16
17#include "hw.h"
18#include "hw-ops.h"
19#include "ar9003_phy.h"
20
21static void ar9003_hw_setup_calibration(struct ath_hw *ah,
22 struct ath9k_cal_list *currCal)
23{
24 /* TODO */
25}
26
27static bool ar9003_hw_calibrate(struct ath_hw *ah,
28 struct ath9k_channel *chan,
29 u8 rxchainmask,
30 bool longcal)
31{
32 /* TODO */
33 return false;
34}
35
36static bool ar9003_hw_init_cal(struct ath_hw *ah,
37 struct ath9k_channel *chan)
38{
39 /* TODO */
40 return false;
41}
42
43static void ar9003_hw_init_cal_settings(struct ath_hw *ah)
44{
45 /* TODO */
46}
47
48static bool ar9003_hw_iscal_supported(struct ath_hw *ah,
49 enum ath9k_cal_types calType)
50{
51 /* TODO */
52 return false;
53}
54
55void ar9003_hw_attach_calib_ops(struct ath_hw *ah)
56{
57 struct ath_hw_private_ops *priv_ops = ath9k_hw_private_ops(ah);
58 struct ath_hw_ops *ops = ath9k_hw_ops(ah);
59
60 priv_ops->init_cal_settings = ar9003_hw_init_cal_settings;
61 priv_ops->init_cal = ar9003_hw_init_cal;
62 priv_ops->setup_calibration = ar9003_hw_setup_calibration;
63 priv_ops->iscal_supported = ar9003_hw_iscal_supported;
64
65 ops->calibrate = ar9003_hw_calibrate;
66}