pwrseq.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  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. * 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. #ifndef __RTL8723E_PWRSEQ_H__
  26. #define __RTL8723E_PWRSEQ_H__
  27. #include "../pwrseqcmd.h"
  28. /*
  29. * Check document WM-20110607-Paul-RTL8723A_Power_Architecture-R02.vsd
  30. * There are 6 HW Power States:
  31. * 0: POFF--Power Off
  32. * 1: PDN--Power Down
  33. * 2: CARDEMU--Card Emulation
  34. * 3: ACT--Active Mode
  35. * 4: LPS--Low Power State
  36. * 5: SUS--Suspend
  37. *
  38. * The transision from different states are defined below
  39. * TRANS_CARDEMU_TO_ACT
  40. * TRANS_ACT_TO_CARDEMU
  41. * TRANS_CARDEMU_TO_SUS
  42. * TRANS_SUS_TO_CARDEMU
  43. * TRANS_CARDEMU_TO_PDN
  44. * TRANS_ACT_TO_LPS
  45. * TRANS_LPS_TO_ACT
  46. *
  47. * TRANS_END
  48. */
  49. #define RTL8723A_TRANS_CARDEMU_TO_ACT_STEPS 10
  50. #define RTL8723A_TRANS_ACT_TO_CARDEMU_STEPS 10
  51. #define RTL8723A_TRANS_CARDEMU_TO_SUS_STEPS 10
  52. #define RTL8723A_TRANS_SUS_TO_CARDEMU_STEPS 10
  53. #define RTL8723A_TRANS_CARDEMU_TO_PDN_STEPS 10
  54. #define RTL8723A_TRANS_PDN_TO_CARDEMU_STEPS 10
  55. #define RTL8723A_TRANS_ACT_TO_LPS_STEPS 15
  56. #define RTL8723A_TRANS_LPS_TO_ACT_STEPS 15
  57. #define RTL8723A_TRANS_END_STEPS 1
  58. /* format */
  59. /* { offset, cut_msk, fab_msk|interface_msk, base|cmd, msk, value }*/
  60. #define RTL8723A_TRANS_CARDEMU_TO_ACT \
  61. /* disable SW LPS 0x04[10]=0*/ \
  62. {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK,\
  63. PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(2), 0},\
  64. /* wait till 0x04[17] = 1 power ready*/ \
  65. {0x0006, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK,\
  66. PWR_BASEADDR_MAC, PWR_CMD_POLLING, BIT(1), BIT(1)},\
  67. /* release WLON reset 0x04[16]=1*/ \
  68. {0x0006, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK,\
  69. PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(0), BIT(0)},\
  70. /* disable HWPDN 0x04[15]=0*/ \
  71. {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK,\
  72. PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(7), 0},\
  73. /* disable WL suspend*/ \
  74. {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK,\
  75. PWR_BASEADDR_MAC, PWR_CMD_WRITE, (BIT(4)|BIT(3)), 0},\
  76. /* polling until return 0*/ \
  77. {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK,\
  78. PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(0), BIT(0)},\
  79. {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK,\
  80. PWR_BASEADDR_MAC, PWR_CMD_POLLING, BIT(0), 0},
  81. /* format */
  82. /* { offset, cut_msk, fab_msk|interface_msk, base|cmd, msk, value }, */
  83. #define RTL8723A_TRANS_ACT_TO_CARDEMU \
  84. /*0x1F[7:0] = 0 turn off RF*/ \
  85. {0x001F, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK,\
  86. PWR_BASEADDR_MAC, PWR_CMD_WRITE, 0xFF, 0}, \
  87. {0x004E, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK,\
  88. PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(7), 0},\
  89. {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK,\
  90. PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(1), BIT(1)}, \
  91. {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK,\
  92. PWR_BASEADDR_MAC, PWR_CMD_POLLING, BIT(1), 0},
  93. /* format */
  94. /* { offset, cut_msk, fab_msk|interface_msk, base|cmd, msk, value },*/
  95. #define RTL8723A_TRANS_CARDEMU_TO_SUS \
  96. /*0x04[12:11] = 2b'11 enable WL suspend for PCIe*/ \
  97. {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_PCI_MSK,\
  98. PWR_BASEADDR_MAC, PWR_CMD_WRITE, \
  99. BIT(4)|BIT(3), (BIT(4)|BIT(3))},\
  100. /*0x04[12:11] = 2b'01 enable WL suspend*/ \
  101. {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_USB_MSK| \
  102. PWR_INTF_SDIO_MSK,\
  103. PWR_BASEADDR_MAC, \
  104. PWR_CMD_WRITE, \
  105. BIT(3)|BIT(4), BIT(3)}, \
  106. /*0x04[12:11] = 2b'11 enable WL suspend for PCIe*/ \
  107. {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  108. PWR_INTF_PCI_MSK, PWR_BASEADDR_MAC, \
  109. PWR_CMD_WRITE, BIT(3)|BIT(4), \
  110. BIT(3)|BIT(4)}, \
  111. /*Set SDIO suspend local register*/ \
  112. {0x0086, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  113. PWR_INTF_SDIO_MSK, PWR_BASEADDR_SDIO,\
  114. PWR_CMD_WRITE, BIT(0), BIT(0)}, \
  115. /*wait power state to suspend*/ \
  116. {0x0086, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  117. PWR_INTF_SDIO_MSK, PWR_BASEADDR_SDIO,\
  118. PWR_CMD_POLLING, BIT(1), 0},
  119. /* format */
  120. /* { offset, cut_msk, fab_msk|interface_msk, base|cmd, msk, value }, */
  121. #define RTL8723A_TRANS_SUS_TO_CARDEMU \
  122. /*Set SDIO suspend local register*/ \
  123. {0x0086, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_SDIO_MSK,\
  124. PWR_BASEADDR_SDIO, PWR_CMD_WRITE, BIT(0), 0},\
  125. /*wait power state to suspend*/ \
  126. {0x0086, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_SDIO_MSK,\
  127. PWR_BASEADDR_SDIO, PWR_CMD_POLLING, BIT(1), BIT(1)},\
  128. /*0x04[12:11] = 2b'00 disable WL suspend*/ \
  129. {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK,\
  130. PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(3)|BIT(4), 0},
  131. /* format */
  132. /* { offset, cut_msk, fab_msk|interface_msk, base|cmd, msk, value }, */
  133. #define RTL8723A_TRANS_CARDEMU_TO_CARDDIS \
  134. /*0x04[12:11] = 2b'01 enable WL suspend*/ \
  135. {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  136. PWR_INTF_USB_MSK|PWR_INTF_SDIO_MSK, \
  137. PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT(3)|BIT(4), BIT(3)}, \
  138. /*0x04[10] = 1, enable SW LPS*/ \
  139. {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  140. PWR_INTF_PCI_MSK, PWR_BASEADDR_MAC,\
  141. PWR_CMD_WRITE, BIT(2), BIT(2)}, \
  142. /*Set SDIO suspend local register*/ \
  143. {0x0086, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  144. PWR_INTF_SDIO_MSK, PWR_BASEADDR_SDIO,\
  145. PWR_CMD_WRITE, BIT(0), BIT(0)}, \
  146. /*wait power state to suspend*/ \
  147. {0x0086, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  148. PWR_INTF_SDIO_MSK, PWR_BASEADDR_SDIO,\
  149. PWR_CMD_POLLING, BIT(1), 0},
  150. /* format */
  151. /* { offset, cut_msk, fab_msk|interface_msk, base|cmd, msk, value }, */
  152. #define RTL8723A_TRANS_CARDDIS_TO_CARDEMU\
  153. /*Set SDIO suspend local register*/ \
  154. {0x0086, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  155. PWR_INTF_SDIO_MSK, PWR_BASEADDR_SDIO,\
  156. PWR_CMD_WRITE, BIT(0), 0}, \
  157. /*wait power state to suspend*/ \
  158. {0x0086, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  159. PWR_INTF_SDIO_MSK, PWR_BASEADDR_SDIO,\
  160. PWR_CMD_POLLING, BIT(1), BIT(1)},\
  161. /*0x04[12:11] = 2b'00 disable WL suspend*/ \
  162. {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  163. PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC,\
  164. PWR_CMD_WRITE, BIT(3)|BIT(4), 0},\
  165. /*PCIe DMA start*/ \
  166. {0x0301, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  167. PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC,\
  168. PWR_CMD_WRITE, 0xFF, 0},
  169. /* format */
  170. /* { offset, cut_msk, fab_msk|interface_msk, base|cmd, msk, value }, */
  171. #define RTL8723A_TRANS_CARDEMU_TO_PDN \
  172. {0x0006, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  173. PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC,\
  174. PWR_CMD_WRITE, BIT(0), 0},/* 0x04[16] = 0*/\
  175. {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  176. PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC,\
  177. PWR_CMD_WRITE, BIT(7), BIT(7)},/* 0x04[15] = 1*/
  178. /* format */
  179. /* { offset, cut_msk, fab_msk|interface_msk, base|cmd, msk, value }, */
  180. #define RTL8723A_TRANS_PDN_TO_CARDEMU \
  181. {0x0005, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  182. PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC,\
  183. PWR_CMD_WRITE, BIT(7), 0},/* 0x04[15] = 0*/
  184. /* format */
  185. /* { offset, cut_msk, fab_msk|interface_msk, base|cmd, msk, value }, */
  186. #define RTL8723A_TRANS_ACT_TO_LPS \
  187. {0x0301, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  188. PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC,\
  189. PWR_CMD_WRITE, 0xFF, 0xFF},/*PCIe DMA stop*/ \
  190. {0x0522, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  191. PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC,\
  192. PWR_CMD_WRITE, 0xFF, 0x7F},/*Tx Pause*/ \
  193. /*Should be zero if no packet is transmitting*/ \
  194. {0x05F8, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  195. PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC,\
  196. PWR_CMD_POLLING, 0xFF, 0},\
  197. /*Should be zero if no packet is transmitting*/ \
  198. {0x05F9, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  199. PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC,\
  200. PWR_CMD_POLLING, 0xFF, 0},\
  201. /*Should be zero if no packet is transmitting*/ \
  202. {0x05FA, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  203. PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC,\
  204. PWR_CMD_POLLING, 0xFF, 0},\
  205. /*Should be zero if no packet is transmitting*/ \
  206. {0x05FB, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  207. PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC,\
  208. PWR_CMD_POLLING, 0xFF, 0},\
  209. /*CCK and OFDM are disabled,and clock are gated*/ \
  210. {0x0002, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  211. PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC,\
  212. PWR_CMD_WRITE, BIT(0), 0},\
  213. {0x0002, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  214. PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC,\
  215. PWR_CMD_DELAY, 0, PWRSEQ_DELAY_US},/*Delay 1us*/\
  216. {0x0002, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  217. PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC,\
  218. PWR_CMD_WRITE, BIT(1), 0},/*Whole BB is reset*/ \
  219. {0x0100, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  220. PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC,\
  221. PWR_CMD_WRITE, 0xFF, 0x3F},/*Reset MAC TRX*/ \
  222. {0x0101, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  223. PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC,\
  224. PWR_CMD_WRITE, BIT(1), 0},/*check if removed later*/ \
  225. /*Respond TxOK to scheduler*/ \
  226. {0x0553, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  227. PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC,\
  228. PWR_CMD_WRITE, BIT(5), BIT(5)},\
  229. #define RTL8723A_TRANS_LPS_TO_ACT\
  230. /* format */ \
  231. /* { offset, cut_msk, fab_msk|interface_msk, base|cmd, msk, value }, */ \
  232. {0x0080, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  233. PWR_INTF_SDIO_MSK, PWR_BASEADDR_SDIO,\
  234. PWR_CMD_WRITE, 0xFF, 0x84}, /*SDIO RPWM*/\
  235. {0xFE58, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  236. PWR_INTF_USB_MSK, PWR_BASEADDR_MAC,\
  237. PWR_CMD_WRITE, 0xFF, 0x84}, /*USB RPWM*/\
  238. {0x0361, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  239. PWR_INTF_PCI_MSK, PWR_BASEADDR_MAC,\
  240. PWR_CMD_WRITE, 0xFF, 0x84}, /*PCIe RPWM*/\
  241. {0x0002, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  242. PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC,\
  243. PWR_CMD_DELAY, 0, PWRSEQ_DELAY_MS}, /*Delay*/\
  244. /*. 0x08[4] = 0 switch TSF to 40M*/\
  245. {0x0008, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  246. PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC,\
  247. PWR_CMD_WRITE, BIT(4), 0}, \
  248. /*Polling 0x109[7]=0 TSF in 40M*/\
  249. {0x0109, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  250. PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC,\
  251. PWR_CMD_POLLING, BIT(7), 0}, \
  252. /*. 0x29[7:6] = 2b'00 enable BB clock*/\
  253. {0x0029, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  254. PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC,\
  255. PWR_CMD_WRITE, BIT(6)|BIT(7), 0},\
  256. /*. 0x101[1] = 1*/\
  257. {0x0101, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  258. PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC,\
  259. PWR_CMD_WRITE, BIT(1), BIT(1)},\
  260. /*. 0x100[7:0] = 0xFF enable WMAC TRX*/\
  261. {0x0100, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  262. PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC,\
  263. PWR_CMD_WRITE, 0xFF, 0xFF},\
  264. /*. 0x02[1:0] = 2b'11 enable BB macro*/\
  265. {0x0002, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  266. PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC,\
  267. PWR_CMD_WRITE, BIT(1)|BIT(0), BIT(1)|BIT(0)},\
  268. {0x0522, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, \
  269. PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC,\
  270. PWR_CMD_WRITE, 0xFF, 0}, /*. 0x522 = 0*/
  271. /* format */
  272. /* { offset, cut_msk, fab_msk|interface_msk, base|cmd, msk, value }, */
  273. #define RTL8723A_TRANS_END \
  274. {0xFFFF, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK,\
  275. 0, PWR_CMD_END, 0, 0}
  276. extern struct wlan_pwr_cfg rtl8723A_power_on_flow
  277. [RTL8723A_TRANS_CARDEMU_TO_ACT_STEPS +
  278. RTL8723A_TRANS_END_STEPS];
  279. extern struct wlan_pwr_cfg rtl8723A_radio_off_flow
  280. [RTL8723A_TRANS_ACT_TO_CARDEMU_STEPS +
  281. RTL8723A_TRANS_END_STEPS];
  282. extern struct wlan_pwr_cfg rtl8723A_card_disable_flow
  283. [RTL8723A_TRANS_ACT_TO_CARDEMU_STEPS +
  284. RTL8723A_TRANS_CARDEMU_TO_PDN_STEPS +
  285. RTL8723A_TRANS_END_STEPS];
  286. extern struct wlan_pwr_cfg rtl8723A_card_enable_flow
  287. [RTL8723A_TRANS_ACT_TO_CARDEMU_STEPS +
  288. RTL8723A_TRANS_CARDEMU_TO_PDN_STEPS +
  289. RTL8723A_TRANS_END_STEPS];
  290. extern struct wlan_pwr_cfg rtl8723A_suspend_flow
  291. [RTL8723A_TRANS_ACT_TO_CARDEMU_STEPS +
  292. RTL8723A_TRANS_CARDEMU_TO_SUS_STEPS +
  293. RTL8723A_TRANS_END_STEPS];
  294. extern struct wlan_pwr_cfg rtl8723A_resume_flow
  295. [RTL8723A_TRANS_ACT_TO_CARDEMU_STEPS +
  296. RTL8723A_TRANS_CARDEMU_TO_SUS_STEPS +
  297. RTL8723A_TRANS_END_STEPS];
  298. extern struct wlan_pwr_cfg rtl8723A_hwpdn_flow
  299. [RTL8723A_TRANS_ACT_TO_CARDEMU_STEPS +
  300. RTL8723A_TRANS_CARDEMU_TO_PDN_STEPS +
  301. RTL8723A_TRANS_END_STEPS];
  302. extern struct wlan_pwr_cfg rtl8723A_enter_lps_flow
  303. [RTL8723A_TRANS_ACT_TO_LPS_STEPS + RTL8723A_TRANS_END_STEPS];
  304. extern struct wlan_pwr_cfg rtl8723A_leave_lps_flow
  305. [RTL8723A_TRANS_LPS_TO_ACT_STEPS + RTL8723A_TRANS_END_STEPS];
  306. /* RTL8723 Power Configuration CMDs for PCIe interface */
  307. #define Rtl8723_NIC_PWR_ON_FLOW rtl8723A_power_on_flow
  308. #define Rtl8723_NIC_RF_OFF_FLOW rtl8723A_radio_off_flow
  309. #define Rtl8723_NIC_DISABLE_FLOW rtl8723A_card_disable_flow
  310. #define Rtl8723_NIC_ENABLE_FLOW rtl8723A_card_enable_flow
  311. #define Rtl8723_NIC_SUSPEND_FLOW rtl8723A_suspend_flow
  312. #define Rtl8723_NIC_RESUME_FLOW rtl8723A_resume_flow
  313. #define Rtl8723_NIC_PDN_FLOW rtl8723A_hwpdn_flow
  314. #define Rtl8723_NIC_LPS_ENTER_FLOW rtl8723A_enter_lps_flow
  315. #define Rtl8723_NIC_LPS_LEAVE_FLOW rtl8723A_leave_lps_flow
  316. #endif