Emulex Logo
OneCoreā„¢ Storage SDK Release 11.2
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ocs_fabric.h File Reference

Go to the source code of this file.

Detailed Description

Declarations for the interface exported by ocs_fabric

Definition in file ocs_fabric.h.

Data Structures

struct  ocs_fdmi_attr_def_t
 

Macros

#define RHBA_NODENAME   0x1 /* 8 byte WWNN */
 
#define RHBA_MANUFACTURER   0x2 /* 4 to 64 byte ASCII string */
 
#define RHBA_SERIAL_NUMBER   0x3 /* 4 to 64 byte ASCII string */
 
#define RHBA_MODEL   0x4 /* 4 to 256 byte ASCII string */
 
#define RHBA_MODEL_DESCRIPTION   0x5 /* 4 to 256 byte ASCII string */
 
#define RHBA_HARDWARE_VERSION   0x6 /* 4 to 256 byte ASCII string */
 
#define RHBA_DRIVER_VERSION   0x7 /* 4 to 256 byte ASCII string */
 
#define RHBA_OPTION_ROM_VERSION   0x8 /* 4 to 256 byte ASCII string */
 
#define RHBA_FIRMWARE_VERSION   0x9 /* 4 to 256 byte ASCII string */
 
#define RHBA_OS_NAME_VERSION   0xa /* 4 to 256 byte ASCII string */
 
#define RHBA_MAX_CT_PAYLOAD_LEN   0xb /* 32-bit unsigned int */
 
#define RHBA_SYM_NODENAME   0xc /* 4 to 256 byte ASCII string */
 
#define RHBA_VENDOR_INFO   0xd /* 32-bit unsigned int */
 
#define RHBA_NUM_PORTS   0xe /* 32-bit unsigned int */
 
#define RHBA_FABRIC_WWNN   0xf /* 8 byte WWNN */
 
#define RHBA_BIOS_VERSION   0x10 /* 4 to 256 byte ASCII string */
 
#define RHBA_BIOS_STATE   0x11 /* 32-bit unsigned int */
 
#define RHBA_VENDOR_ID   0xe0 /* 8 byte ASCII string */
 
#define RPRT_SUPPORTED_FC4_TYPES   0x1 /* 32 byte binary array */
 
#define RPRT_SUPPORTED_SPEED   0x2 /* 32-bit unsigned int */
 
#define RPRT_PORT_SPEED   0x3 /* 32-bit unsigned int */
 
#define RPRT_MAX_FRAME_SIZE   0x4 /* 32-bit unsigned int */
 
#define RPRT_OS_DEVICE_NAME   0x5 /* 4 to 256 byte ASCII string */
 
#define RPRT_HOST_NAME   0x6 /* 4 to 256 byte ASCII string */
 
#define RPRT_NODENAME   0x7 /* 8 byte WWNN */
 
#define RPRT_PORTNAME   0x8 /* 8 byte WWPN */
 
#define RPRT_SYM_PORTNAME   0x9 /* 4 to 256 byte ASCII string */
 
#define RPRT_PORT_TYPE   0xa /* 32-bit unsigned int */
 
#define RPRT_SUPPORTED_CLASS   0xb /* 32-bit unsigned int */
 
#define RPRT_FABRICNAME   0xc /* 8 byte Fabric WWPN */
 
#define RPRT_ACTIVE_FC4_TYPES   0xd /* 32 byte binary array */
 
#define RPRT_PORT_STATE   0x101 /* 32-bit unsigned int */
 
#define RPRT_DISC_PORT   0x102 /* 32-bit unsigned int */
 
#define RPRT_PORT_ID   0x103 /* 32-bit unsigned int */
 
#define RPRT_SMART_SECURITY   0xf106 /* 32-bit unsigned int */
 
#define FDMI_RHBA_MASK_V1   0x000003ff
 
#define FDMI_RHBA_MASK_V2   0x0002efff
 
#define FDMI_PORT_MASK_V1   0x0000003f
 
#define FDMI_PORT_MASK_V2   0x0000ffff
 

Functions

