fctl.h (7ff83669) fctl.h (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 2009 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 2009 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 * Copyright 2020 RackTop Systems, Inc.
24 */
25
26#ifndef _FCTL_H
27#define _FCTL_H
28
29
30#include <sys/note.h>
31#include <sys/time.h>

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

62
63/* Values for the link speed (next least significant byte as above) */
64#define FC_STATE_1GBIT_SPEED 0x0100 /* 1 Gbit/sec */
65#define FC_STATE_2GBIT_SPEED 0x0400 /* 2 Gbit/sec */
66#define FC_STATE_4GBIT_SPEED 0x0500 /* 4 Gbit/sec */
67#define FC_STATE_10GBIT_SPEED 0x0600 /* 10 Gbit/sec */
68#define FC_STATE_8GBIT_SPEED 0x0700 /* 8 Gbit/sec */
69#define FC_STATE_16GBIT_SPEED 0x0800 /* 16 Gbit/sec */
25 */
26
27#ifndef _FCTL_H
28#define _FCTL_H
29
30
31#include <sys/note.h>
32#include <sys/time.h>

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

63
64/* Values for the link speed (next least significant byte as above) */
65#define FC_STATE_1GBIT_SPEED 0x0100 /* 1 Gbit/sec */
66#define FC_STATE_2GBIT_SPEED 0x0400 /* 2 Gbit/sec */
67#define FC_STATE_4GBIT_SPEED 0x0500 /* 4 Gbit/sec */
68#define FC_STATE_10GBIT_SPEED 0x0600 /* 10 Gbit/sec */
69#define FC_STATE_8GBIT_SPEED 0x0700 /* 8 Gbit/sec */
70#define FC_STATE_16GBIT_SPEED 0x0800 /* 16 Gbit/sec */
71#define FC_STATE_32GBIT_SPEED 0x0900 /* 32 Gbit/sec */
70#define FC_STATE_FULL_SPEED FC_STATE_1GBIT_SPEED
71#define FC_STATE_DOUBLE_SPEED FC_STATE_2GBIT_SPEED
72
73/* pi_port_state, used only when binding port */
74#define FC_STATE_FCA_IS_NODMA 0x80000000
75
76/*
77 * Macros to discriminate between the link state byte and the link speed

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

225#define FC_HBA_PORTSPEED_UNKNOWN 0 /* Unknown - transceiver incable */
226 /* of reporting */
227#define FC_HBA_PORTSPEED_1GBIT 1 /* 1 GBit/sec */
228#define FC_HBA_PORTSPEED_2GBIT 2 /* 2 GBit/sec */
229#define FC_HBA_PORTSPEED_10GBIT 4 /* 10 GBit/sec */
230#define FC_HBA_PORTSPEED_4GBIT 8 /* 4 GBit/sec */
231#define FC_HBA_PORTSPEED_8GBIT 16 /* 8 GBit/sec */
232#define FC_HBA_PORTSPEED_16GBIT 32 /* 16 GBit/sec */
72#define FC_STATE_FULL_SPEED FC_STATE_1GBIT_SPEED
73#define FC_STATE_DOUBLE_SPEED FC_STATE_2GBIT_SPEED
74
75/* pi_port_state, used only when binding port */
76#define FC_STATE_FCA_IS_NODMA 0x80000000
77
78/*
79 * Macros to discriminate between the link state byte and the link speed

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

227#define FC_HBA_PORTSPEED_UNKNOWN 0 /* Unknown - transceiver incable */
228 /* of reporting */
229#define FC_HBA_PORTSPEED_1GBIT 1 /* 1 GBit/sec */
230#define FC_HBA_PORTSPEED_2GBIT 2 /* 2 GBit/sec */
231#define FC_HBA_PORTSPEED_10GBIT 4 /* 10 GBit/sec */
232#define FC_HBA_PORTSPEED_4GBIT 8 /* 4 GBit/sec */
233#define FC_HBA_PORTSPEED_8GBIT 16 /* 8 GBit/sec */
234#define FC_HBA_PORTSPEED_16GBIT 32 /* 16 GBit/sec */
235#define FC_HBA_PORTSPEED_32GBIT 64 /* 32 GBit/sec */
233#define FC_HBA_PORTSPEED_NOT_NEGOTIATED (1<<15) /* Speed not established */
234
235#define FCHBA_MANUFACTURER_LEN 64
236#define FCHBA_SERIAL_NUMBER_LEN 64
237#define FCHBA_MODEL_LEN 256
238#define FCHBA_MODEL_DESCRIPTION_LEN 256
239#define FCHBA_HARDWARE_VERSION_LEN 256
240#define FCHBA_DRIVER_VERSION_LEN 256

--- 124 unchanged lines hidden ---
236#define FC_HBA_PORTSPEED_NOT_NEGOTIATED (1<<15) /* Speed not established */
237
238#define FCHBA_MANUFACTURER_LEN 64
239#define FCHBA_SERIAL_NUMBER_LEN 64
240#define FCHBA_MODEL_LEN 256
241#define FCHBA_MODEL_DESCRIPTION_LEN 256
242#define FCHBA_HARDWARE_VERSION_LEN 256
243#define FCHBA_DRIVER_VERSION_LEN 256

--- 124 unchanged lines hidden ---