halmac_api.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2016 - 2018 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. ******************************************************************************/
  15. #ifndef _HALMAC_API_H_
  16. #define _HALMAC_API_H_
  17. #define HALMAC_SVN_VER "11692M"
  18. #define HALMAC_MAJOR_VER 0x0001
  19. #define HALMAC_PROTOTYPE_VER 0x0005
  20. #define HALMAC_MINOR_VER 0x0000
  21. #define HALMAC_PATCH_VER 0x0002
  22. #define HALMAC_88XX_SUPPORT (HALMAC_8821C_SUPPORT || \
  23. HALMAC_8822B_SUPPORT || \
  24. HALMAC_8822C_SUPPORT || \
  25. HALMAC_8812F_SUPPORT)
  26. #define HALMAC_88XX_V1_SUPPORT HALMAC_8814B_SUPPORT
  27. #include "halmac_2_platform.h"
  28. #include "halmac_type.h"
  29. #include "halmac_hw_cfg.h"
  30. #include "halmac_usb_reg.h"
  31. #include "halmac_sdio_reg.h"
  32. #include "halmac_pcie_reg.h"
  33. #include "halmac_bit2.h"
  34. #include "halmac_reg2.h"
  35. #if HALMAC_PLATFORM_TESTPROGRAM
  36. #include "halmac_type_testprogram.h"
  37. #endif
  38. #ifndef HALMAC_USE_TYPEDEF
  39. #define HALMAC_USE_TYPEDEF 1
  40. #endif
  41. #if HALMAC_USE_TYPEDEF
  42. #include "halmac_typedef.h"
  43. #endif
  44. #if HALMAC_8822B_SUPPORT
  45. #include "halmac_reg_8822b.h"
  46. #include "halmac_bit_8822b.h"
  47. #endif
  48. #if HALMAC_8821C_SUPPORT
  49. #include "halmac_reg_8821c.h"
  50. #include "halmac_bit_8821c.h"
  51. #endif
  52. #if HALMAC_8814B_SUPPORT
  53. #include "halmac_reg_8814b.h"
  54. #include "halmac_bit_8814b.h"
  55. #endif
  56. #if HALMAC_8822C_SUPPORT
  57. #include "halmac_reg_8822c.h"
  58. #include "halmac_bit_8822c.h"
  59. #endif
  60. #if (HALMAC_PLATFORM_WINDOWS || HALMAC_PLATFORM_LINUX)
  61. #include "halmac_tx_desc_nic.h"
  62. #include "halmac_tx_desc_buffer_nic.h"
  63. #include "halmac_tx_desc_ie_nic.h"
  64. #include "halmac_rx_desc_nic.h"
  65. #include "halmac_tx_bd_nic.h"
  66. #include "halmac_rx_bd_nic.h"
  67. #include "halmac_fw_offload_c2h_nic.h"
  68. #include "halmac_fw_offload_h2c_nic.h"
  69. #include "halmac_h2c_extra_info_nic.h"
  70. #include "halmac_original_c2h_nic.h"
  71. #include "halmac_original_h2c_nic.h"
  72. #endif
  73. #if (HALMAC_PLATFORM_AP)
  74. #include "halmac_rx_desc_ap.h"
  75. #include "halmac_tx_desc_ap.h"
  76. #include "halmac_tx_desc_buffer_ap.h"
  77. #include "halmac_tx_desc_ie_ap.h"
  78. #include "halmac_fw_offload_c2h_ap.h"
  79. #include "halmac_fw_offload_h2c_ap.h"
  80. #include "halmac_h2c_extra_info_ap.h"
  81. #include "halmac_original_c2h_ap.h"
  82. #include "halmac_original_h2c_ap.h"
  83. #endif
  84. #include "halmac_tx_desc_chip.h"
  85. #include "halmac_rx_desc_chip.h"
  86. #include "halmac_tx_desc_buffer_chip.h"
  87. #include "halmac_tx_desc_ie_chip.h"
  88. enum halmac_ret_status
  89. halmac_init_adapter(void *drv_adapter, struct halmac_platform_api *pltfm_api,
  90. enum halmac_interface intf,
  91. struct halmac_adapter **halmac_adapter,
  92. struct halmac_api **halmac_api);
  93. enum halmac_ret_status
  94. halmac_deinit_adapter(struct halmac_adapter *adapter);
  95. enum halmac_ret_status
  96. halmac_halt_api(struct halmac_adapter *adapter);
  97. enum halmac_ret_status
  98. halmac_get_version(struct halmac_ver *version);
  99. #endif