Hal8821APwrSeq.c 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /*++
  2. Copyright (c) Realtek Semiconductor Corp. All rights reserved.
  3. Module Name:
  4. Hal8821PwrSeq.c
  5. Abstract:
  6. This file includes all kinds of Power Action event for RTL8821A and corresponding hardware configurtions which are released from HW SD.
  7. Major Change History:
  8. When Who What
  9. ---------- --------------- -------------------------------
  10. 2011-08-08 Roger Create.
  11. --*/
  12. #include "Hal8821APwrSeq.h"
  13. #include <rtl8812a_hal.h>
  14. /*
  15. drivers should parse below arrays and do the corresponding actions
  16. */
  17. //3 Power on Array
  18. WLAN_PWR_CFG rtl8821A_power_on_flow[RTL8821A_TRANS_CARDEMU_TO_ACT_STEPS+RTL8821A_TRANS_END_STEPS]=
  19. {
  20. RTL8821A_TRANS_CARDEMU_TO_ACT
  21. RTL8821A_TRANS_END
  22. };
  23. //3Radio off GPIO Array
  24. WLAN_PWR_CFG rtl8821A_radio_off_flow[RTL8821A_TRANS_ACT_TO_CARDEMU_STEPS+RTL8821A_TRANS_END_STEPS]=
  25. {
  26. RTL8821A_TRANS_ACT_TO_CARDEMU
  27. RTL8821A_TRANS_END
  28. };
  29. //3Card Disable Array
  30. WLAN_PWR_CFG rtl8821A_card_disable_flow[RTL8821A_TRANS_ACT_TO_CARDEMU_STEPS+RTL8821A_TRANS_CARDEMU_TO_PDN_STEPS+RTL8821A_TRANS_END_STEPS]=
  31. {
  32. RTL8821A_TRANS_ACT_TO_CARDEMU
  33. RTL8821A_TRANS_CARDEMU_TO_CARDDIS
  34. RTL8821A_TRANS_END
  35. };
  36. //3 Card Enable Array
  37. WLAN_PWR_CFG rtl8821A_card_enable_flow[RTL8821A_TRANS_CARDDIS_TO_CARDEMU_STEPS+RTL8821A_TRANS_CARDEMU_TO_ACT_STEPS+RTL8821A_TRANS_END_STEPS]=
  38. {
  39. RTL8821A_TRANS_CARDDIS_TO_CARDEMU
  40. RTL8821A_TRANS_CARDEMU_TO_ACT
  41. RTL8821A_TRANS_END
  42. };
  43. //3Suspend Array
  44. WLAN_PWR_CFG rtl8821A_suspend_flow[RTL8821A_TRANS_ACT_TO_CARDEMU_STEPS+RTL8821A_TRANS_CARDEMU_TO_SUS_STEPS+RTL8821A_TRANS_END_STEPS]=
  45. {
  46. RTL8821A_TRANS_ACT_TO_CARDEMU
  47. RTL8821A_TRANS_CARDEMU_TO_SUS
  48. RTL8821A_TRANS_END
  49. };
  50. //3 Resume Array
  51. WLAN_PWR_CFG rtl8821A_resume_flow[RTL8821A_TRANS_ACT_TO_CARDEMU_STEPS+RTL8821A_TRANS_CARDEMU_TO_SUS_STEPS+RTL8821A_TRANS_END_STEPS]=
  52. {
  53. RTL8821A_TRANS_SUS_TO_CARDEMU
  54. RTL8821A_TRANS_CARDEMU_TO_ACT
  55. RTL8821A_TRANS_END
  56. };
  57. //3HWPDN Array
  58. WLAN_PWR_CFG rtl8821A_hwpdn_flow[RTL8821A_TRANS_ACT_TO_CARDEMU_STEPS+RTL8821A_TRANS_CARDEMU_TO_PDN_STEPS+RTL8821A_TRANS_END_STEPS]=
  59. {
  60. RTL8821A_TRANS_ACT_TO_CARDEMU
  61. RTL8821A_TRANS_CARDEMU_TO_PDN
  62. RTL8821A_TRANS_END
  63. };
  64. //3 Enter LPS
  65. WLAN_PWR_CFG rtl8821A_enter_lps_flow[RTL8821A_TRANS_ACT_TO_LPS_STEPS+RTL8821A_TRANS_END_STEPS]=
  66. {
  67. //FW behavior
  68. RTL8821A_TRANS_ACT_TO_LPS
  69. RTL8821A_TRANS_END
  70. };
  71. //3 Leave LPS
  72. WLAN_PWR_CFG rtl8821A_leave_lps_flow[RTL8821A_TRANS_LPS_TO_ACT_STEPS+RTL8821A_TRANS_END_STEPS]=
  73. {
  74. //FW behavior
  75. RTL8821A_TRANS_LPS_TO_ACT
  76. RTL8821A_TRANS_END
  77. };