emlxs_event.c (8f23e9fa) | emlxs_event.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#define DEF_EVENT_STRUCT /* Needed for emlxs_events.h in emlxs_event.h */ 28#include <emlxs.h> 29 30 31/* Required for EMLXS_CONTEXT in EMLXS_MSGF calls */ 32EMLXS_MSG_DEF(EMLXS_EVENT_C); --- 553 unchanged lines hidden (view full) --- 586 } else if (hba->linkspeed == LA_4GHZ_LINK) { 587 *linkspeed = HBA_PORTSPEED_4GBIT; 588 } else if (hba->linkspeed == LA_8GHZ_LINK) { 589 *linkspeed = HBA_PORTSPEED_8GBIT; 590 } else if (hba->linkspeed == LA_10GHZ_LINK) { 591 *linkspeed = HBA_PORTSPEED_10GBIT; 592 } else if (hba->linkspeed == LA_16GHZ_LINK) { 593 *linkspeed = HBA_PORTSPEED_16GBIT; | 26 */ 27 28#define DEF_EVENT_STRUCT /* Needed for emlxs_events.h in emlxs_event.h */ 29#include <emlxs.h> 30 31 32/* Required for EMLXS_CONTEXT in EMLXS_MSGF calls */ 33EMLXS_MSG_DEF(EMLXS_EVENT_C); --- 553 unchanged lines hidden (view full) --- 587 } else if (hba->linkspeed == LA_4GHZ_LINK) { 588 *linkspeed = HBA_PORTSPEED_4GBIT; 589 } else if (hba->linkspeed == LA_8GHZ_LINK) { 590 *linkspeed = HBA_PORTSPEED_8GBIT; 591 } else if (hba->linkspeed == LA_10GHZ_LINK) { 592 *linkspeed = HBA_PORTSPEED_10GBIT; 593 } else if (hba->linkspeed == LA_16GHZ_LINK) { 594 *linkspeed = HBA_PORTSPEED_16GBIT; |
595 } else if (hba->linkspeed == LA_32GHZ_LINK) { 596 *linkspeed = HBA_PORTSPEED_32GBIT; |
|
594 } else { 595 *linkspeed = HBA_PORTSPEED_1GBIT; 596 } 597 598 /* Set LIP type */ 599 *liptype = port->lip_type; 600 } 601 --- 904 unchanged lines hidden --- | 597 } else { 598 *linkspeed = HBA_PORTSPEED_1GBIT; 599 } 600 601 /* Set LIP type */ 602 *liptype = port->lip_type; 603 } 604 --- 904 unchanged lines hidden --- |