printAttrs.c (fcf3ce44) printAttrs.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 usr/src/OPENSOLARIS.LICENSE

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

16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21/*
22 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 * 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 usr/src/OPENSOLARIS.LICENSE

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

16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21/*
22 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 * Copyright 2020 RackTop Systems, Inc.
24 */
25
26
27
28#include <stdio.h>
29#include <hbaapi.h>
30#include <string.h>
31#include <sys/types.h>

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

134 if ((portSpeed & HBA_PORTSPEED_10GBIT) == HBA_PORTSPEED_10GBIT) {
135 fprintf(stdout, "10Gb ");
136 foundSpeed = 1;
137 }
138 if ((portSpeed & HBA_PORTSPEED_16GBIT) == HBA_PORTSPEED_16GBIT) {
139 fprintf(stdout, "16Gb ");
140 foundSpeed = 1;
141 }
25 */
26
27
28
29#include <stdio.h>
30#include <hbaapi.h>
31#include <string.h>
32#include <sys/types.h>

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

135 if ((portSpeed & HBA_PORTSPEED_10GBIT) == HBA_PORTSPEED_10GBIT) {
136 fprintf(stdout, "10Gb ");
137 foundSpeed = 1;
138 }
139 if ((portSpeed & HBA_PORTSPEED_16GBIT) == HBA_PORTSPEED_16GBIT) {
140 fprintf(stdout, "16Gb ");
141 foundSpeed = 1;
142 }
143 if ((portSpeed & HBA_PORTSPEED_32GBIT) == HBA_PORTSPEED_32GBIT) {
144 fprintf(stdout, "32Gb ");
145 foundSpeed = 1;
146 }
142 if ((portSpeed & HBA_PORTSPEED_NOT_NEGOTIATED)
143 == HBA_PORTSPEED_NOT_NEGOTIATED) {
144 fprintf(stdout, "not established ");
145 foundSpeed = 1;
146 }
147 if (foundSpeed == 0) {
148 fprintf(stdout, "not established ");
149 }

--- 311 unchanged lines hidden ---
147 if ((portSpeed & HBA_PORTSPEED_NOT_NEGOTIATED)
148 == HBA_PORTSPEED_NOT_NEGOTIATED) {
149 fprintf(stdout, "not established ");
150 foundSpeed = 1;
151 }
152 if (foundSpeed == 0) {
153 fprintf(stdout, "not established ");
154 }

--- 311 unchanged lines hidden ---