pwrseq.c 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. * You should have received a copy of the GNU General Public License along with
  15. * this program; if not, write to the Free Software Foundation, Inc.,
  16. * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
  17. *
  18. * The full GNU General Public License is included in this distribution in the
  19. * file called LICENSE.
  20. *
  21. * Contact Information:
  22. * wlanfae <wlanfae@realtek.com>
  23. * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
  24. * Hsinchu 300, Taiwan.
  25. *
  26. * Larry Finger <Larry.Finger@lwfinger.net>
  27. *
  28. *****************************************************************************/
  29. #include "pwrseqcmd.h"
  30. #include "pwrseq.h"
  31. /* drivers should parse below arrays and do the corresponding actions */
  32. /*3 Power on Array*/
  33. struct wlan_pwr_cfg rtl8188e_power_on_flow[RTL8188E_TRANS_CARDEMU_TO_ACT_STEPS +
  34. RTL8188E_TRANS_END_STEPS] = {
  35. RTL8188E_TRANS_CARDEMU_TO_ACT
  36. RTL8188E_TRANS_END
  37. };
  38. /*3Radio off GPIO Array */
  39. struct wlan_pwr_cfg rtl8188e_radio_off_flow[RTL8188E_TRANS_ACT_TO_CARDEMU_STEPS
  40. + RTL8188E_TRANS_END_STEPS] = {
  41. RTL8188E_TRANS_ACT_TO_CARDEMU
  42. RTL8188E_TRANS_END
  43. };
  44. /*3Card Disable Array*/
  45. struct wlan_pwr_cfg rtl8188e_card_disable_flow
  46. [RTL8188E_TRANS_ACT_TO_CARDEMU_STEPS +
  47. RTL8188E_TRANS_CARDEMU_TO_PDN_STEPS +
  48. RTL8188E_TRANS_END_STEPS] = {
  49. RTL8188E_TRANS_ACT_TO_CARDEMU
  50. RTL8188E_TRANS_CARDEMU_TO_CARDDIS
  51. RTL8188E_TRANS_END
  52. };
  53. /*3 Card Enable Array*/
  54. struct wlan_pwr_cfg rtl8188e_card_enable_flow
  55. [RTL8188E_TRANS_ACT_TO_CARDEMU_STEPS +
  56. RTL8188E_TRANS_CARDEMU_TO_PDN_STEPS +
  57. RTL8188E_TRANS_END_STEPS] = {
  58. RTL8188E_TRANS_CARDDIS_TO_CARDEMU
  59. RTL8188E_TRANS_CARDEMU_TO_ACT
  60. RTL8188E_TRANS_END
  61. };
  62. /*3Suspend Array*/
  63. struct wlan_pwr_cfg rtl8188e_suspend_flow[RTL8188E_TRANS_ACT_TO_CARDEMU_STEPS
  64. + RTL8188E_TRANS_CARDEMU_TO_SUS_STEPS
  65. + RTL8188E_TRANS_END_STEPS] = {
  66. RTL8188E_TRANS_ACT_TO_CARDEMU
  67. RTL8188E_TRANS_CARDEMU_TO_SUS
  68. RTL8188E_TRANS_END
  69. };
  70. /*3 Resume Array*/
  71. struct wlan_pwr_cfg rtl8188e_resume_flow[RTL8188E_TRANS_ACT_TO_CARDEMU_STEPS
  72. + RTL8188E_TRANS_CARDEMU_TO_SUS_STEPS
  73. + RTL8188E_TRANS_END_STEPS] = {
  74. RTL8188E_TRANS_SUS_TO_CARDEMU
  75. RTL8188E_TRANS_CARDEMU_TO_ACT
  76. RTL8188E_TRANS_END
  77. };
  78. /*3HWPDN Array*/
  79. struct wlan_pwr_cfg rtl8188e_hwpdn_flow[RTL8188E_TRANS_ACT_TO_CARDEMU_STEPS
  80. + RTL8188E_TRANS_CARDEMU_TO_PDN_STEPS
  81. + RTL8188E_TRANS_END_STEPS] = {
  82. RTL8188E_TRANS_ACT_TO_CARDEMU
  83. RTL8188E_TRANS_CARDEMU_TO_PDN
  84. RTL8188E_TRANS_END
  85. };
  86. /*3 Enter LPS */
  87. struct wlan_pwr_cfg rtl8188e_enter_lps_flow[RTL8188E_TRANS_ACT_TO_LPS_STEPS
  88. + RTL8188E_TRANS_END_STEPS] = {
  89. /*FW behavior*/
  90. RTL8188E_TRANS_ACT_TO_LPS
  91. RTL8188E_TRANS_END
  92. };
  93. /*3 Leave LPS */
  94. struct wlan_pwr_cfg rtl8188e_leave_lps_flow[RTL8188E_TRANS_LPS_TO_ACT_STEPS
  95. + RTL8188E_TRANS_END_STEPS] = {
  96. /*FW behavior*/
  97. RTL8188E_TRANS_LPS_TO_ACT
  98. RTL8188E_TRANS_END
  99. };