Emulex Logo
OneCoreā„¢ Storage SDK Release 11.2
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ocs_common.h File Reference
#include "ocs_common_shared.h"
#include "ocs_os.h"
#include "ocs_sm.h"
#include "ocs_scsi_ini.h"
#include "ocs_scsi_tgt.h"

Go to the source code of this file.

Detailed Description

Contains declarations shared between the alex layer and HAL/SLI4

Definition in file ocs_common.h.

Data Structures

struct  ocs_sport_t
 SLI Port object. More...
 
struct  ocs_domain_t
 iSCSI domain object More...
 
struct  ocs_session_login_options_t
 SESSION_LOGIN_OPTIONS. More...
 
struct  ocs_session_q_unsol_t
 Defines the parameters passed to the target unsolicted PDU handler. More...
 
struct  ocs_session_t
 iSCSI Session object More...
 
struct  ocs_cxn_q_cbit_t
 List object to hold PDUs with continue bit set during login and text negotiation. More...
 
struct  ocs_cxn_t
 Connection object. More...
 

Macros

#define OCS_CHAP_CHALLENGE_SIZE   16
 
#define OCS_DISPLAY_NAME_LENGTH   32
 
#define OCS_MAX_ISCSI_NAME   256
 
#define OCS_IQN_SUFFIX_DEFAULT   "default"
 

Typedefs

typedef uint32_t ocs_hal_portal_t
 
typedef int32_t(* ocs_unsol_cb_t )(void *, ocs_cxn_t *, struct ocs_hal_rq_buffer_s *, uint32_t, struct ocs_hal_rq_buffer_s *, uint32_t, uint8_t)
 

Enumerations

enum  ocs_xport_e { OCS_XPORT_FC, OCS_XPORT_ISCSI }
 

Functions

static void ocs_sport_lock_init (ocs_sport_t *sport)
 
static void ocs_sport_lock_free (ocs_sport_t *sport)
 
static int32_t ocs_sport_lock_try (ocs_sport_t *sport)
 
static void ocs_sport_lock (ocs_sport_t *sport)
 
static void ocs_sport_unlock (ocs_sport_t *sport)
 
static void ocs_domain_lock_init (ocs_domain_t *domain)
 
static void ocs_domain_lock_free (ocs_domain_t *domain)
 
static int32_t ocs_domain_lock_try (ocs_domain_t *domain)
 
static void ocs_domain_lock (ocs_domain_t *domain)
 
static void ocs_domain_unlock (ocs_domain_t *domain)
 
static void ocs_node_lock_init (ocs_node_t *node)
 
static void ocs_node_lock_free (ocs_node_t *node)
 
static int32_t ocs_node_lock_try (ocs_node_t *node)
 
static void ocs_node_lock (ocs_node_t *node)
 
static void ocs_node_unlock (ocs_node_t *node)
 

Macro Details

#define OCS_CHAP_CHALLENGE_SIZE   16

Definition at line 47 of file ocs_common.h.

#define OCS_DISPLAY_NAME_LENGTH   32

Definition at line 49 of file ocs_common.h.

#define OCS_IQN_SUFFIX_DEFAULT   "default"

Definition at line 241 of file ocs_common.h.

#define OCS_MAX_ISCSI_NAME   256

Definition at line 240 of file ocs_common.h.

Type Details

typedef uint32_t ocs_hal_portal_t

Definition at line 204 of file ocs_common.h.

typedef int32_t(* ocs_unsol_cb_t)(void *, ocs_cxn_t *, struct ocs_hal_rq_buffer_s *, uint32_t, struct ocs_hal_rq_buffer_s *, uint32_t, uint8_t)

Definition at line 281 of file ocs_common.h.

Enumeration Details

Enumerator
OCS_XPORT_FC 
OCS_XPORT_ISCSI 

Definition at line 45 of file ocs_common.h.

Function Details

static void ocs_domain_lock ( ocs_domain_t *  domain)
inlinestatic

Definition at line 186 of file ocs_common.h.

static void ocs_domain_lock_free ( ocs_domain_t *  domain)
inlinestatic

Definition at line 176 of file ocs_common.h.

static void ocs_domain_lock_init ( ocs_domain_t *  domain)
inlinestatic

Definition at line 171 of file ocs_common.h.

static int32_t ocs_domain_lock_try ( ocs_domain_t *  domain)
inlinestatic

Definition at line 181 of file ocs_common.h.

static void ocs_domain_unlock ( ocs_domain_t *  domain)
inlinestatic

Definition at line 191 of file ocs_common.h.

static void ocs_node_lock ( ocs_node_t *  node)
inlinestatic

Definition at line 432 of file ocs_common.h.

static void ocs_node_lock_free ( ocs_node_t *  node)
inlinestatic

Definition at line 422 of file ocs_common.h.

static void ocs_node_lock_init ( ocs_node_t *  node)
inlinestatic

Definition at line 417 of file ocs_common.h.

static int32_t ocs_node_lock_try ( ocs_node_t *  node)
inlinestatic

Definition at line 427 of file ocs_common.h.

static void ocs_node_unlock ( ocs_node_t *  node)
inlinestatic

Definition at line 437 of file ocs_common.h.

static void ocs_sport_lock ( ocs_sport_t *  sport)
inlinestatic

Definition at line 131 of file ocs_common.h.

static void ocs_sport_lock_free ( ocs_sport_t *  sport)
inlinestatic

Definition at line 121 of file ocs_common.h.

static void ocs_sport_lock_init ( ocs_sport_t *  sport)
inlinestatic

Definition at line 116 of file ocs_common.h.

static int32_t ocs_sport_lock_try ( ocs_sport_t *  sport)
inlinestatic

Definition at line 126 of file ocs_common.h.

static void ocs_sport_unlock ( ocs_sport_t *  sport)
inlinestatic

Definition at line 136 of file ocs_common.h.