mvDeviceId.h 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. /*******************************************************************************
  2. Copyright (C) Marvell International Ltd. and its affiliates
  3. This software file (the "File") is owned and distributed by Marvell
  4. International Ltd. and/or its affiliates ("Marvell") under the following
  5. alternative licensing terms. Once you have made an election to distribute the
  6. File under one of the following license alternatives, please (i) delete this
  7. introductory statement regarding license alternatives, (ii) delete the two
  8. license alternatives that you have not elected to use and (iii) preserve the
  9. Marvell copyright notice above.
  10. ********************************************************************************
  11. Marvell Commercial License Option
  12. If you received this File from Marvell and you have entered into a commercial
  13. license agreement (a "Commercial License") with Marvell, the File is licensed
  14. to you under the terms of the applicable Commercial License.
  15. ********************************************************************************
  16. Marvell GPL License Option
  17. If you received this File from Marvell, you may opt to use, redistribute and/or
  18. modify this File in accordance with the terms and conditions of the General
  19. Public License Version 2, June 1991 (the "GPL License"), a copy of which is
  20. available along with the File in the license.txt file or by writing to the Free
  21. Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 or
  22. on the worldwide web at http://www.gnu.org/licenses/gpl.txt.
  23. THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE IMPLIED
  24. WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY
  25. DISCLAIMED. The GPL License provides additional details about this warranty
  26. disclaimer.
  27. ********************************************************************************
  28. Marvell BSD License Option
  29. If you received this File from Marvell, you may opt to use, redistribute and/or
  30. modify this File under the following licensing terms.
  31. Redistribution and use in source and binary forms, with or without modification,
  32. are permitted provided that the following conditions are met:
  33. * Redistributions of source code must retain the above copyright notice,
  34. this list of conditions and the following disclaimer.
  35. * Redistributions in binary form must reproduce the above copyright
  36. notice, this list of conditions and the following disclaimer in the
  37. documentation and/or other materials provided with the distribution.
  38. * Neither the name of Marvell nor the names of its contributors may be
  39. used to endorse or promote products derived from this software without
  40. specific prior written permission.
  41. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  42. ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  43. WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  44. DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
  45. ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  46. (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  47. LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
  48. ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  49. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  50. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  51. *******************************************************************************/
  52. #ifndef __INCmvDeviceIdh
  53. #define __INCmvDeviceIdh
  54. #ifdef __cplusplus
  55. extern "C" {
  56. #endif /* __cplusplus */
  57. /* defines */
  58. #define MARVELL_VEN_ID 0x11ab
  59. /* Disco-3 */
  60. #define MV64460_DEV_ID 0x6480
  61. #define MV64460B_DEV_ID 0x6485
  62. #define MV64430_DEV_ID 0x6420
  63. /* Disco-5 */
  64. #define MV64560_DEV_ID 0x6450
  65. /* Disco-6 */
  66. #define MV64660_DEV_ID 0x6460
  67. /* Orion */
  68. #define MV_1181_DEV_ID 0x1181
  69. #define MV_5181_DEV_ID 0x5181
  70. #define MV_5281_DEV_ID 0x5281
  71. #define MV_5182_DEV_ID 0x5182
  72. #define MV_8660_DEV_ID 0x8660
  73. #define MV_5180_DEV_ID 0x5180
  74. #define MV_5082_DEV_ID 0x5082
  75. #define MV_1281_DEV_ID 0x1281
  76. #define MV_6082_DEV_ID 0x6082
  77. #define MV_6183_DEV_ID 0x6183
  78. #define MV_6183L_DEV_ID 0x6083
  79. #define MV_5281_D0_REV 0x4
  80. #define MV_5281_D0_ID ((MV_5281_DEV_ID << 16) | MV_5281_D0_REV)
  81. #define MV_5281_D0_NAME "88F5281 D0"
  82. #define MV_5281_D1_REV 0x5
  83. #define MV_5281_D1_ID ((MV_5281_DEV_ID << 16) | MV_5281_D1_REV)
  84. #define MV_5281_D1_NAME "88F5281 D1"
  85. #define MV_5281_D2_REV 0x6
  86. #define MV_5281_D2_ID ((MV_5281_DEV_ID << 16) | MV_5281_D2_REV)
  87. #define MV_5281_D2_NAME "88F5281 D2"
  88. #define MV_5181L_A0_REV 0x8 /* need for PCIE Er */
  89. #define MV_5181_A1_REV 0x1 /* for USB Er ..*/
  90. #define MV_5181_B0_REV 0x2
  91. #define MV_5181_B1_REV 0x3
  92. #define MV_5182_A1_REV 0x1
  93. #define MV_5180N_B1_REV 0x3
  94. #define MV_5181L_A0_ID ((MV_5181_DEV_ID << 16) | MV_5181L_A0_REV)
  95. /* kw */
  96. #define MV_6281_DEV_ID 0x6281
  97. #define MV_6192_DEV_ID 0x6192
  98. #define MV_6190_DEV_ID 0x6190
  99. #define MV_6180_DEV_ID 0x6180
  100. #define MV_6281_A0_REV 0x2
  101. #define MV_6281_A0_ID ((MV_6281_DEV_ID << 16) | MV_6281_A0_REV)
  102. #define MV_6281_A0_NAME "88F6281 A0"
  103. #define MV_6192_A0_REV 0x2
  104. #define MV_6192_A0_ID ((MV_6192_DEV_ID << 16) | MV_6192_A0_REV)
  105. #define MV_6192_A0_NAME "88F6192 A0"
  106. #define MV_6190_A0_REV 0x2
  107. #define MV_6190_A0_ID ((MV_6190_DEV_ID << 16) | MV_6190_A0_REV)
  108. #define MV_6190_A0_NAME "88F6190 A0"
  109. #define MV_6180_A0_REV 0x2
  110. #define MV_6180_A0_ID ((MV_6180_DEV_ID << 16) | MV_6180_A0_REV)
  111. #define MV_6180_A0_NAME "88F6180 A0"
  112. #define MV_6281_A1_REV 0x3
  113. #define MV_6281_A1_ID ((MV_6281_DEV_ID << 16) | MV_6281_A1_REV)
  114. #define MV_6281_A1_NAME "88F6281 A1"
  115. #define MV_6192_A1_REV 0x3
  116. #define MV_6192_A1_ID ((MV_6192_DEV_ID << 16) | MV_6192_A1_REV)
  117. #define MV_6192_A1_NAME "88F6192 A1"
  118. #define MV_6190_A1_REV 0x3
  119. #define MV_6190_A1_ID ((MV_6190_DEV_ID << 16) | MV_6190_A1_REV)
  120. #define MV_6190_A1_NAME "88F6190 A1"
  121. #define MV_6180_A1_REV 0x3
  122. #define MV_6180_A1_ID ((MV_6180_DEV_ID << 16) | MV_6180_A1_REV)
  123. #define MV_6180_A1_NAME "88F6180 A1"
  124. #define MV_88F6XXX_A0_REV 0x2
  125. #define MV_88F6XXX_A1_REV 0x3
  126. /* Disco-Duo */
  127. #define MV_78XX0_ZY_DEV_ID 0x6381
  128. #define MV_78XX0_ZY_NAME "MV78X00"
  129. #define MV_78XX0_Z0_REV 0x1
  130. #define MV_78XX0_Z0_ID ((MV_78XX0_ZY_DEV_ID << 16) | MV_78XX0_Z0_REV)
  131. #define MV_78XX0_Z0_NAME "78X00 Z0"
  132. #define MV_78XX0_Y0_REV 0x2
  133. #define MV_78XX0_Y0_ID ((MV_78XX0_ZY_DEV_ID << 16) | MV_78XX0_Y0_REV)
  134. #define MV_78XX0_Y0_NAME "78X00 Y0"
  135. #define MV_78XX0_DEV_ID 0x7800
  136. #define MV_78XX0_NAME "MV78X00"
  137. #define MV_76100_DEV_ID 0x7610
  138. #define MV_78200_DEV_ID 0x7820
  139. #define MV_78100_DEV_ID 0x7810
  140. #define MV_78XX0_A0_REV 0x1
  141. #define MV_78XX0_A1_REV 0x2
  142. #define MV_76100_NAME "MV76100"
  143. #define MV_78100_NAME "MV78100"
  144. #define MV_78200_NAME "MV78200"
  145. #define MV_76100_A0_ID ((MV_76100_DEV_ID << 16) | MV_78XX0_A0_REV)
  146. #define MV_78100_A0_ID ((MV_78100_DEV_ID << 16) | MV_78XX0_A0_REV)
  147. #define MV_78200_A0_ID ((MV_78200_DEV_ID << 16) | MV_78XX0_A0_REV)
  148. #define MV_76100_A1_ID ((MV_76100_DEV_ID << 16) | MV_78XX0_A1_REV)
  149. #define MV_78100_A1_ID ((MV_78100_DEV_ID << 16) | MV_78XX0_A1_REV)
  150. #define MV_78200_A1_ID ((MV_78200_DEV_ID << 16) | MV_78XX0_A1_REV)
  151. #define MV_76100_A0_NAME "MV76100 A0"
  152. #define MV_78100_A0_NAME "MV78100 A0"
  153. #define MV_78200_A0_NAME "MV78200 A0"
  154. #define MV_78XX0_A0_NAME "MV78XX0 A0"
  155. #define MV_76100_A1_NAME "MV76100 A1"
  156. #define MV_78100_A1_NAME "MV78100 A1"
  157. #define MV_78200_A1_NAME "MV78200 A1"
  158. #define MV_78XX0_A1_NAME "MV78XX0 A1"
  159. /*MV88F632X family*/
  160. #define MV_6321_DEV_ID 0x6321
  161. #define MV_6322_DEV_ID 0x6322
  162. #define MV_6323_DEV_ID 0x6323
  163. #define MV_6321_NAME "88F6321"
  164. #define MV_6322_NAME "88F6322"
  165. #define MV_6323_NAME "88F6323"
  166. #define MV_632X_A1_REV 0x2
  167. #define MV_6321_A1_ID ((MV_6321_DEV_ID << 16) | MV_632X_A1_REV)
  168. #define MV_6322_A1_ID ((MV_6322_DEV_ID << 16) | MV_632X_A1_REV)
  169. #define MV_6323_A1_ID ((MV_6323_DEV_ID << 16) | MV_632X_A1_REV)
  170. #define MV_6321_A1_NAME "88F6321 A1"
  171. #define MV_6322_A1_NAME "88F6322 A1"
  172. #define MV_6323_A1_NAME "88F6323 A1"
  173. #endif /* __INCmvDeviceIdh */