pwrseq.c 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2009-2012 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 arrays below and do the corresponding actions */
  32. /*3 Power on Array*/
  33. struct wlan_pwr_cfg rtl8723A_power_on_flow[RTL8723A_TRANS_CARDEMU_TO_ACT_STPS
  34. + RTL8723A_TRANS_END_STPS] = {
  35. RTL8723A_TRANS_CARDEMU_TO_ACT,
  36. RTL8723A_TRANS_END
  37. };
  38. /*3Radio off GPIO Array */
  39. struct wlan_pwr_cfg rtl8723A_radio_off_flow[RTL8723A_TRANS_ACT_TO_CARDEMU_STPS
  40. + RTL8723A_TRANS_END_STPS] = {
  41. RTL8723A_TRANS_ACT_TO_CARDEMU,
  42. RTL8723A_TRANS_END
  43. };
  44. /*3Card Disable Array*/
  45. struct wlan_pwr_cfg
  46. rtl8723A_card_disable_flow[RTL8723A_TRANS_ACT_TO_CARDEMU_STPS
  47. + RTL8723A_TRANS_CARDEMU_TO_PDN_STPS
  48. + RTL8723A_TRANS_END_STPS] = {
  49. RTL8723A_TRANS_ACT_TO_CARDEMU,
  50. RTL8723A_TRANS_CARDEMU_TO_CARDDIS,
  51. RTL8723A_TRANS_END
  52. };
  53. /*3 Card Enable Array*/
  54. struct wlan_pwr_cfg rtl8723A_card_enable_flow[RTL8723A_TRANS_ACT_TO_CARDEMU_STPS
  55. + RTL8723A_TRANS_CARDEMU_TO_PDN_STPS
  56. + RTL8723A_TRANS_END_STPS] = {
  57. RTL8723A_TRANS_CARDDIS_TO_CARDEMU,
  58. RTL8723A_TRANS_CARDEMU_TO_ACT,
  59. RTL8723A_TRANS_END
  60. };
  61. /*3Suspend Array*/
  62. struct wlan_pwr_cfg rtl8723A_suspend_flow[RTL8723A_TRANS_ACT_TO_CARDEMU_STPS
  63. + RTL8723A_TRANS_CARDEMU_TO_SUS_STPS
  64. + RTL8723A_TRANS_END_STPS] = {
  65. RTL8723A_TRANS_ACT_TO_CARDEMU,
  66. RTL8723A_TRANS_CARDEMU_TO_SUS,
  67. RTL8723A_TRANS_END
  68. };
  69. /*3 Resume Array*/
  70. struct wlan_pwr_cfg rtl8723A_resume_flow[RTL8723A_TRANS_ACT_TO_CARDEMU_STPS
  71. + RTL8723A_TRANS_CARDEMU_TO_SUS_STPS
  72. + RTL8723A_TRANS_END_STPS] = {
  73. RTL8723A_TRANS_SUS_TO_CARDEMU,
  74. RTL8723A_TRANS_CARDEMU_TO_ACT,
  75. RTL8723A_TRANS_END
  76. };
  77. /*3HWPDN Array*/
  78. struct wlan_pwr_cfg rtl8723A_hwpdn_flow[RTL8723A_TRANS_ACT_TO_CARDEMU_STPS
  79. + RTL8723A_TRANS_CARDEMU_TO_PDN_STPS
  80. + RTL8723A_TRANS_END_STPS] = {
  81. RTL8723A_TRANS_ACT_TO_CARDEMU,
  82. RTL8723A_TRANS_CARDEMU_TO_PDN,
  83. RTL8723A_TRANS_END
  84. };
  85. /*3 Enter LPS */
  86. struct wlan_pwr_cfg rtl8723A_enter_lps_flow[RTL8723A_TRANS_ACT_TO_LPS_STPS
  87. + RTL8723A_TRANS_END_STPS] = {
  88. /*FW behavior*/
  89. RTL8723A_TRANS_ACT_TO_LPS,
  90. RTL8723A_TRANS_END
  91. };
  92. /*3 Leave LPS */
  93. struct wlan_pwr_cfg rtl8723A_leave_lps_flow[RTL8723A_TRANS_LPS_TO_ACT_STPS
  94. + RTL8723A_TRANS_END_STPS] = {
  95. /*FW behavior*/
  96. RTL8723A_TRANS_LPS_TO_ACT,
  97. RTL8723A_TRANS_END
  98. };