ath.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Copyright (c) 2008-2009 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. #ifndef ATH_H
  17. #define ATH_H
  18. #include <linux/skbuff.h>
  19. struct reg_dmn_pair_mapping {
  20. u16 regDmnEnum;
  21. u16 reg_5ghz_ctl;
  22. u16 reg_2ghz_ctl;
  23. };
  24. struct ath_regulatory {
  25. char alpha2[2];
  26. u16 country_code;
  27. u16 max_power_level;
  28. u32 tp_scale;
  29. u16 current_rd;
  30. u16 current_rd_ext;
  31. int16_t power_limit;
  32. struct reg_dmn_pair_mapping *regpair;
  33. };
  34. struct ath_common {
  35. u16 cachelsz;
  36. struct ath_regulatory regulatory;
  37. };
  38. struct sk_buff *ath_rxbuf_alloc(struct ath_common *common,
  39. u32 len,
  40. gfp_t gfp_mask);
  41. #endif /* ATH_H */