Print this page
9724 qede needs updates for newer GCC

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
          +++ new/usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
↓ open down ↓ 25 lines elided ↑ open up ↑
  26   26  
  27   27  * You may not use this file except in compliance with the License.
  28   28  
  29   29  * You can obtain a copy of the License at available 
  30   30  * at http://opensource.org/licenses/CDDL-1.0
  31   31  
  32   32  * See the License for the specific language governing permissions and 
  33   33  * limitations under the License.
  34   34  */
  35   35  
       36 +/*
       37 + * Copyright 2018 Joyent, Inc.
       38 + */
       39 +
  36   40  #include "bcm_osal.h"
  37   41  #include "ecore.h"
  38   42  #include "reg_addr.h"
  39   43  #include "ecore_hw.h"
  40   44  #include "ecore_hsi_common.h"
  41   45  #include "ecore_mcp.h"
  42   46  #include "nvm_cfg.h"
  43   47  #include "ecore_phy_api.h"
  44   48  
  45   49  #define SERDESID 0x900e
↓ open down ↓ 573 lines elided ↑ open up ↑
 619  623                                         "increment when the port shuts down\n");
 620  624  
 621  625          return rc;
 622  626  }
 623  627  
 624  628  /* get mac status */
 625  629  static int ecore_ah_e5_phy_mac_stat(struct ecore_hwfn *p_hwfn,
 626  630                                      struct ecore_ptt *p_ptt, u32 port,
 627  631                                      char *p_phy_result_buf)
 628  632  {
 629      -        u32 length, reg_id, addr, data_hi, data_lo;
      633 +        u32 length, reg_id, addr, data_hi __unused, data_lo;
 630  634  
 631  635          length = OSAL_SPRINTF(p_phy_result_buf,
 632  636                                 "MAC stats for port %d (only non-zero)\n", port);
 633  637  
 634  638          for (reg_id = 0; reg_id < OSAL_ARRAY_SIZE(ah_stat_regs); reg_id++) {
 635  639                  addr = ah_stat_regs[reg_id].reg;
 636  640                  data_lo = ecore_rd(p_hwfn, p_ptt,
 637  641                                     NWM_REG_MAC0_K2_E5 +
 638  642                                     NWM_REG_MAC0_SIZE * 4 * port +
 639  643                                     addr);
↓ open down ↓ 1136 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX