pwrseq.c 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2009-2013 Realtek Corporation.
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of version 2 of the GNU General Public License as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12. * more details.
  13. *
  14. * The full GNU General Public License is included in this distribution in the
  15. * file called LICENSE.
  16. *
  17. * Contact Information:
  18. * wlanfae <wlanfae@realtek.com>
  19. * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
  20. * Hsinchu 300, Taiwan.
  21. *
  22. * Larry Finger <Larry.Finger@lwfinger.net>
  23. *
  24. *****************************************************************************/
  25. #include "../pwrseqcmd.h"
  26. #include "pwrseq.h"
  27. /* drivers should parse below arrays and do the corresponding actions */
  28. /*3 Power on Array*/
  29. struct wlan_pwr_cfg rtl8188ee_power_on_flow[RTL8188EE_TRANS_CARDEMU_TO_ACT_STEPS
  30. + RTL8188EE_TRANS_END_STEPS] = {
  31. RTL8188EE_TRANS_CARDEMU_TO_ACT
  32. RTL8188EE_TRANS_END
  33. };
  34. /*3Radio off GPIO Array */
  35. struct wlan_pwr_cfg rtl8188ee_radio_off_flow[RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS
  36. + RTL8188EE_TRANS_END_STEPS] = {
  37. RTL8188EE_TRANS_ACT_TO_CARDEMU
  38. RTL8188EE_TRANS_END
  39. };
  40. /*3Card Disable Array*/
  41. struct wlan_pwr_cfg rtl8188ee_card_disable_flow
  42. [RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS +
  43. RTL8188EE_TRANS_CARDEMU_TO_PDN_STEPS +
  44. RTL8188EE_TRANS_END_STEPS] = {
  45. RTL8188EE_TRANS_ACT_TO_CARDEMU
  46. RTL8188EE_TRANS_CARDEMU_TO_CARDDIS
  47. RTL8188EE_TRANS_END
  48. };
  49. /*3 Card Enable Array*/
  50. struct wlan_pwr_cfg rtl8188ee_card_enable_flow
  51. [RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS +
  52. RTL8188EE_TRANS_CARDEMU_TO_PDN_STEPS +
  53. RTL8188EE_TRANS_END_STEPS] = {
  54. RTL8188EE_TRANS_CARDDIS_TO_CARDEMU
  55. RTL8188EE_TRANS_CARDEMU_TO_ACT
  56. RTL8188EE_TRANS_END
  57. };
  58. /*3Suspend Array*/
  59. struct wlan_pwr_cfg rtl8188ee_suspend_flow[RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS
  60. + RTL8188EE_TRANS_CARDEMU_TO_SUS_STEPS
  61. + RTL8188EE_TRANS_END_STEPS] = {
  62. RTL8188EE_TRANS_ACT_TO_CARDEMU
  63. RTL8188EE_TRANS_CARDEMU_TO_SUS
  64. RTL8188EE_TRANS_END
  65. };
  66. /*3 Resume Array*/
  67. struct wlan_pwr_cfg rtl8188ee_resume_flow[RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS
  68. + RTL8188EE_TRANS_CARDEMU_TO_SUS_STEPS
  69. + RTL8188EE_TRANS_END_STEPS] = {
  70. RTL8188EE_TRANS_SUS_TO_CARDEMU
  71. RTL8188EE_TRANS_CARDEMU_TO_ACT
  72. RTL8188EE_TRANS_END
  73. };
  74. /*3HWPDN Array*/
  75. struct wlan_pwr_cfg rtl8188ee_hwpdn_flow[RTL8188EE_TRANS_ACT_TO_CARDEMU_STEPS
  76. + RTL8188EE_TRANS_CARDEMU_TO_PDN_STEPS
  77. + RTL8188EE_TRANS_END_STEPS] = {
  78. RTL8188EE_TRANS_ACT_TO_CARDEMU
  79. RTL8188EE_TRANS_CARDEMU_TO_PDN
  80. RTL8188EE_TRANS_END
  81. };
  82. /*3 Enter LPS */
  83. struct wlan_pwr_cfg rtl8188ee_enter_lps_flow[RTL8188EE_TRANS_ACT_TO_LPS_STEPS
  84. + RTL8188EE_TRANS_END_STEPS] = {
  85. /*FW behavior*/
  86. RTL8188EE_TRANS_ACT_TO_LPS
  87. RTL8188EE_TRANS_END
  88. };
  89. /*3 Leave LPS */
  90. struct wlan_pwr_cfg rtl8188ee_leave_lps_flow[RTL8188EE_TRANS_LPS_TO_ACT_STEPS
  91. + RTL8188EE_TRANS_END_STEPS] = {
  92. /*FW behavior*/
  93. RTL8188EE_TRANS_LPS_TO_ACT
  94. RTL8188EE_TRANS_END
  95. };