Print this page
MFV: illumos-omnios@aea0472ecb9ee91fa70556d6f6a941c10c989f1d
Add support for Emulex Corporation Lancer Gen6: LPe32000 FC Host Adapter
Author: Andy Fiddaman <omnios@citrus-it.co.uk>
NEX-1878 update emlxs from source provided by Emulex

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_hba.c
          +++ new/usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_hba.c
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 2004-2012 Emulex. All rights reserved.
  24   24   * Use is subject to license terms.
       25 + * Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
  25   26   */
  26   27  
  27   28  #define EMLXS_FW_TABLE_DEF
  28   29  #define EMLXS_MODEL_DEF
  29   30  
  30   31  #include <emlxs.h>
  31   32  
  32   33  /* Required for EMLXS_CONTEXT in EMLXS_MSGF calls */
  33   34  EMLXS_MSG_DEF(EMLXS_HBA_C);
  34   35  
↓ open down ↓ 1968 lines elided ↑ open up ↑
2003 2004  
2004 2005                  if (ssdid == 0 || ssdid == 0xffff) {
2005 2006                          ssdid = device_id;
2006 2007                  }
2007 2008  
2008 2009                  /* Read the Cache Line reg */
2009 2010                  cache_line =
2010 2011                      ddi_get32(hba->pci_acc_handle,
2011 2012                      (uint32_t *)(hba->pci_addr + PCI_CACHE_LINE_REGISTER));
2012 2013  
     2014 +                EMLXS_MSGF(EMLXS_CONTEXT,
     2015 +                    &emlxs_init_debug_msg, "Device IDs: %x/%x/%x",
     2016 +                    device_id, ssdid, cache_line);
     2017 +
2013 2018                  /* Check for the multifunction bit being set */
2014 2019                  if ((cache_line & 0x00ff0000) == 0x00800000) {
2015 2020                          channels = EMLXS_MULTI_CHANNEL;
2016 2021                  } else {
2017 2022                          channels = EMLXS_SINGLE_CHANNEL;
2018 2023                  }
2019 2024  
2020 2025                  /* If device ids are unique, then use them for search */
2021 2026                  if (device_id != ssdid) {
2022 2027                          /*
↓ open down ↓ 1043 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX