Emulex Logo
OneCoreā„¢ Storage SDK Release 11.2
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ocs_elxu.c File Reference
#include "ocs.h"
#include "ocs_ioctl.h"

Go to the source code of this file.

Detailed Description

Elxutility interface code

Definition in file ocs_elxu.c.

Data Structures

struct  mbox_sli_config_t
 Defines the structure of a FC SLI_CONFIG mailbox command. More...
 
struct  mbox_common_t
 Defines the common mailbox header structure. More...
 

Functions

static int32_t __ocs_ioctl_mbox_cb (ocs_hal_t *hal, int32_t status, ocs_command_ctx_t *ctx)
 
static void ocs_elxu_convert_cmd_to_iscsi (ocs_ioctl_elxu_mbox_t *mcmd, ocs_command_ctx_t *ctx, ocs_dma_t *dma)
 Converts a FC SLI_CONFIG command to the iSCSI format. More...
 
static void ocs_elxu_convert_status_to_fc (ocs_ioctl_elxu_mbox_t *mcmd, ocs_command_ctx_t *ctx, int32_t status)
 Converts an iSCSI result back into the FC SLI_CONFIG format. More...
 
int32_t ocs_elxu (ocs_t *ocs, ocs_ioctl_elxu_mbox_t *mcmd)
 

Function Details

static int32_t __ocs_ioctl_mbox_cb ( ocs_hal_t *  hal,
int32_t  status,
ocs_command_ctx_t *  ctx 
)
static

Definition at line 310 of file ocs_elxu.c.

int32_t ocs_elxu ( ocs_t *  ocs,
ocs_ioctl_elxu_mbox_t *  mcmd 
)

Definition at line 147 of file ocs_elxu.c.

static void ocs_elxu_convert_cmd_to_iscsi ( ocs_ioctl_elxu_mbox_t *  mcmd,
ocs_command_ctx_t *  ctx,
ocs_dma_t *  dma 
)
static

Converts a FC SLI_CONFIG command to the iSCSI format.

Parameters
mcmdthe IOCTL comand received
ctxthe iSCSI SLI command context
dmafor non-embedded mailbox commands, this field provides the DMA memory for the command.

Definition at line 98 of file ocs_elxu.c.

static void ocs_elxu_convert_status_to_fc ( ocs_ioctl_elxu_mbox_t *  mcmd,
ocs_command_ctx_t *  ctx,
int32_t  status 
)
static

Converts an iSCSI result back into the FC SLI_CONFIG format.

Parameters
mcmdthe IOCTL comand received
ctxthe iSCSI SLI command context
statusthe command status

Definition at line 132 of file ocs_elxu.c.