<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>OpenNSL API Guide and Reference Manual: include/shared/portmode.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen_brcm.css" rel="stylesheet" type="text/css" />
<link href="tabs_brcm.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -- >
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenNSL API Guide and Reference Manual
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!--  end header part -->
<!--  Generated by Doxygen 1.8.2 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Welcome</span></a></li>
      <li><a href="pages.html"><span>OpenNSL&#160;Documentation</span></a></li>
      <li><a href="modules.html"><span>API&#160;Reference</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_6845d4c7af1a0a99add50de30b674562.html">shared</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">portmode.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="portmode_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*********************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * (C) Copyright Broadcom Corporation 2013-2016</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *  Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *  you may not use this file except in compliance with the License.</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *  You may obtain a copy of the License at</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *      http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *  Unless required by applicable law or agreed to in writing, software</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *  distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *  See the License for the specific language governing permissions and</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *  limitations under the License.</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *********************************************************************</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * File:        portmode.h</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * Details:     This file defines common network port modes.</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> *        Its contents are not used directly by applications;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *        it is used only by header files of parent APIs which</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> *        need to define port modes.</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> ********************************************************************/</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#ifndef _SHR_PORTMODE_H</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PORTMODE_H</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="code" href="portmode_8h.html#a6df0a2cf411575ced54902ea28a8282d">   29</a></span>&#160;<span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="portmode_8h.html#a6df0a2cf411575ced54902ea28a8282d">_shr_port_mode_t</a>;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment"> * Defines:</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment"> *      _SHR_PM_*</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment"> * Purpose:</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment"> *      Defines for port modes.</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="code" href="portmode_8h.html#a02bb9068ab9b2740ef2f9f3f81ed4aa6">   38</a></span>&#160;<span class="preprocessor">#define _SHR_PM_10MB_HD         (1 &lt;&lt; 0)</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="code" href="portmode_8h.html#aa1663e0fe5f8e6663d5cd0c0aa3774cf">   39</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_10MB_FD         (1 &lt;&lt; 1)</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="code" href="portmode_8h.html#a9c9038622f285b9e40b18fa9fd661026">   40</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_100MB_HD        (1 &lt;&lt; 2)</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="code" href="portmode_8h.html#ad398d54607d2beaf3e7718f1f117c3b3">   41</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_100MB_FD        (1 &lt;&lt; 3)</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="code" href="portmode_8h.html#a4777b3c182f2fef148c2ca7c970b37ba">   42</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_1000MB_HD       (1 &lt;&lt; 4)</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="code" href="portmode_8h.html#a10918794e119af51d1f71e4b9455e7a3">   43</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_1000MB_FD       (1 &lt;&lt; 5)</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="code" href="portmode_8h.html#a4380ad10cfcfa16fd34982d2a92c91df">   44</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_2500MB_HD       (1 &lt;&lt; 6)</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="code" href="portmode_8h.html#a3a192ac6f39f4ae76b29b92b30d27207">   45</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_2500MB_FD       (1 &lt;&lt; 7)</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="code" href="portmode_8h.html#ab66d2a9c953c9c6377735be279451bf3">   46</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_10GB_HD         (1 &lt;&lt; 8)</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="code" href="portmode_8h.html#aaea9c192f6221e0be885aadad93e1882">   47</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_10GB_FD         (1 &lt;&lt; 9)</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="code" href="portmode_8h.html#a9e13c5f4c95cf92095a1f0ad7a1f41e7">   48</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_PAUSE_TX        (1 &lt;&lt; 10)       </span><span class="comment">/* TX pause capable */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="code" href="portmode_8h.html#af2340e973446a6bb9d34c16ac7d60cb9">   49</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_PAUSE_RX        (1 &lt;&lt; 11)       </span><span class="comment">/* RX pause capable */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="code" href="portmode_8h.html#abcdc8a725e9ec9125164a3034db4a1bf">   50</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_PAUSE_ASYMM     (1 &lt;&lt; 12)       </span><span class="comment">/* Asymm pause capable (R/O) */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="code" href="portmode_8h.html#a040fd2b0b8449b8afbe0c00960abd3aa">   51</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_TBI             (1 &lt;&lt; 13)       </span><span class="comment">/* TBI mode supported */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="code" href="portmode_8h.html#ac89600325748662a50dd42a54717c711">   52</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_MII             (1 &lt;&lt; 14)       </span><span class="comment">/* MII mode supported */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="code" href="portmode_8h.html#ac909f68be4052c2b0dd0cdd88788f74d">   53</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_GMII            (1 &lt;&lt; 15)       </span><span class="comment">/* GMII mode supported */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="code" href="portmode_8h.html#afd4067f79f5617cb10a0d559f8c65916">   54</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_SGMII           (1 &lt;&lt; 16)       </span><span class="comment">/* SGMII mode supported */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="code" href="portmode_8h.html#a6a8ce3a83e3dc898299584369906e375">   55</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_XGMII           (1 &lt;&lt; 17)       </span><span class="comment">/* XGMII mode supported */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="code" href="portmode_8h.html#a7446decd3f55c00dd07097c5d9ada9e0">   56</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_LB_MAC          (1 &lt;&lt; 18)       </span><span class="comment">/* MAC loopback supported */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="code" href="portmode_8h.html#a2088049f58c1646d30cbafee8f25e10f">   57</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_LB_NONE         (1 &lt;&lt; 19)       </span><span class="comment">/* Useful for automated test */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="code" href="portmode_8h.html#a08a9635c864eb06acbfe689ba8bcd647">   58</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_LB_PHY          (1 &lt;&lt; 20)       </span><span class="comment">/* PHY loopback supported */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="code" href="portmode_8h.html#a1ab0acc692c43480f18aa05436bbd9c6">   59</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_AN              (1 &lt;&lt; 21)       </span><span class="comment">/* Auto-negotiation */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="code" href="portmode_8h.html#a16f60ea3eda11e79faee55daa4682309">   60</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_3000MB_HD       (1 &lt;&lt; 29)</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="code" href="portmode_8h.html#a4e9d4df8f6fdf607469a2f31ed5ed170">   61</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_3000MB_FD       (1 &lt;&lt; 30)</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="code" href="portmode_8h.html#aca84a733af2d7bc2a2f495b012c29e44">   62</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_12GB_HD         (1 &lt;&lt; 22)</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="code" href="portmode_8h.html#a46907dd6480e556c2a96dbd5ebeff4bc">   63</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_12GB_FD         (1 &lt;&lt; 23)</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="code" href="portmode_8h.html#a4dd23bdb0b6ed3689b50f3fab1382285">   64</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_13GB_HD         (1 &lt;&lt; 24)</span></div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="code" href="portmode_8h.html#a6401ef0fe54143b7c36a6ea2b721b46f">   65</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_13GB_FD         (1 &lt;&lt; 25) </span></div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="code" href="portmode_8h.html#a398e5bef9bb40c0b4f1c65d49e796ebd">   66</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_16GB_HD         (1 &lt;&lt; 26)</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="code" href="portmode_8h.html#a2600df3b035ad7c80aba75cb41e01228">   67</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_16GB_FD         (1 &lt;&lt; 27)</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="code" href="portmode_8h.html#a59dbeaea7da74f83b9874773ec42dc88">   68</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_COMBO           (1 &lt;&lt; 31)      </span><span class="comment">/* COMBO ports support both</span></div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="comment">                                                * copper and fiber interfaces */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="code" href="portmode_8h.html#a6fd9aed11d705874542bd7ed35e260f7">   70</a></span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="code" href="portmode_8h.html#a346bd8cb528310a89580953b62d660e1">   71</a></span>&#160;<span class="preprocessor">#define _SHR_PM_PAUSE           (_SHR_PM_PAUSE_TX  | _SHR_PM_PAUSE_RX)</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="code" href="portmode_8h.html#aece78afcb0eaa66f0dd79dcfcea102d3">   72</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_10MB            (_SHR_PM_10MB_HD   | _SHR_PM_10MB_FD)</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="code" href="portmode_8h.html#aefc7cd2b74f82b3268cca735b8c21112">   73</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_100MB           (_SHR_PM_100MB_HD  | _SHR_PM_100MB_FD)</span></div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="code" href="portmode_8h.html#aced27c9037c21d99dcad8a7527e6fb2e">   74</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_1000MB          (_SHR_PM_1000MB_HD | _SHR_PM_1000MB_FD)</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="code" href="portmode_8h.html#a5c8473123f10908839dc8959332657b0">   75</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_2500MB          (_SHR_PM_2500MB_HD | _SHR_PM_2500MB_FD)</span></div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="code" href="portmode_8h.html#a67313ce8cc8a409683bd44182d6dfeae">   76</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_3000MB          (_SHR_PM_3000MB_HD | _SHR_PM_3000MB_FD)</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="code" href="portmode_8h.html#adc2189dd78aeb37dcc45cb678013b5c2">   77</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_10GB            (_SHR_PM_10GB_HD   | _SHR_PM_10GB_FD)</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="code" href="portmode_8h.html#ac237eea86042a8086da725515420cb72">   78</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_12GB            (_SHR_PM_12GB_HD   | _SHR_PM_12GB_FD)</span></div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="code" href="portmode_8h.html#af21f8051de379b52c6a2e1442409eb90">   79</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_13GB            (_SHR_PM_13GB_HD   | _SHR_PM_13GB_FD)</span></div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _SHR_PM_16GB            (_SHR_PM_16GB_HD   | _SHR_PM_16GB_FD)</span></div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="code" href="portmode_8h.html#a582062bbbd7b9390d188ef0da8a06290">   81</a></span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="preprocessor">#define _SHR_PM_SPEED_ALL       (_SHR_PM_16GB |         \</span></div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="preprocessor">                                 _SHR_PM_13GB |         \</span></div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="preprocessor">                                 _SHR_PM_12GB |         \</span></div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="preprocessor">                                 _SHR_PM_10GB |         \</span></div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="preprocessor">                                 _SHR_PM_3000MB |       \</span></div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="preprocessor">                                 _SHR_PM_2500MB |       \</span></div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="preprocessor">                                 _SHR_PM_1000MB |       \</span></div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="preprocessor">                                 _SHR_PM_100MB |        \</span></div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="preprocessor">                                 _SHR_PM_10MB)</span></div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="code" href="portmode_8h.html#acbae0c7cf2b62a43dae47a75ff1faa1e">   91</a></span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="preprocessor">#define _SHR_PM_SPEED_MAX(m)    (((m) &amp; _SHR_PM_16GB)   ?  16000 : \</span></div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="preprocessor">                                 ((m) &amp; _SHR_PM_13GB)   ?  13000 : \</span></div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="preprocessor">                                 ((m) &amp; _SHR_PM_12GB)   ?  12000 : \</span></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="preprocessor">                                 ((m) &amp; _SHR_PM_10GB)   ?  10000 : \</span></div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="preprocessor">                                 ((m) &amp; _SHR_PM_3000MB) ?  3000 : \</span></div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="preprocessor">                                 ((m) &amp; _SHR_PM_2500MB) ?  2500 : \</span></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="preprocessor">                                 ((m) &amp; _SHR_PM_1000MB) ?  1000 : \</span></div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="preprocessor">                                 ((m) &amp; _SHR_PM_100MB)  ?  100 : \</span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="preprocessor">                                 ((m) &amp; _SHR_PM_10MB)   ?  10 : 0)</span></div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="code" href="portmode_8h.html#a7e2a676badb150fbfa40528538669c12">  101</a></span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="preprocessor">#define _SHR_PM_SPEED(s)        ((16000 == (s)) ? _ SHR_PM_16GB : \</span></div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="preprocessor">                                 (13000 == (s)) ? _ SHR_PM_13GB : \</span></div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="preprocessor">                                 (12000 == (s)) ? _ SHR_PM_12GB : \</span></div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="preprocessor">                                 (10000 == (s)) ? _ SHR_PM_10GB : \</span></div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="preprocessor">                                 (3000  == (s)) ? _ SHR_PM_3000MB : \</span></div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="preprocessor">                                 (2500  == (s)) ? _ SHR_PM_2500MB : \</span></div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="preprocessor">                                 (1000  == (s)) ? _ SHR_PM_1000MB : \</span></div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="preprocessor">                                 (100   == (s)) ? _ SHR_PM_100MB : \</span></div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<span class="preprocessor">                                 (10    == (s)) ? _ SHR_PM_10MB : 0)</span></div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="code" href="portmode_8h.html#a8327678078d501b1041b0f3acaf6980a">  111</a></span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="preprocessor">#define _SHR_PM_FD              (_SHR_PM_16GB_FD |    \</span></div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="preprocessor">                                 _SHR_PM_13GB_FD |    \</span></div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="preprocessor">                                 _SHR_PM_12GB_FD |    \</span></div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="preprocessor">                                 _SHR_PM_10GB_FD |    \</span></div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="preprocessor">                                 _SHR_PM_3000MB_FD |    \</span></div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="preprocessor">                                 _SHR_PM_2500MB_FD |    \</span></div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="preprocessor">                                 _SHR_PM_1000MB_FD |    \</span></div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="preprocessor">                                 _SHR_PM_100MB_FD |     \</span></div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="preprocessor">                                 _SHR_PM_10MB_FD)</span></div>
