qualcomm.h 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. /*====================================================================*
  2. *
  3. * Copyright (c) 2013 Qualcomm Atheros, Inc.
  4. *
  5. * All rights reserved.
  6. *
  7. * Redistribution and use in source and binary forms, with or
  8. * without modification, are permitted (subject to the limitations
  9. * in the disclaimer below) provided that the following conditions
  10. * are met:
  11. *
  12. * * Redistributions of source code must retain the above copyright
  13. * notice, this list of conditions and the following disclaimer.
  14. *
  15. * * Redistributions in binary form must reproduce the above
  16. * copyright notice, this list of conditions and the following
  17. * disclaimer in the documentation and/or other materials
  18. * provided with the distribution.
  19. *
  20. * * Neither the name of Qualcomm Atheros nor the names of
  21. * its contributors may be used to endorse or promote products
  22. * derived from this software without specific prior written
  23. * permission.
  24. *
  25. * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
  26. * GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE
  27. * COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
  28. * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  29. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  30. * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
  31. * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  32. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  33. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  34. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  35. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  36. * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
  37. * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  38. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  39. *
  40. *--------------------------------------------------------------------*/
  41. /*====================================================================*
  42. *
  43. * qualcomm.h - Qualcomm Definitions and Declarations;
  44. *
  45. *. Qualcomm Atheros HomePlug AV Powerline Toolkit
  46. *: Copyright (c) 2009-2013 by Qualcomm Atheros Inc. ALL RIGHTS RESERVED;
  47. *; For demonstration and evaluation only; Not for production use.
  48. *
  49. * Contributor(s):
  50. * Charles Maier
  51. *
  52. *--------------------------------------------------------------------*/
  53. #ifndef QUALCOMM_HEADER
  54. #define QUALCOMM_HEADER
  55. /*====================================================================*
  56. * system header files;
  57. *--------------------------------------------------------------------*/
  58. #include <stdint.h>
  59. /*====================================================================*
  60. * header constants;
  61. *--------------------------------------------------------------------*/
  62. #define BROADCAST "FF:FF:FF:FF:FF:FF"
  63. #define LOCALCAST "00:B0:52:00:00:01"
  64. /*====================================================================*
  65. * Qualcomm Manufacturer Specific Management Message Types;
  66. *--------------------------------------------------------------------*/
  67. #define MS_PB_ENC 0x8000
  68. #define MS_ADC_CAP 0x8004
  69. #define MS_DISCOVER 0x8008
  70. /*====================================================================*
  71. * Qualcomm Vendor Specific Management Message Types;
  72. *--------------------------------------------------------------------*/
  73. #define VS_SW_VER 0xA000
  74. #define VS_WR_MEM 0xA004
  75. #define VS_RD_MEM 0xA008
  76. #define VS_ST_MAC 0xA00C
  77. #define VS_GET_NVM 0xA010
  78. #define VS_RSVD_1 0xA014
  79. #define VS_RSVD_2 0xA018
  80. #define VS_RS_DEV 0xA01C
  81. #define VS_WR_MOD 0xA020
  82. #define VS_RD_MOD 0xA024
  83. #define VS_MOD_NVM 0xA028
  84. #define VS_WD_RPT 0xA02C
  85. #define VS_LNK_STATS 0xA030
  86. #define VS_SNIFFER 0xA034
  87. #define VS_NW_INFO 0xA038
  88. #define VS_RSVD_3 0xA03C
  89. #define VS_CP_RPT 0xA040
  90. #define VS_ARPC 0xA044
  91. #define VS_SET_KEY 0xA050
  92. #define VS_MFG_STRING 0xA054
  93. #define VS_RD_CBLOCK 0xA058
  94. #define VS_SET_SDRAM 0xA05C
  95. #define VS_HOST_ACTION 0xA060
  96. #define VS_OP_ATTRIBUTES 0xA068
  97. #define VS_ENET_SETTINGS 0xA06C
  98. #define VS_TONE_MAP_CHAR 0xA070
  99. #define VS_NW_INFO_STATS 0xA074
  100. #define VS_SLAVE_MEM 0xA078
  101. #define VS_FAC_DEFAULTS 0xA07C
  102. #define VS_MULTICAST_INFO 0xA084
  103. #define VS_CLASSIFICATION 0xA088
  104. #define VS_RX_TONE_MAP_CHAR 0xA090
  105. #define VS_SET_LED_BEHAVIOR 0xA094
  106. #define VS_WRITE_AND_EXECUTE_APPLET 0xA098
  107. #define VS_MDIO_COMMAND 0xA09C
  108. #define VS_SLAVE_REG 0xA0A0
  109. #define VS_BANDWIDTH_LIMITING 0xA0A4
  110. #define VS_SNID_OPERATION 0xA0A8
  111. #define VS_NN_MITIGATE 0xA0AC
  112. #define VS_MODULE_OPERATION 0xA0B0
  113. #define VS_DIAG_NETWORK_PROBE 0xA0B4
  114. #define VS_PL_LINK_STATUS 0xA0B8
  115. #define VS_GPIO_STATE_CHANGE 0xA0BC
  116. #define VS_CONN_ADD 0xA0C0
  117. #define VS_CONN_MOD 0xA0C4
  118. #define VS_CONN_REL 0xA0C8
  119. #define VS_CONN_INFO 0xA0CC
  120. #define VS_MULTIPORT_LNK_STA 0xA0D0
  121. #define VS_EM_ID_TABLE 0xA0DC
  122. #define VS_STANDBY 0xA0E0
  123. #define VS_SLEEPSCHEDULE 0xA0E4
  124. #define VS_SLEEPSCHEDULE_NOTIFICATION 0xA0E8
  125. #define VS_MICROCONTROLLER_DIAG 0xA0F0
  126. #define VS_GET_PROPERTY 0xA0F8
  127. #define VS_SET_PROPERTY 0xA100
  128. #define VS_PHYSWITCH_MDIO 0xA104
  129. #define VS_SELFTEST_ONETIME_CONFIG 0xA10C
  130. #define VS_SELFTEST_RESULTS 0xA110
  131. #define VS_MDU_TRAFFIC_STATS 0xA114
  132. #define VS_FORWARD_CONFIG 0xA118
  133. #define VS_HYBRID_INFO 0xA200
  134. /*====================================================================*
  135. * module codes for VS_RD_MOD, VS_WR_MOD and VS_MOD_NVM;
  136. *--------------------------------------------------------------------*/
  137. #define VS_MODULE_MAC (1 << 0)
  138. #define VS_MODULE_PIB (1 << 1)
  139. #define VS_MODULE_FORCE (1 << 4)
  140. /*====================================================================*
  141. *
  142. *--------------------------------------------------------------------*/
  143. #endif