Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
fc_fip.h File Reference
#include <scsi/fc/fc_ns.h>

Go to the source code of this file.

Data Structures

struct  fip_header
 
struct  fip_desc
 
struct  fip_pri_desc
 
struct  fip_mac_desc
 
struct  fip_map_desc
 
struct  fip_wwn_desc
 
struct  fip_fab_desc
 
struct  fip_size_desc
 
struct  fip_encaps
 
struct  fip_vn_desc
 
struct  fip_fka_desc
 
struct  fip_fc4_feat
 
struct  fip_vendor_desc
 

Macros

#define FIP_DEF_PRI   128 /* default selection priority */
 
#define FIP_DEF_FC_MAP   0x0efc00 /* default FCoE MAP (MAC OUI) value */
 
#define FIP_DEF_FKA   8000 /* default FCF keep-alive/advert period (mS) */
 
#define FIP_VN_KA_PERIOD   90000 /* required VN_port keep-alive period (mS) */
 
#define FIP_FCF_FUZZ   100 /* random time added by FCF (mS) */
 
#define FIP_VN_FC_MAP   0x0efd00 /* MAC OUI for VN2VN use */
 
#define FIP_VN_PROBE_WAIT   100 /* interval between VN2VN probes (ms) */
 
#define FIP_VN_ANN_WAIT   400 /* interval between VN2VN announcements (ms) */
 
#define FIP_VN_RLIM_INT   10000 /* interval between probes when rate limited */
 
#define FIP_VN_RLIM_COUNT   10 /* number of probes before rate limiting */
 
#define FIP_VN_BEACON_INT   8000 /* interval between VN2VN beacons */
 
#define FIP_VN_BEACON_FUZZ   100 /* random time to add to beacon period (ms) */
 
#define FIP_ALL_FCOE_MACS   ((__u8[6]) { 1, 0x10, 0x18, 1, 0, 0 })
 
#define FIP_ALL_ENODE_MACS   ((__u8[6]) { 1, 0x10, 0x18, 1, 0, 1 })
 
#define FIP_ALL_FCF_MACS   ((__u8[6]) { 1, 0x10, 0x18, 1, 0, 2 })
 
#define FIP_ALL_VN2VN_MACS   ((__u8[6]) { 1, 0x10, 0x18, 1, 0, 4 })
 
#define FIP_ALL_P2P_MACS   ((__u8[6]) { 1, 0x10, 0x18, 1, 0, 5 })
 
#define FIP_VER   1 /* version for fip_header */
 
#define FIP_VER_SHIFT   4
 
#define FIP_VER_ENCAPS(v)   ((v) << FIP_VER_SHIFT)
 
#define FIP_VER_DECAPS(v)   ((v) >> FIP_VER_SHIFT)
 
#define FIP_BPW   4 /* bytes per word for lengths */
 

Enumerations

enum  fip_opcode {
  FIP_OP_DISC = 1, FIP_OP_LS = 2, FIP_OP_CTRL = 3, FIP_OP_VLAN = 4,
  FIP_OP_VN2VN = 5, FIP_OP_VENDOR_MIN = 0xfff8, FIP_OP_VENDOR_MAX = 0xfffe
}
 
enum  fip_disc_subcode { FIP_SC_SOL = 1, FIP_SC_ADV = 2 }
 
enum  fip_trans_subcode { FIP_SC_REQ = 1, FIP_SC_REP = 2 }
 
enum  fip_reset_subcode { FIP_SC_KEEP_ALIVE = 1, FIP_SC_CLR_VLINK = 2 }
 
enum  fip_vlan_subcode { FIP_SC_VL_REQ = 1, FIP_SC_VL_REP = 2 }
 
enum  fip_vn2vn_subcode {
  FIP_SC_VN_PROBE_REQ = 1, FIP_SC_VN_PROBE_REP = 2, FIP_SC_VN_CLAIM_NOTIFY = 3, FIP_SC_VN_CLAIM_REP = 4,
  FIP_SC_VN_BEACON = 5
}
 
enum  fip_flag {
  FIP_FL_FPMA = 0x8000, FIP_FL_SPMA = 0x4000, FIP_FL_REC_OR_P2P = 0x0008, FIP_FL_AVAIL = 0x0004,
  FIP_FL_SOL = 0x0002, FIP_FL_FPORT = 0x0001
}
 
