ar9003_calib.c 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  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. #include "hw.h"
  17. #include "hw-ops.h"
  18. #include "ar9003_phy.h"
  19. static void ar9003_hw_setup_calibration(struct ath_hw *ah,
  20. struct ath9k_cal_list *currCal)
  21. {
  22. /* TODO */
  23. }
  24. static bool ar9003_hw_calibrate(struct ath_hw *ah,
  25. struct ath9k_channel *chan,
  26. u8 rxchainmask,
  27. bool longcal)
  28. {
  29. /* TODO */
  30. return false;
  31. }
  32. static bool ar9003_hw_init_cal(struct ath_hw *ah,
  33. struct ath9k_channel *chan)
  34. {
  35. /* TODO */
  36. return false;
  37. }
  38. static void ar9003_hw_init_cal_settings(struct ath_hw *ah)
  39. {
  40. /* TODO */
  41. }
  42. static bool ar9003_hw_iscal_supported(struct ath_hw *ah,
  43. enum ath9k_cal_types calType)
  44. {
  45. /* TODO */
  46. return false;
  47. }
  48. void ar9003_hw_attach_calib_ops(struct ath_hw *ah)
  49. {
  50. struct ath_hw_private_ops *priv_ops = ath9k_hw_private_ops(ah);
  51. struct ath_hw_ops *ops = ath9k_hw_ops(ah);
  52. priv_ops->init_cal_settings = ar9003_hw_init_cal_settings;
  53. priv_ops->init_cal = ar9003_hw_init_cal;
  54. priv_ops->setup_calibration = ar9003_hw_setup_calibration;
  55. priv_ops->iscal_supported = ar9003_hw_iscal_supported;
  56. ops->calibrate = ar9003_hw_calibrate;
  57. }