emlxs_fcp.c (8f23e9fa) emlxs_fcp.c (a3170057)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at

--- 8 unchanged lines hidden (view full) ---

17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22/*
23 * Copyright (c) 2004-2012 Emulex. All rights reserved.
24 * Use is subject to license terms.
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at

--- 8 unchanged lines hidden (view full) ---

17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22/*
23 * Copyright (c) 2004-2012 Emulex. All rights reserved.
24 * Use is subject to license terms.
25 * Copyright 2020 RackTop Systems, Inc.
25 */
26
27#include <emlxs.h>
28
29/* Required for EMLXS_CONTEXT in EMLXS_MSGF calls */
30EMLXS_MSG_DEF(EMLXS_FCP_C);
31
32#define EMLXS_GET_VADDR(hba, rp, icmd) emlxs_mem_get_vaddr(hba, rp, \

--- 1516 unchanged lines hidden (view full) ---

1549 case LA_10GHZ_LINK:
1550 (void) strlcpy(linkspeed, "10Gb", sizeof (linkspeed));
1551 state |= FC_STATE_10GBIT_SPEED;
1552 break;
1553 case LA_16GHZ_LINK:
1554 (void) strlcpy(linkspeed, "16Gb", sizeof (linkspeed));
1555 state |= FC_STATE_16GBIT_SPEED;
1556 break;
26 */
27
28#include <emlxs.h>
29
30/* Required for EMLXS_CONTEXT in EMLXS_MSGF calls */
31EMLXS_MSG_DEF(EMLXS_FCP_C);
32
33#define EMLXS_GET_VADDR(hba, rp, icmd) emlxs_mem_get_vaddr(hba, rp, \

--- 1516 unchanged lines hidden (view full) ---

1550 case LA_10GHZ_LINK:
1551 (void) strlcpy(linkspeed, "10Gb", sizeof (linkspeed));
1552 state |= FC_STATE_10GBIT_SPEED;
1553 break;
1554 case LA_16GHZ_LINK:
1555 (void) strlcpy(linkspeed, "16Gb", sizeof (linkspeed));
1556 state |= FC_STATE_16GBIT_SPEED;
1557 break;
1558 case LA_32GHZ_LINK:
1559 (void) strlcpy(linkspeed, "32Gb", sizeof (linkspeed));
1560 state |= FC_STATE_32GBIT_SPEED;
1561 break;
1557 default:
1558 (void) snprintf(linkspeed, sizeof (linkspeed), "unknown(0x%x)",
1559 hba->linkspeed);
1560 break;
1561 }
1562
1563 npiv_linkup = 0;
1564 update = 0;

--- 2877 unchanged lines hidden ---
1562 default:
1563 (void) snprintf(linkspeed, sizeof (linkspeed), "unknown(0x%x)",
1564 hba->linkspeed);
1565 break;
1566 }
1567
1568 npiv_linkup = 0;
1569 update = 0;

--- 2877 unchanged lines hidden ---