enum  fip_desc_type {
  FIP_DT_PRI = 1, FIP_DT_MAC = 2, FIP_DT_MAP_OUI = 3, FIP_DT_NAME = 4,
  FIP_DT_FAB = 5, FIP_DT_FCOE_SIZE = 6, FIP_DT_FLOGI = 7, FIP_DT_FDISC = 8,
  FIP_DT_LOGO = 9, FIP_DT_ELP = 10, FIP_DT_VN_ID = 11, FIP_DT_FKA = 12,
  FIP_DT_VENDOR = 13, FIP_DT_VLAN = 14, FIP_DT_FC4F = 15, FIP_DT_LIMIT,
  FIP_DT_VENDOR_BASE = 128
}
 
enum  fip_fka_flags { FIP_FKA_ADV_D = 0x01 }
 

Functions

struct fip_header __attribute__ ((packed))
 

Variables

__u8 fip_ver
 
__u8 fip_resv1
 
__be16 fip_op
 
__u8 fip_resv2
 
__u8 fip_subcode
 
__be16 fip_dl_len
 
__be16 fip_flags
 
enum fip_opcode __attribute__
 
struct fip_desc fd_desc
 
__u8 fd_resvd
 
__u8 fd_pri
 
__u8 fd_mac [ETH_ALEN]
 
__u8 fd_map [3]
 
__be64 fd_wwn
 
__be16 fd_vfid
 
__be16 fd_size
 
__u8 fd_fc_id [3]
 
__be64 fd_wwpn
 
__u8 fd_flags
 
__be32 fd_fka_period
 
struct fc_ns_fts fd_fts
 
struct fc_ns_ff fd_ff
 
__u8 fd_vendor_id [8]
 

Macro Definition Documentation

#define FIP_ALL_ENODE_MACS   ((__u8[6]) { 1, 0x10, 0x18, 1, 0, 1 })

Definition at line 49 of file fc_fip.h.

#define FIP_ALL_FCF_MACS   ((__u8[6]) { 1, 0x10, 0x18, 1, 0, 2 })

Definition at line 50 of file fc_fip.h.

#define FIP_ALL_FCOE_MACS   ((__u8[6]) { 1, 0x10, 0x18, 1, 0, 0 })

Definition at line 48 of file fc_fip.h.

#define FIP_ALL_P2P_MACS   ((__u8[6]) { 1, 0x10, 0x18, 1, 0, 5 })

Definition at line 52 of file fc_fip.h.

#define FIP_ALL_VN2VN_MACS   ((__u8[6]) { 1, 0x10, 0x18, 1, 0, 4 })

Definition at line 51 of file fc_fip.h.

#define FIP_BPW   4 /* bytes per word for lengths */

Definition at line 69 of file fc_fip.h.

#define FIP_DEF_FC_MAP   0x0efc00 /* default FCoE MAP (MAC OUI) value */

Definition at line 29 of file fc_fip.h.

#define FIP_DEF_FKA   8000 /* default FCF keep-alive/advert period (mS) */

Definition at line 30 of file fc_fip.h.

#define FIP_DEF_PRI   128 /* default selection priority */

Definition at line 28 of file fc_fip.h.

#define FIP_FCF_FUZZ   100 /* random time added by FCF (mS) */

Definition at line 32 of file fc_fip.h.

#define FIP_VER   1 /* version for fip_header */

Definition at line 54 of file fc_fip.h.

#define FIP_VER_DECAPS (   v)    ((v) >> FIP_VER_SHIFT)

Definition at line 68 of file fc_fip.h.

#define FIP_VER_ENCAPS (   v)    ((v) << FIP_VER_SHIFT)

Definition at line 67 of file fc_fip.h.

#define FIP_VER_SHIFT   4

Definition at line 66 of file fc_fip.h.

#define FIP_VN_ANN_WAIT   400 /* interval between VN2VN announcements (ms) */

Definition at line 39 of file fc_fip.h.

#define FIP_VN_BEACON_FUZZ   100 /* random time to add to beacon period (ms) */

Definition at line 43 of file fc_fip.h.

#define FIP_VN_BEACON_INT   8000 /* interval between VN2VN beacons */

Definition at line 42 of file fc_fip.h.

#define FIP_VN_FC_MAP   0x0efd00 /* MAC OUI for VN2VN use */

Definition at line 37 of file fc_fip.h.

#define FIP_VN_KA_PERIOD   90000 /* required VN_port keep-alive period (mS) */

Definition at line 31 of file fc_fip.h.

