homeplug.h.html 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. <?xml version='1.0' encoding='iso-8859-1'?>
  2. <!doctype html public '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
  3. <html xmlns='http://www.w3c.org/1999/xhtml' lang='en-us'>
  4. <head>
  5. <title>
  6. homeplug.h
  7. </title>
  8. <meta http-equiv='content-type' content='text/html;iso-8859-1'/>
  9. <meta name='generator' content='motley-tools 1.9.4 13:40:33 Feb 18 2015'/>
  10. <meta name='author' content='cmaier@cmassoc.net'/>
  11. <meta name='robots' content='noindex,nofollow'/>
  12. <link href='toolkit.css' rel='stylesheet' type='text/css'/>
  13. </head>
  14. <body>
  15. <div class='headerlink'>
  16. [<a href='getoptv.h.html' title=' getoptv.h '>PREV</a>]
  17. [<a href='toolkit.html' title=' Index '>HOME</a>]
  18. [<a href='HPAVKey.h.html' title=' HPAVKey.h '>NEXT</a>]
  19. </div>
  20. <pre>
  21. /*====================================================================*
  22. *
  23. * Copyright (c) 2013 Qualcomm Atheros, Inc.
  24. *
  25. * All rights reserved.
  26. *
  27. * Redistribution and use in source and binary forms, with or
  28. * without modification, are permitted (subject to the limitations
  29. * in the disclaimer below) provided that the following conditions
  30. * are met:
  31. *
  32. * * Redistributions of source code must retain the above copyright
  33. * notice, this list of conditions and the following disclaimer.
  34. *
  35. * * Redistributions in binary form must reproduce the above
  36. * copyright notice, this list of conditions and the following
  37. * disclaimer in the documentation and/or other materials
  38. * provided with the distribution.
  39. *
  40. * * Neither the name of Qualcomm Atheros nor the names of
  41. * its contributors may be used to endorse or promote products
  42. * derived from this software without specific prior written
  43. * permission.
  44. *
  45. * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
  46. * GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE
  47. * COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot; AND ANY EXPRESS OR
  48. * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  49. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  50. * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
  51. * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  52. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  53. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  54. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  55. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  56. * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
  57. * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  58. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  59. *
  60. *--------------------------------------------------------------------*/
  61. /*====================================================================*
  62. *
  63. * homeplug.h - HomePlug Definitions and Declarations;
  64. *
  65. *. Qualcomm Atheros HomePlug AV Powerline Toolkit
  66. *: Copyright (c) 2009-2013 by Qualcomm Atheros Inc. ALL RIGHTS RESERVED;
  67. *; For demonstration and evaluation only; Not for production use.
  68. *
  69. * Contributor(s):
  70. * Charles Maier &lt;cmaier@qca.qualcomm.com&gt;
  71. * Alex Vasquez &lt;alex.vasquez@qca.qualcomm.com&gt;
  72. *
  73. *--------------------------------------------------------------------*/
  74. #ifndef HOMEPLUG_HEADER
  75. #define HOMEPLUG_HEADER
  76. /*====================================================================*
  77. * HomePlug AV Constants;
  78. *--------------------------------------------------------------------*/
  79. #define HOMEPLUG_MMV 0x01
  80. #define HOMEPLUG_MMTYPE 0x0000
  81. /*====================================================================*
  82. * HomePlug Management Message Ranges for Information Only;
  83. *--------------------------------------------------------------------*/
  84. #define CC_MMTYPE_MIN 0x0000
  85. #define CC_MMTYPE_MAX 0x1FFF
  86. #define CP_MMTYPE_MIN 0x2000
  87. #define CP_MMTYPE_MAX 0x3FFF
  88. #define NN_MMTYPE_MIN 0x4000
  89. #define NN_MMTYPE_MAX 0x5FFF
  90. #define CM_MMTYPE_MIN 0x6000
  91. #define CM_MMTYPE_MAX 0x7FFF
  92. #define MS_MMTYPE_MIN 0x8000
  93. #define MS_MMTYPE_MAX 0x9FFF
  94. #define VS_MMTYPE_MIN 0xA000
  95. #define VS_MMTYPE_MAX 0xBFFF
  96. #define HA_MMTYPE_MIN 0xC000
  97. #define HA_MMTYPE_MAX 0xFFFF
  98. /*====================================================================*
  99. * HomePlug AV MMEs have 4 variants indicated by the 2 MMTYPE LSBs;
  100. *--------------------------------------------------------------------*/
  101. #define MMTYPE_CC 0x0000
  102. #define MMTYPE_CP 0x2000
  103. #define MMTYPE_NN 0x4000
  104. #define MMTYPE_CM 0x6000
  105. #define MMTYPE_MS 0x8000
  106. #define MMTYPE_VS 0xA000
  107. #define MMTYPE_XX 0xC000
  108. #ifndef IHPAPI_HEADER
  109. #define MMTYPE_REQ 0x0000
  110. #define MMTYPE_CNF 0x0001
  111. #define MMTYPE_IND 0x0002
  112. #define MMTYPE_RSP 0x0003
  113. #define MMTYPE_MODE (MMTYPE_REQ|MMTYPE_CNF|MMTYPE_IND|MMTYPE_RSP)
  114. #define MMTYPE_MASK ~(MMTYPE_REQ|MMTYPE_CNF|MMTYPE_IND|MMTYPE_RSP)
  115. #endif
  116. /*====================================================================*
  117. * HomePlug AV Management Message Types;
  118. *--------------------------------------------------------------------*/
  119. #define CC_CCO_APPOINT 0x0000
  120. #define CC_BACKUP_APPOINT 0x0004
  121. #define CC_LINK_INFO 0x0008
  122. #define CC_HANDOVER 0x000C
  123. #define CC_HANDOVER_INFO 0x0010
  124. #define CC_DISCOVER_LIST 0x0014
  125. #define CC_LINK_NEW 0x0018
  126. #define CC_LINK_MOD 0x001C
  127. #define CC_LINK_SQZ 0x0020
  128. #define CC_LINK_REL 0x0024
  129. #define CC_DETECT_REPORT 0x0028
  130. #define CC_WHO_RU 0x002C
  131. #define CC_ASSOC 0x0030
  132. #define CC_LEAVE 0x0034
  133. #define CC_SET_TEI_MAP 0x0038
  134. #define CC_RELAY 0x003C
  135. #define CC_BEACON_RELIABILITY 0x0040
  136. #define CC_ALLOC_MOVE 0x0044
  137. #define CC_ACCESS_NEW 0x0048
  138. #define CC_ACCESS_REL 0x004C
  139. #define CC_DCPPC 0x0050
  140. #define CC_HP1_DET 0x0054
  141. #define CC_BLE_UPDATE 0x0058
  142. #define CP_PROXY_APPOINT 0x2000
  143. #define PH_PROXY_APPOINT 0x2004
  144. #define CP_PROXY_WAKE 0x2008
  145. #define NN_INL 0x4000
  146. #define NN_NEW_NET 0x4004
  147. #define NN_ADD_ALLOC 0x4008
  148. #define NN_REL_ALLOC 0x400C
  149. #define NN_REL_NET 0x4010
  150. #define CM_ASSOCIATED_STA 0x6000
  151. #define CM_ENCRYPTED_PAYLOAD 0x6004
  152. #define CM_SET_KEY 0x6008
  153. #define CM_GET_KEY 0x600C
  154. #define CM_SC_JOIN 0x6010
  155. #define CM_CHAN_EST 0x6014
  156. #define CM_TM_UPDATE 0x6018
  157. #define CM_AMP_MAP 0x601C
  158. #define CM_BRG_INFO 0x6020
  159. #define CM_CONN_NEW 0x6024
  160. #define CM_CONN_REL 0x6028
  161. #define CM_CONN_MOD 0x602C
  162. #define CM_CONN_INFO 0x6030
  163. #define CM_STA_CAP 0x6034
  164. #define CM_NW_INFO 0x6038
  165. #define CM_GET_BEACON 0x603C
  166. #define CM_HFID 0x6040
  167. #define CM_MME_ERROR 0x6044
  168. #define CM_NW_STATS 0x6048
  169. #define CM_SLAC_PARAM 0x6064
  170. #define CM_START_ATTEN_CHAR 0x6068
  171. #define CM_ATTEN_CHAR 0x606C
  172. #define CM_PKCS_CERT 0x6070
  173. #define CM_MNBC_SOUND 0x6074
  174. #define CM_VALIDATE 0x6078
  175. #define CM_SLAC_MATCH 0x607C
  176. #define CM_SLAC_USER_DATA 0x6080
  177. #define CM_ATTEN_PROFILE 0x6084
  178. /*====================================================================*
  179. *
  180. *--------------------------------------------------------------------*/
  181. #endif
  182. </pre>
  183. <div class='footerlink'>
  184. [<a href='getoptv.h.html' title=' getoptv.h '>PREV</a>]
  185. [<a href='toolkit.html' title=' Index '>HOME</a>]
  186. [<a href='HPAVKey.h.html' title=' HPAVKey.h '>NEXT</a>]
  187. </div>
  188. </body>
  189. </html>