void * __ocs_fabric_init (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Fabric node state machine: Initial state. More...
 
void * __ocs_fabric_flogi_wait_rsp (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Fabric node state machine: Wait for an FLOGI response. More...
 
void * __ocs_fabric_domain_attach_wait (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 
void * __ocs_fabric_wait_domain_attach (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Fabric node state machine: Wait for a domain/sport attach event. More...
 
void * __ocs_vport_fabric_init (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Fabric node state machine: Initial state for a virtual port. More...
 
void * __ocs_fabric_fdisc_wait_rsp (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Fabric node state machine: Wait for an FDISC response. More...
 
void * __ocs_fabric_wait_sport_attach (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 
void * __ocs_ns_init (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Name services node state machine: Initialize. More...
 
void * __ocs_ns_plogi_wait_rsp (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Name services node state machine: Wait for a PLOGI response. More...
 
void * __ocs_ns_rftid_wait_rsp (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Name services node state machine: Wait for an RFTID response event. More...
 
void * __ocs_ns_rffid_wait_rsp (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Fabric node state machine: Wait for RFFID response event. More...
 
void * __ocs_ns_nvme_rffid_wait_rsp (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 
void * __ocs_ns_wait_node_attach (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Name services node state machine: Wait for a node attach completion. More...
 
void * __ocs_fabric_wait_attach_evt_shutdown (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Wait for a domain/sport/node attach completion, then shutdown. More...
 
void * __ocs_ns_logo_wait_rsp (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 
void * __ocs_ns_gidpt_wait_rsp (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Name services node state machine: Wait for a GIDPT response. More...
 
void * __ocs_ns_idle (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Name services node state machine: Idle state. More...
 
void * __ocs_fdmi_idle (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 FDMI node state machine: FDMI node is idle. More...
 
void * __ocs_fdmi_rhba_wait_rsp (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Fabric node state machine: Wait for RHBA response event. More...
 
void * __ocs_fdmi_dhba_wait_rsp (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Fabric node state machine: Wait for DHBA response event. More...
 
void * __ocs_fdmi_dprt_wait_rsp (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Fabric node state machine: Wait for DPRT response event. More...
 
void * __ocs_fdmi_grhl_wait_rsp (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 
void * __ocs_fdmi_reg_port_wait_rsp (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 
void * __ocs_ns_gidpt_delay (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Name services node state machine: Delayed GIDPT. More...
 
void * __ocs_ns_ganxt_wait_rsp (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 
void * __ocs_fdmi_init (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 FDMI node state machine: Initialize. More...
 
void * __ocs_fdmi_plogi_wait_rsp (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 FDMI node state machine: Wait for a PLOGI response. More...
 
void * __ocs_fdmi_wait_node_attach (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 FDMI node state machine: Wait for a node attach completion. More...
 
void * __ocs_fabctl_init (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Fabric controller node state machine: Initial state. More...
 
void * __ocs_fabctl_wait_node_attach (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Fabric controller node state machine: Wait for a node attach request to complete. More...
 
void * __ocs_fabctl_wait_scr_rsp (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Fabric controller node state machine: Wait for an SCR response from the fabric controller. More...
 
void * __ocs_fabctl_ready (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Fabric controller node state machine: Ready. More...
 
void * __ocs_fabctl_wait_ls_acc_cmpl (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Fabric controller node state machine: Wait for LS_ACC. More...
 
void * __ocs_fabric_idle (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Fabric node state machine: Fabric node is idle. More...
 
void * __ocs_p2p_rnode_init (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Point-to-point state machine: Remote node initialization state. More...
 
void * __ocs_p2p_domain_attach_wait (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 
void * __ocs_p2p_wait_flogi_acc_cmpl (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Point-to-point node state machine: Wait for the FLOGI accept completion. More...
 
void * __ocs_p2p_wait_plogi_rsp (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Point-to-point node state machine: Wait for a PLOGI response as a point-to-point winner. More...
 
void * __ocs_p2p_wait_plogi_rsp_recvd_prli (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Point-to-point node state machine: Waiting on a response for a sent PLOGI. More...
 
void * __ocs_p2p_wait_domain_attach (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Point-to-point state machine: Wait for the domain attach to complete. More...
 
void * __ocs_p2p_wait_node_attach (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Point-to-point node state machine: Wait for a point-to-point node attach to complete. More...
 
int32_t ocs_rnode_is_nport (fc_plogi_payload_t *remote_sparms)
 Return TRUE if the remote node is an NPORT. More...
 
int32_t ocs_p2p_setup (ocs_sport_t *sport)
 Set up the domain point-to-point parameters. More...
 
void ocs_fabric_set_topology (ocs_node_t *node, ocs_sport_topology_e topology)
 Set sport topology. More...
 
void ocs_fabric_notify_topology (ocs_node_t *node)
 Notify sport topology. More...
 
int ocs_fdmi_hba_attr_wwnn (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_hba_attr_manufacturer (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_hba_attr_sn (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_hba_attr_model (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_hba_attr_description (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_hba_attr_drvr_ver (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_hba_attr_rom_ver (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_hba_attr_fmw_ver (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_hba_attr_os_ver (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_hba_attr_ct_len (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_hba_attr_symbolic_name (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_hba_attr_vendor_info (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_hba_attr_num_ports (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_hba_attr_fabric_wwnn (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_hba_attr_bios_ver (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_hba_attr_bios_state (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_hba_attr_vendor_id (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_port_attr_fc4type (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_port_attr_support_speed (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_port_attr_speed (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_port_attr_max_frame (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_port_attr_host_name (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_port_attr_wwnn (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_port_attr_wwpn (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_port_attr_symbolic_name (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_port_attr_port_type (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_port_attr_class (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_port_attr_fabric_wwpn (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_port_attr_active_fc4type (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_port_attr_port_state (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_port_attr_nportid (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int ocs_fdmi_port_attr_os_devname (ocs_sport_t *sport, ocs_fdmi_attr_def_t *ad)
 
int32_t ocs_process_fdmi_grhl_payload (ocs_node_t *node, fcct_fdmi_grhl_rsp_t *grhl, uint32_t grhl_len, void *buf)
 Process the GRHL acc payload. More...
 
int32_t ocs_process_fdmi_grpl_payload (ocs_node_t *node, fcct_fdmi_grpl_rsp_t *grpl, uint32_t grpl_len, void *buf)
 Process the GRPL acc payload. More...
 
int32_t ocs_process_fdmi_ghat_payload (ocs_node_t *node, fcct_fdmi_ghat_rsp_t *ghat, uint32_t ghat_len, void *buf)
 Process the GHAT acc payload. More...
 
int32_t ocs_process_fdmi_gpat_payload (ocs_node_t *node, fcct_fdmi_gpat_rsp_t *gpat, uint32_t gpat_len, void *buf)
 Process the GPAT acc payload. More...
 

Macro Details

#define FDMI_PORT_MASK_V1   0x0000003f

Definition at line 146 of file ocs_fabric.h.

#define FDMI_PORT_MASK_V2   0x0000ffff

Definition at line 149 of file ocs_fabric.h.

#define FDMI_RHBA_MASK_V1   0x000003ff

Definition at line 140 of file ocs_fabric.h.

#define FDMI_RHBA_MASK_V2   0x0002efff

Definition at line 143 of file ocs_fabric.h.

#define RHBA_BIOS_STATE   0x11 /* 32-bit unsigned int */

Definition at line 115 of file ocs_fabric.h.

#define RHBA_BIOS_VERSION   0x10 /* 4 to 256 byte ASCII string */

Definition at line 114 of file ocs_fabric.h.

#define RHBA_DRIVER_VERSION   0x7 /* 4 to 256 byte ASCII string */

Definition at line 105 of file ocs_fabric.h.

#define RHBA_FABRIC_WWNN   0xf /* 8 byte WWNN */

Definition at line 113 of file ocs_fabric.h.

#define RHBA_FIRMWARE_VERSION   0x9 /* 4 to 256 byte ASCII string */

Definition at line 107 of file ocs_fabric.h.

#define RHBA_HARDWARE_VERSION   0x6 /* 4 to 256 byte ASCII string */

Definition at line 104 of file ocs_fabric.h.

#define RHBA_MANUFACTURER   0x2 /* 4 to 64 byte ASCII string */

Definition at line 100 of file ocs_fabric.h.

#define RHBA_MAX_CT_PAYLOAD_LEN   0xb /* 32-bit unsigned int */

Definition at line 109 of file ocs_fabric.h.

#define RHBA_MODEL   0x4 /* 4 to 256 byte ASCII string */

Definition at line 102 of file ocs_fabric.h.

#define RHBA_MODEL_DESCRIPTION   0x5 /* 4 to 256 byte ASCII string */

Definition at line 103 of file ocs_fabric.h.

#define RHBA_NODENAME   0x1 /* 8 byte WWNN */

Definition at line 99 of file ocs_fabric.h.

#define RHBA_NUM_PORTS   0xe /* 32-bit unsigned int */

Definition at line 112 of file ocs_fabric.h.

#define RHBA_OPTION_ROM_VERSION   0x8 /* 4 to 256 byte ASCII string */

Definition at line 106 of file ocs_fabric.h.

#define RHBA_OS_NAME_VERSION   0xa /* 4 to 256 byte ASCII string */

Definition at line 108 of file ocs_fabric.h.

#define RHBA_SERIAL_NUMBER   0x3 /* 4 to 64 byte ASCII string */

Definition at line 101 of file ocs_fabric.h.

#define RHBA_SYM_NODENAME   0xc /* 4 to 256 byte ASCII string */

Definition at line 110 of file ocs_fabric.h.

#define RHBA_VENDOR_ID   0xe0 /* 8 byte ASCII string */

Definition at line 116 of file ocs_fabric.h.

#define RHBA_VENDOR_INFO   0xd /* 32-bit unsigned int */

Definition at line 111 of file ocs_fabric.h.

#define RPRT_ACTIVE_FC4_TYPES   0xd /* 32 byte binary array */

Definition at line 133 of file ocs_fabric.h.

#define RPRT_DISC_PORT   0x102 /* 32-bit unsigned int */

Definition at line 135 of file ocs_fabric.h.

#define RPRT_FABRICNAME   0xc /* 8 byte Fabric WWPN */

Definition at line 132 of file ocs_fabric.h.

#define RPRT_HOST_NAME   0x6 /* 4 to 256 byte ASCII string */

Definition at line 126 of file ocs_fabric.h.

#define RPRT_MAX_FRAME_SIZE   0x4 /* 32-bit unsigned int */

Definition at line 124 of file ocs_fabric.h.

#define RPRT_NODENAME   0x7 /* 8 byte WWNN */

Definition at line 127 of file ocs_fabric.h.

#define RPRT_OS_DEVICE_NAME   0x5 /* 4 to 256 byte ASCII string */

Definition at line 125 of file ocs_fabric.h.

#define RPRT_PORT_ID   0x103 /* 32-bit unsigned int */

Definition at line 136 of file ocs_fabric.h.

#define RPRT_PORT_SPEED   0x3 /* 32-bit unsigned int */

Definition at line 123 of file ocs_fabric.h.

#define RPRT_PORT_STATE   0x101 /* 32-bit unsigned int */

Definition at line 134 of file ocs_fabric.h.

#define RPRT_PORT_TYPE   0xa /* 32-bit unsigned int */

Definition at line 130 of file ocs_fabric.h.

#define RPRT_PORTNAME   0x8 /* 8 byte WWPN */

Definition at line 128 of file ocs_fabric.h.

#define RPRT_SMART_SECURITY   0xf106 /* 32-bit unsigned int */

Definition at line 137 of file ocs_fabric.h.

#define RPRT_SUPPORTED_CLASS   0xb /* 32-bit unsigned int */

Definition at line 131 of file ocs_fabric.h.

#define RPRT_SUPPORTED_FC4_TYPES   0x1 /* 32 byte binary array */

Definition at line 121 of file ocs_fabric.h.

#define RPRT_SUPPORTED_SPEED   0x2 /* 32-bit unsigned int */

Definition at line 122 of file ocs_fabric.h.

#define RPRT_SYM_PORTNAME   0x9 /* 4 to 256 byte ASCII string */

Definition at line 129 of file ocs_fabric.h.

Function Details

void* __ocs_fabric_domain_attach_wait ( ocs_sm_ctx_t *  ctx,
ocs_sm_event_t  evt,
void *  arg 
)
void* __ocs_fabric_wait_sport_attach ( ocs_sm_ctx_t *  ctx,
ocs_sm_event_t  evt,
void *  arg 
)
void* __ocs_fdmi_grhl_wait_rsp ( ocs_sm_ctx_t *  ctx,
ocs_sm_event_t  evt,
void *  arg 
)
void* __ocs_fdmi_idle ( ocs_sm_ctx_t *  ctx,
ocs_sm_event_t  evt,
void *  arg 
)

FDMI node state machine: FDMI node is idle.

Description
Wait for fdmi node events.
Parameters
ctxRemote node state machine context.
evtEvent to process.
argPer event optional argument.
Returns
Returns NULL.

Definition at line 1144 of file ocs_fabric.c.

void* __ocs_fdmi_init ( ocs_sm_ctx_t *  ctx,
ocs_sm_event_t  evt,
void *  arg 
)

FDMI node state machine: Initialize.

Description
A PLOGI is sent to the well-known FDMI node.
Parameters
ctxRemote node state machine context.
evtEvent to process.
argPer event optional argument.
Returns
Returns NULL.

Definition at line 625 of file ocs_fabric.c.

void* __ocs_fdmi_plogi_wait_rsp ( ocs_sm_ctx_t *  ctx,
ocs_sm_event_t  evt,
void *  arg 
)

FDMI node state machine: Wait for a PLOGI response.

Description
Waits for a response from PLOGI to name services node, then issues a node attach request to the HAL.
Parameters
ctxRemote node state machine context.
evtEvent to process.
argPer event optional argument.
Returns
Returns NULL.

Definition at line 660 of file ocs_fabric.c.

void* __ocs_fdmi_reg_port_wait_rsp ( ocs_sm_ctx_t *  ctx,
ocs_sm_event_t  evt,
void *  arg 
)

Definition at line 3220 of file ocs_fabric.c.

void* __ocs_ns_ganxt_wait_rsp ( ocs_sm_ctx_t *  ctx,
ocs_sm_event_t  evt,
void *  arg 
)

Definition at line 1037 of file ocs_fabric.c.

void* __ocs_ns_logo_wait_rsp ( ocs_sm_ctx_t *  ctx,
ocs_sm_event_t  evt,
void *  arg 
)
void* __ocs_ns_nvme_rffid_wait_rsp ( ocs_sm_ctx_t *  ctx,
ocs_sm_event_t  evt,
void *  arg 
)

Definition at line 880 of file ocs_fabric.c.

void* __ocs_p2p_domain_attach_wait ( ocs_sm_ctx_t *  ctx,
ocs_sm_event_t  evt,
void *  arg 
)
int ocs_fdmi_hba_attr_bios_state ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 3082 of file ocs_fabric.c.

int ocs_fdmi_hba_attr_bios_ver ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 3063 of file ocs_fabric.c.

int ocs_fdmi_hba_attr_ct_len ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 2979 of file ocs_fabric.c.

int ocs_fdmi_hba_attr_description ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 2878 of file ocs_fabric.c.

int ocs_fdmi_hba_attr_drvr_ver ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 2899 of file ocs_fabric.c.

int ocs_fdmi_hba_attr_fabric_wwnn ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 3046 of file ocs_fabric.c.

int ocs_fdmi_hba_attr_fmw_ver ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 2940 of file ocs_fabric.c.

int ocs_fdmi_hba_attr_manufacturer ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 2814 of file ocs_fabric.c.

int ocs_fdmi_hba_attr_model ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 2858 of file ocs_fabric.c.

int ocs_fdmi_hba_attr_num_ports ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 3030 of file ocs_fabric.c.

int ocs_fdmi_hba_attr_os_ver ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 2959 of file ocs_fabric.c.

int ocs_fdmi_hba_attr_rom_ver ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 2920 of file ocs_fabric.c.

int ocs_fdmi_hba_attr_sn ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 2834 of file ocs_fabric.c.

int ocs_fdmi_hba_attr_symbolic_name ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 2994 of file ocs_fabric.c.

int ocs_fdmi_hba_attr_vendor_id ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 3098 of file ocs_fabric.c.

int ocs_fdmi_hba_attr_vendor_info ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 3016 of file ocs_fabric.c.

int ocs_fdmi_hba_attr_wwnn ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 2797 of file ocs_fabric.c.

int ocs_fdmi_port_attr_active_fc4type ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 3608 of file ocs_fabric.c.

int ocs_fdmi_port_attr_class ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 3570 of file ocs_fabric.c.

int ocs_fdmi_port_attr_fabric_wwpn ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 3584 of file ocs_fabric.c.

int ocs_fdmi_port_attr_fc4type ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 3315 of file ocs_fabric.c.

int ocs_fdmi_port_attr_host_name ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 3478 of file ocs_fabric.c.

int ocs_fdmi_port_attr_max_frame ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 3432 of file ocs_fabric.c.

int ocs_fdmi_port_attr_nportid ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 3650 of file ocs_fabric.c.

int ocs_fdmi_port_attr_os_devname ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 3457 of file ocs_fabric.c.

int ocs_fdmi_port_attr_port_state ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 3626 of file ocs_fabric.c.

int ocs_fdmi_port_attr_port_type ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 3549 of file ocs_fabric.c.

int ocs_fdmi_port_attr_speed ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 3384 of file ocs_fabric.c.

int ocs_fdmi_port_attr_support_speed ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 3334 of file ocs_fabric.c.

int ocs_fdmi_port_attr_symbolic_name ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 3532 of file ocs_fabric.c.

int ocs_fdmi_port_attr_wwnn ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 3497 of file ocs_fabric.c.

int ocs_fdmi_port_attr_wwpn ( ocs_sport_t *  sport,
ocs_fdmi_attr_def_t *  ad 
)

Definition at line 3515 of file ocs_fabric.c.

int32_t ocs_p2p_setup ( ocs_sport_t *  sport)

Set up the domain point-to-point parameters.

Description
The remote node service parameters are examined, and various point-to-point variables are set.
Parameters
sportPointer to the sport object.
Returns
Returns 0 on success, or a negative error value on failure.

Definition at line 2733 of file ocs_fabric.c.

int32_t ocs_process_fdmi_ghat_payload ( ocs_node_t *  node,
fcct_fdmi_ghat_rsp_t *  ghat,
uint32_t  ghat_len,
void *  buf 
)

Process the GHAT acc payload.

Description
The GHAT payload is parsed, and new nodes are created, as needed.
Parameters
nodePointer to the node structure.
ghatPointer to the GHAT payload.
ghat_lenPayload length
bufdestination buffer to copy the HBA attributes info
Returns
Returns 0 on success, or a negative error value on failure.

Definition at line 2423 of file ocs_fabric.c.

int32_t ocs_process_fdmi_gpat_payload ( ocs_node_t *  node,
fcct_fdmi_gpat_rsp_t *  gpat,
uint32_t  gpat_len,
void *  buf 
)

Process the GPAT acc payload.

Description
The GPAT payload is parsed, and new nodes are created, as needed.
Parameters
nodePointer to the node structure.
gpatPointer to the GPAT payload.
gpat_lenPayload length
bufdestination buffer to copy the Port attributes info
Returns
Returns 0 on success, or a negative error value on failure.

Definition at line 2599 of file ocs_fabric.c.

int32_t ocs_process_fdmi_grhl_payload ( ocs_node_t *  node,
fcct_fdmi_grhl_rsp_t *  grhl,
uint32_t  grhl_len,
void *  buf 
)

Process the GRHL acc payload.

Description
The GRHL payload is parsed, and new nodes are created, as needed.
Parameters
nodePointer to the node structure.
grhlPointer to the GRHL payload.
grhl_lenPayload length
bufdestination buffer to copy the HBA list info
Returns
Returns 0 on success, or a negative error value on failure.

Definition at line 2322 of file ocs_fabric.c.

int32_t ocs_process_fdmi_grpl_payload ( ocs_node_t *  node,
fcct_fdmi_grpl_rsp_t *  grpl,
uint32_t  grpl_len,
void *  buf 
)

Process the GRPL acc payload.

Description
The GRPL payload is parsed, and new nodes are created, as needed.
Parameters
nodePointer to the node structure.
grplPointer to the GRPL payload.
grpl_lenPayload length
bufdestination buffer to copy the Port list info
Returns
Returns 0 on success, or a negative error value on failure.

Definition at line 2372 of file ocs_fabric.c.

int32_t ocs_rnode_is_nport ( fc_plogi_payload_t *  remote_sparms)

Return TRUE if the remote node is an NPORT.

Description
Examines the service parameters. Returns TRUE if the node reports itself as an NPORT.
Parameters
remote_sparmsRemote node service parameters.
Returns
Returns TRUE if NPORT.

Definition at line 1557 of file ocs_fabric.c.