<div class="line"><a name="l00121"></a><span class="lineno"><a class="code" href="portmode_8h.html#a883afb6c7d9f3589653542a319dc8019">  121</a></span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<span class="preprocessor">#define _SHR_PM_HD              (_SHR_PM_16GB_HD |    \</span></div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="preprocessor">                                 _SHR_PM_13GB_HD |    \</span></div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;<span class="preprocessor">                                 _SHR_PM_12GB_HD |    \</span></div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="preprocessor">                                 _SHR_PM_10GB_HD |    \</span></div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="preprocessor">                                 _SHR_PM_3000MB_HD |    \</span></div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;<span class="preprocessor">                                 _SHR_PM_2500MB_HD |    \</span></div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;<span class="preprocessor">                                 _SHR_PM_1000MB_HD |    \</span></div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="preprocessor">                                 _SHR_PM_100MB_HD |     \</span></div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<span class="preprocessor">                                 _SHR_PM_10MB_HD)</span></div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif  </span><span class="comment">/* !_ SHR_PORTMODE_H */</span><span class="preprocessor"></span></div>
</div><!-- fragment --></div><!-- contents -->
<!--  HTML footer for doxygen 1.8.5-->
<!--  start footer part -->
<! --BEGIN GENERATE_TREEVIEW -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -- >
<hr>
<p>	
<table class="footer-brcm">
	<tr>
		<td class="footer-brcm"><img src="BRCM_Red+Black_noTag_RGB.png" align=left></td>
		<td class="footer-brcm"><small><b>&copy;  2016-17 by Broadcom Limited.  All rights reserved.</b></small>
			<div class="footer-brcm"><small>Broadcom Limited reserves the right to make changes without further notice to any products or data herein to improve reliability, function, or design.  
Information furnished by Broadcom Limited is believed to be accurate and reliable.  However, Broadcom Limited does not assume any liability arising 
out of the application or use of this information, nor the application or use of any product or circuit described herein, neither does it convey any license 
under its patent rights nor the rights of others.  </small>
			</div>
		</td>
	</tr>
</table>	
</p>	
</div>
<! --END GENERATE_TREEVIEW-->
</body>
</html>
