Hal8812PwrSeq.c 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
  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. *
  19. ******************************************************************************/
  20. #include "Hal8812PwrSeq.h"
  21. #include <rtl8812a_hal.h>
  22. /*
  23. drivers should parse below arrays and do the corresponding actions
  24. */
  25. //3 Power on Array
  26. WLAN_PWR_CFG rtl8812_power_on_flow[RTL8812_TRANS_CARDEMU_TO_ACT_STEPS+RTL8812_TRANS_END_STEPS]=
  27. {
  28. RTL8812_TRANS_CARDEMU_TO_ACT
  29. RTL8812_TRANS_END
  30. };
  31. //3Radio off GPIO Array
  32. WLAN_PWR_CFG rtl8812_radio_off_flow[RTL8812_TRANS_ACT_TO_CARDEMU_STEPS+RTL8812_TRANS_END_STEPS]=
  33. {
  34. RTL8812_TRANS_ACT_TO_CARDEMU
  35. RTL8812_TRANS_END
  36. };
  37. //3Card Disable Array
  38. WLAN_PWR_CFG rtl8812_card_disable_flow[RTL8812_TRANS_ACT_TO_CARDEMU_STEPS+RTL8812_TRANS_CARDEMU_TO_PDN_STEPS+RTL8812_TRANS_END_STEPS]=
  39. {
  40. RTL8812_TRANS_ACT_TO_CARDEMU
  41. RTL8812_TRANS_CARDEMU_TO_CARDDIS
  42. RTL8812_TRANS_END
  43. };
  44. //3 Card Enable Array
  45. WLAN_PWR_CFG rtl8812_card_enable_flow[RTL8812_TRANS_ACT_TO_CARDEMU_STEPS+RTL8812_TRANS_CARDEMU_TO_PDN_STEPS+RTL8812_TRANS_END_STEPS]=
  46. {
  47. RTL8812_TRANS_CARDDIS_TO_CARDEMU
  48. RTL8812_TRANS_CARDEMU_TO_ACT
  49. RTL8812_TRANS_END
  50. };
  51. //3Suspend Array
  52. WLAN_PWR_CFG rtl8812_suspend_flow[RTL8812_TRANS_ACT_TO_CARDEMU_STEPS+RTL8812_TRANS_CARDEMU_TO_SUS_STEPS+RTL8812_TRANS_END_STEPS]=
  53. {
  54. RTL8812_TRANS_ACT_TO_CARDEMU
  55. RTL8812_TRANS_CARDEMU_TO_SUS
  56. RTL8812_TRANS_END
  57. };
  58. //3 Resume Array
  59. WLAN_PWR_CFG rtl8812_resume_flow[RTL8812_TRANS_ACT_TO_CARDEMU_STEPS+RTL8812_TRANS_CARDEMU_TO_SUS_STEPS+RTL8812_TRANS_END_STEPS]=
  60. {
  61. RTL8812_TRANS_SUS_TO_CARDEMU
  62. RTL8812_TRANS_CARDEMU_TO_ACT
  63. RTL8812_TRANS_END
  64. };
  65. //3HWPDN Array
  66. WLAN_PWR_CFG rtl8812_hwpdn_flow[RTL8812_TRANS_ACT_TO_CARDEMU_STEPS+RTL8812_TRANS_CARDEMU_TO_PDN_STEPS+RTL8812_TRANS_END_STEPS]=
  67. {
  68. RTL8812_TRANS_ACT_TO_CARDEMU
  69. RTL8812_TRANS_CARDEMU_TO_PDN
  70. RTL8812_TRANS_END
  71. };
  72. //3 Enter LPS
  73. WLAN_PWR_CFG rtl8812_enter_lps_flow[RTL8812_TRANS_ACT_TO_LPS_STEPS+RTL8812_TRANS_END_STEPS]=
  74. {
  75. //FW behavior
  76. RTL8812_TRANS_ACT_TO_LPS
  77. RTL8812_TRANS_END
  78. };
  79. //3 Leave LPS
  80. WLAN_PWR_CFG rtl8812_leave_lps_flow[RTL8812_TRANS_LPS_TO_ACT_STEPS+RTL8812_TRANS_END_STEPS]=
  81. {
  82. //FW behavior
  83. RTL8812_TRANS_LPS_TO_ACT
  84. RTL8812_TRANS_END
  85. };