|
Packit Service |
35c908 |
/*
|
|
Packit Service |
35c908 |
* Copyright (c) 2008, Intel Corporation.
|
|
Packit Service |
35c908 |
*
|
|
Packit Service |
35c908 |
* This program is free software; you can redistribute it and/or modify it
|
|
Packit Service |
35c908 |
* under the terms and conditions of the GNU Lesser General Public License,
|
|
Packit Service |
35c908 |
* version 2.1, as published by the Free Software Foundation.
|
|
Packit Service |
35c908 |
*
|
|
Packit Service |
35c908 |
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
Packit Service |
35c908 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
Packit Service |
35c908 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
|
Packit Service |
35c908 |
* for more details.
|
|
Packit Service |
35c908 |
*
|
|
Packit Service |
35c908 |
* You should have received a copy of the GNU Lesser General Public License
|
|
Packit Service |
35c908 |
* along with this program; if not, write to the Free Software Foundation, Inc.,
|
|
Packit Service |
35c908 |
* 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
|
|
Packit Service |
35c908 |
*
|
|
Packit Service |
35c908 |
*/
|
|
Packit Service |
35c908 |
|
|
Packit Service |
35c908 |
#ifndef _LIBFC_TYPES_H_
|
|
Packit Service |
35c908 |
#define _LIBFC_TYPES_H_
|
|
Packit Service |
35c908 |
|
|
Packit Service |
35c908 |
#include "net_types.h"
|
|
Packit Service |
35c908 |
|
|
Packit Service |
35c908 |
/*
|
|
Packit Service |
35c908 |
* Host-order type definitions for Fibre Channel.
|
|
Packit Service |
35c908 |
*/
|
|
Packit Service |
35c908 |
|
|
Packit Service |
35c908 |
/*
|
|
Packit Service |
35c908 |
* Note, in order for fc_wwn_t to be acceptable for %qx format strings,
|
|
Packit Service |
35c908 |
* it cannot be declared as u_int64_t.
|
|
Packit Service |
35c908 |
*/
|
|
Packit Service |
35c908 |
typedef unsigned long long fc_wwn_t; /* world-wide name */
|
|
Packit Service |
35c908 |
typedef u_int32_t fc_fid_t; /* fabric address */
|
|
Packit Service |
35c908 |
typedef u_int16_t fc_xid_t; /* exchange ID */
|
|
Packit Service |
35c908 |
|
|
Packit Service |
35c908 |
/*
|
|
Packit Service |
35c908 |
* Encapsulation / port option flags.
|
|
Packit Service |
35c908 |
*/
|
|
Packit Service |
35c908 |
#define FC_OPT_DEBUG_RX 0x01 /* log debug messages */
|
|
Packit Service |
35c908 |
#define FC_OPT_DEBUG_TX 0x02 /* log debug messages */
|
|
Packit Service |
35c908 |
#define FC_OPT_DEBUG (FC_OPT_DEBUG_RX | FC_OPT_DEBUG_TX)
|
|
Packit Service |
35c908 |
#define FC_OPT_NO_TX_CRC 0x04 /* don't generate sending CRC */
|
|
Packit Service |
35c908 |
#define FC_OPT_NO_RX_CRC 0x08 /* don't check received CRC */
|
|
Packit Service |
35c908 |
#define FC_OPT_FCIP_NO_SFS 0x10 /* No special frame (FCIP only) */
|
|
Packit Service |
35c908 |
#define FC_OPT_PASSIVE 0x20 /* Responding to connect */
|
|
Packit Service |
35c908 |
#define FC_OPT_SET_MAC 0x40 /* use non-standard MAC addr (FCOE) */
|
|
Packit Service |
35c908 |
#define FC_OPT_FCOE_OLD 0x80 /* use old prototype FCoE encaps */
|
|
Packit Service |
35c908 |
|
|
Packit Service |
35c908 |
/*
|
|
Packit Service |
35c908 |
* Convert 48-bit IEEE MAC address to 64-bit FC WWN.
|
|
Packit Service |
35c908 |
*/
|
|
Packit Service |
35c908 |
fc_wwn_t fc_wwn_from_mac(u_int64_t, u_int32_t scheme, u_int32_t port);
|
|
Packit Service |
35c908 |
fc_wwn_t fc_wwn_from_wwn(fc_wwn_t, u_int32_t scheme, u_int32_t port);
|
|
Packit Service |
35c908 |
|
|
Packit Service |
35c908 |
#endif /* _LIBFC_TYPES_H_ */
|