rtl8712_event.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2007 - 2010 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. * Modifications for inclusion into the Linux staging tree are
  19. * Copyright(c) 2010 Larry Finger. All rights reserved.
  20. *
  21. * Contact information:
  22. * WLAN FAE <wlanfae@realtek.com>
  23. * Larry Finger <Larry.Finger@lwfinger.net>
  24. *
  25. ******************************************************************************/
  26. #ifndef _RTL8712_EVENT_H_
  27. #define _RTL8712_EVENT_H_
  28. void r8712_event_handle(struct _adapter *padapter, uint *peventbuf);
  29. void r8712_got_addbareq_event_callback(struct _adapter *adapter, u8 *pbuf);
  30. enum rtl8712_c2h_event {
  31. GEN_EVT_CODE(_Read_MACREG) = 0, /*0*/
  32. GEN_EVT_CODE(_Read_BBREG),
  33. GEN_EVT_CODE(_Read_RFREG),
  34. GEN_EVT_CODE(_Read_EEPROM),
  35. GEN_EVT_CODE(_Read_EFUSE),
  36. GEN_EVT_CODE(_Read_CAM), /*5*/
  37. GEN_EVT_CODE(_Get_BasicRate),
  38. GEN_EVT_CODE(_Get_DataRate),
  39. GEN_EVT_CODE(_Survey), /*8*/
  40. GEN_EVT_CODE(_SurveyDone), /*9*/
  41. GEN_EVT_CODE(_JoinBss), /*10*/
  42. GEN_EVT_CODE(_AddSTA),
  43. GEN_EVT_CODE(_DelSTA),
  44. GEN_EVT_CODE(_AtimDone),
  45. GEN_EVT_CODE(_TX_Report),
  46. GEN_EVT_CODE(_CCX_Report), /*15*/
  47. GEN_EVT_CODE(_DTM_Report),
  48. GEN_EVT_CODE(_TX_Rate_Statistics),
  49. GEN_EVT_CODE(_C2HLBK),
  50. GEN_EVT_CODE(_FWDBG),
  51. GEN_EVT_CODE(_C2HFEEDBACK), /*20*/
  52. GEN_EVT_CODE(_ADDBA),
  53. GEN_EVT_CODE(_C2HBCN),
  54. GEN_EVT_CODE(_ReportPwrState), /*filen: only for PCIE, USB*/
  55. GEN_EVT_CODE(_WPS_PBC), /*24*/
  56. GEN_EVT_CODE(_ADDBAReq_Report), /*25*/
  57. MAX_C2HEVT
  58. };
  59. #ifdef _RTL8712_CMD_C_
  60. static struct fwevent wlanevents[] = {
  61. {0, NULL}, /*0*/
  62. {0, NULL},
  63. {0, NULL},
  64. {0, NULL},
  65. {0, NULL},
  66. {0, NULL},
  67. {0, NULL},
  68. {0, NULL},
  69. {0, &r8712_survey_event_callback}, /*8*/
  70. {sizeof(struct surveydone_event),
  71. &r8712_surveydone_event_callback}, /*9*/
  72. {0, &r8712_joinbss_event_callback}, /*10*/
  73. {sizeof(struct stassoc_event), &r8712_stassoc_event_callback},
  74. {sizeof(struct stadel_event), &r8712_stadel_event_callback},
  75. {0, &r8712_atimdone_event_callback},
  76. {0, NULL},
  77. {0, NULL}, /*15*/
  78. {0, NULL},
  79. {0, NULL},
  80. {0, NULL},
  81. {0, NULL}, /*fwdbg_event_callback},*/
  82. {0, NULL}, /*20*/
  83. {0, NULL},
  84. {0, NULL},
  85. {0, &r8712_cpwm_event_callback},
  86. {0, &r8712_wpspbc_event_callback},
  87. {0, &r8712_got_addbareq_event_callback},
  88. };
  89. #endif/*_RTL8712_CMD_C_*/
  90. #endif