init.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * This file is part of wl1251
  4. *
  5. * Copyright (C) 2009 Nokia Corporation
  6. */
  7. #ifndef __WL1251_INIT_H__
  8. #define __WL1251_INIT_H__
  9. #include "wl1251.h"
  10. enum {
  11. /* best effort/legacy */
  12. AC_BE = 0,
  13. /* background */
  14. AC_BK = 1,
  15. /* video */
  16. AC_VI = 2,
  17. /* voice */
  18. AC_VO = 3,
  19. /* broadcast dummy access category */
  20. AC_BCAST = 4,
  21. NUM_ACCESS_CATEGORIES = 4
  22. };
  23. /* following are defult values for the IE fields*/
  24. #define CWMIN_BK 15
  25. #define CWMIN_BE 15
  26. #define CWMIN_VI 7
  27. #define CWMIN_VO 3
  28. #define CWMAX_BK 1023
  29. #define CWMAX_BE 63
  30. #define CWMAX_VI 15
  31. #define CWMAX_VO 7
  32. /* slot number setting to start transmission at PIFS interval */
  33. #define AIFS_PIFS 1
  34. /*
  35. * slot number setting to start transmission at DIFS interval - normal DCF
  36. * access
  37. */
  38. #define AIFS_DIFS 2
  39. #define AIFSN_BK 7
  40. #define AIFSN_BE 3
  41. #define AIFSN_VI AIFS_PIFS
  42. #define AIFSN_VO AIFS_PIFS
  43. #define TXOP_BK 0
  44. #define TXOP_BE 0
  45. #define TXOP_VI 3008
  46. #define TXOP_VO 1504
  47. int wl1251_hw_init_hwenc_config(struct wl1251 *wl);
  48. int wl1251_hw_init_templates_config(struct wl1251 *wl);
  49. int wl1251_hw_init_rx_config(struct wl1251 *wl, u32 config, u32 filter);
  50. int wl1251_hw_init_phy_config(struct wl1251 *wl);
  51. int wl1251_hw_init_beacon_filter(struct wl1251 *wl);
  52. int wl1251_hw_init_pta(struct wl1251 *wl);
  53. int wl1251_hw_init_energy_detection(struct wl1251 *wl);
  54. int wl1251_hw_init_beacon_broadcast(struct wl1251 *wl);
  55. int wl1251_hw_init_power_auth(struct wl1251 *wl);
  56. int wl1251_hw_init_mem_config(struct wl1251 *wl);
  57. int wl1251_hw_init(struct wl1251 *wl);
  58. #endif