#define FIP_VN_PROBE_WAIT   100 /* interval between VN2VN probes (ms) */

Definition at line 38 of file fc_fip.h.

#define FIP_VN_RLIM_COUNT   10 /* number of probes before rate limiting */

Definition at line 41 of file fc_fip.h.

#define FIP_VN_RLIM_INT   10000 /* interval between probes when rate limited */

Definition at line 40 of file fc_fip.h.

Enumeration Type Documentation

Enumerator:
FIP_DT_PRI 
FIP_DT_MAC 
FIP_DT_MAP_OUI 
FIP_DT_NAME 
FIP_DT_FAB 
FIP_DT_FCOE_SIZE 
FIP_DT_FLOGI 
FIP_DT_FDISC 
FIP_DT_LOGO 
FIP_DT_ELP 
FIP_DT_VN_ID 
FIP_DT_FKA 
FIP_DT_VENDOR 
FIP_DT_VLAN 
FIP_DT_FC4F 
FIP_DT_LIMIT 
FIP_DT_VENDOR_BASE 

Definition at line 147 of file fc_fip.h.

Enumerator:
FIP_SC_SOL 
FIP_SC_ADV 

Definition at line 87 of file fc_fip.h.

Enumerator:
FIP_FKA_ADV_D 

Definition at line 255 of file fc_fip.h.

enum fip_flag
Enumerator:
FIP_FL_FPMA 
FIP_FL_SPMA 
FIP_FL_REC_OR_P2P 
FIP_FL_AVAIL 
FIP_FL_SOL 
FIP_FL_FPORT 

Definition at line 130 of file fc_fip.h.

enum fip_opcode
Enumerator:
FIP_OP_DISC 
FIP_OP_LS 
FIP_OP_CTRL 
FIP_OP_VLAN 
FIP_OP_VN2VN 
FIP_OP_VENDOR_MIN 
FIP_OP_VENDOR_MAX 

Definition at line 74 of file fc_fip.h.

Enumerator:
FIP_SC_KEEP_ALIVE 
FIP_SC_CLR_VLINK 

Definition at line 103 of file fc_fip.h.

Enumerator:
FIP_SC_REQ 
FIP_SC_REP 

Definition at line 95 of file fc_fip.h.

Enumerator:
FIP_SC_VL_REQ 
FIP_SC_VL_REP 

Definition at line 111 of file fc_fip.h.

Enumerator:
FIP_SC_VN_PROBE_REQ 
FIP_SC_VN_PROBE_REP 
FIP_SC_VN_CLAIM_NOTIFY 
FIP_SC_VN_CLAIM_REP 
FIP_SC_VN_BEACON 

Definition at line 119 of file fc_fip.h.

Function Documentation

struct fip_header __attribute__ ( (packed)  )
read

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

Variable Documentation

struct fip_desc fd_desc

Definition at line 175 of file fc_fip.h.

__u8 fd_fc_id[3]

Definition at line 244 of file fc_fip.h.

Definition at line 273 of file fc_fip.h.

__be32 fd_fka_period

Definition at line 254 of file fc_fip.h.

__u8 fd_flags

Definition at line 253 of file fc_fip.h.

struct fc_ns_fts fd_fts

Definition at line 272 of file fc_fip.h.

__u8 fd_mac

Definition at line 184 of file fc_fip.h.

__u8 fd_map

Definition at line 194 of file fc_fip.h.

__u8 fd_pri

Definition at line 177 of file fc_fip.h.

__u8 fd_resvd

Definition at line 176 of file fc_fip.h.

__be16 fd_size

Definition at line 221 of file fc_fip.h.

__u8 fd_vendor_id[8]

Definition at line 281 of file fc_fip.h.

__be16 fd_vfid

Definition at line 213 of file fc_fip.h.

__be64 fd_wwn

Definition at line 203 of file fc_fip.h.

__be64 fd_wwpn

Definition at line 245 of file fc_fip.h.

__be16 fip_dl_len

Definition at line 70 of file fc_fip.h.

__be16 fip_flags

Definition at line 71 of file fc_fip.h.

__be16 fip_op

Definition at line 67 of file fc_fip.h.

__u8 fip_resv1

Definition at line 66 of file fc_fip.h.

__u8 fip_resv2

Definition at line 68 of file fc_fip.h.

__u8 fip_subcode

Definition at line 69 of file fc_fip.h.

__u8 fip_ver

Definition at line 65 of file fc_fip.h.