homeplug.h 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. /*====================================================================*
  2. *
  3. * Copyright (c) 2013 Qualcomm Atheros, Inc.
  4. *
  5. * All rights reserved.
  6. *
  7. *====================================================================*/
  8. /*====================================================================*
  9. *
  10. * homeplug.h - HomePlug Definitions and Declarations;
  11. *
  12. * Contributor(s):
  13. * Charles Maier <cmaier@qca.qualcomm.com>
  14. * Alex Vasquez <alex.vasquez@qca.qualcomm.com>
  15. *
  16. *--------------------------------------------------------------------*/
  17. #ifndef HOMEPLUG_HEADER
  18. #define HOMEPLUG_HEADER
  19. /*====================================================================*
  20. * HomePlug AV Constants;
  21. *--------------------------------------------------------------------*/
  22. #define HOMEPLUG_MMV 0x01
  23. #define HOMEPLUG_MMTYPE 0x0000
  24. /*====================================================================*
  25. * HomePlug Management Message Ranges for Information Only;
  26. *--------------------------------------------------------------------*/
  27. #define CC_MMTYPE_MIN 0x0000
  28. #define CC_MMTYPE_MAX 0x1FFF
  29. #define CP_MMTYPE_MIN 0x2000
  30. #define CP_MMTYPE_MAX 0x3FFF
  31. #define NN_MMTYPE_MIN 0x4000
  32. #define NN_MMTYPE_MAX 0x5FFF
  33. #define CM_MMTYPE_MIN 0x6000
  34. #define CM_MMTYPE_MAX 0x7FFF
  35. #define MS_MMTYPE_MIN 0x8000
  36. #define MS_MMTYPE_MAX 0x9FFF
  37. #define VS_MMTYPE_MIN 0xA000
  38. #define VS_MMTYPE_MAX 0xBFFF
  39. #define HA_MMTYPE_MIN 0xC000
  40. #define HA_MMTYPE_MAX 0xFFFF
  41. /*====================================================================*
  42. * HomePlug AV MMEs have 4 variants indicated by the 2 MMTYPE LSBs;
  43. *--------------------------------------------------------------------*/
  44. #define MMTYPE_CC 0x0000
  45. #define MMTYPE_CP 0x2000
  46. #define MMTYPE_NN 0x4000
  47. #define MMTYPE_CM 0x6000
  48. #define MMTYPE_MS 0x8000
  49. #define MMTYPE_VS 0xA000
  50. #define MMTYPE_XX 0xC000
  51. #ifndef IHPAPI_HEADER
  52. #define MMTYPE_REQ 0x0000
  53. #define MMTYPE_CNF 0x0001
  54. #define MMTYPE_IND 0x0002
  55. #define MMTYPE_RSP 0x0003
  56. #define MMTYPE_MODE (MMTYPE_REQ|MMTYPE_CNF|MMTYPE_IND|MMTYPE_RSP)
  57. #define MMTYPE_MASK ~(MMTYPE_REQ|MMTYPE_CNF|MMTYPE_IND|MMTYPE_RSP)
  58. #endif
  59. /*====================================================================*
  60. * HomePlug AV Management Message Types;
  61. *--------------------------------------------------------------------*/
  62. #define CC_CCO_APPOINT 0x0000
  63. #define CC_BACKUP_APPOINT 0x0004
  64. #define CC_LINK_INFO 0x0008
  65. #define CC_HANDOVER 0x000C
  66. #define CC_HANDOVER_INFO 0x0010
  67. #define CC_DISCOVER_LIST 0x0014
  68. #define CC_LINK_NEW 0x0018
  69. #define CC_LINK_MOD 0x001C
  70. #define CC_LINK_SQZ 0x0020
  71. #define CC_LINK_REL 0x0024
  72. #define CC_DETECT_REPORT 0x0028
  73. #define CC_WHO_RU 0x002C
  74. #define CC_ASSOC 0x0030
  75. #define CC_LEAVE 0x0034
  76. #define CC_SET_TEI_MAP 0x0038
  77. #define CC_RELAY 0x003C
  78. #define CC_BEACON_RELIABILITY 0x0040
  79. #define CC_ALLOC_MOVE 0x0044
  80. #define CC_ACCESS_NEW 0x0048
  81. #define CC_ACCESS_REL 0x004C
  82. #define CC_DCPPC 0x0050
  83. #define CC_HP1_DET 0x0054
  84. #define CC_BLE_UPDATE 0x0058
  85. #define CP_PROXY_APPOINT 0x2000
  86. #define PH_PROXY_APPOINT 0x2004
  87. #define CP_PROXY_WAKE 0x2008
  88. #define NN_INL 0x4000
  89. #define NN_NEW_NET 0x4004
  90. #define NN_ADD_ALLOC 0x4008
  91. #define NN_REL_ALLOC 0x400C
  92. #define NN_REL_NET 0x4010
  93. #define CM_ASSOCIATED_STA 0x6000
  94. #define CM_ENCRYPTED_PAYLOAD 0x6004
  95. #define CM_SET_KEY 0x6008
  96. #define CM_GET_KEY 0x600C
  97. #define CM_SC_JOIN 0x6010
  98. #define CM_CHAN_EST 0x6014
  99. #define CM_TM_UPDATE 0x6018
  100. #define CM_AMP_MAP 0x601C
  101. #define CM_BRG_INFO 0x6020
  102. #define CM_CONN_NEW 0x6024
  103. #define CM_CONN_REL 0x6028
  104. #define CM_CONN_MOD 0x602C
  105. #define CM_CONN_INFO 0x6030
  106. #define CM_STA_CAP 0x6034
  107. #define CM_NW_INFO 0x6038
  108. #define CM_GET_BEACON 0x603C
  109. #define CM_HFID 0x6040
  110. #define CM_MME_ERROR 0x6044
  111. #define CM_NW_STATS 0x6048
  112. #define CM_SLAC_PARAM 0x6064
  113. #define CM_START_ATTEN_CHAR 0x6068
  114. #define CM_ATTEN_CHAR 0x606C
  115. #define CM_PKCS_CERT 0x6070
  116. #define CM_MNBC_SOUND 0x6074
  117. #define CM_VALIDATE 0x6078
  118. #define CM_SLAC_MATCH 0x607C
  119. #define CM_SLAC_USER_DATA 0x6080
  120. #define CM_ATTEN_PROFILE 0x6084
  121. /*====================================================================*
  122. * common mac address names;
  123. *--------------------------------------------------------------------*/
  124. #define CM_KEYTYPE_DAK 0x00
  125. #define CM_KEYTYPE_NMK 0x01
  126. #define CM_KEYTYPE_NEK 0x02
  127. #define CM_KEYTYPE_TEK 0x03
  128. #define CM_KEYTYPE_HASH_KEY 0x04
  129. #define CM_KEYTYPE_NONCE 0x05
  130. /*====================================================================*
  131. *
  132. *--------------------------------------------------------------------*/
  133. #endif