Emulex Logo
OneCoreā„¢ Storage SDK Release 11.2
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ocs_drv_fc.h File Reference
#include "ocs_os.h"
#include "ocs_debug.h"
#include "ocs_fc_config.h"
#include "ocs_common.h"
#include "ocs_hal.h"
#include "ocs_io.h"
#include "ocs_pm.h"
#include "ocs_xport.h"
#include "ocs_stats.h"
#include "ocs_gendump.h"
#include "ocs_domain.h"
#include "ocs_sport.h"
#include "ocs_node.h"
#include "ocs_unsol.h"
#include "ocs_scsi.h"
#include "ocs_ioctl.h"
#include "ocs_elxu.h"

Go to the source code of this file.

Detailed Description

OCS linux driver common include file

Definition in file ocs_drv_fc.h.

Data Structures

struct  ocs_s
 A structure used to contain all data related to an adapter for this driver. More...
 

Macros

#define OCS_INCLUDE_FC
 
#define ocs_is_fc_initiator_enabled()   (ocs->enable_ini)
 
#define ocs_is_fc_target_enabled()   (ocs->enable_tgt)
 

Functions

static void ocs_device_lock_init (ocs_t *ocs)
 
static void ocs_device_lock_free (ocs_t *ocs)
 
static int32_t ocs_device_lock_try (ocs_t *ocs)
 
static int32_t ocs_device_lock_try_timeout (ocs_t *ocs, uint32_t timeout_ms, uint8_t retries)
 
static void ocs_device_lock (ocs_t *ocs)
 
static void ocs_device_unlock (ocs_t *ocs)
 
ocs_t * ocs_get_instance (uint32_t index)
 Returns a pointer to the ocs structure given the instance index. More...
 
int32_t ocs_get_bus_dev_func (ocs_t *ocs, uint8_t *bus, uint8_t *dev, uint8_t *func)
 
static ocs_io_t * ocs_io_alloc (ocs_t *ocs)
 
static void ocs_io_free (ocs_t *ocs, ocs_io_t *io)
 
static bool ocs_bbcr_enabled (ocs_t *ocs)
 
void ocs_stop_event_processing (ocs_os_t *ocs_os)
 
int32_t ocs_start_event_processing (ocs_os_t *ocs_os)
 

Macro Details

#define OCS_INCLUDE_FC

Definition at line 42 of file ocs_drv_fc.h.

#define ocs_is_fc_initiator_enabled ( )    (ocs->enable_ini)

Definition at line 183 of file ocs_drv_fc.h.

#define ocs_is_fc_target_enabled ( )    (ocs->enable_tgt)

Definition at line 184 of file ocs_drv_fc.h.

Function Details

static bool ocs_bbcr_enabled ( ocs_t *  ocs)
inlinestatic

Definition at line 244 of file ocs_drv_fc.h.

static void ocs_device_lock ( ocs_t *  ocs)
inlinestatic

Definition at line 218 of file ocs_drv_fc.h.

static void ocs_device_lock_free ( ocs_t *  ocs)
inlinestatic

Definition at line 192 of file ocs_drv_fc.h.

static void ocs_device_lock_init ( ocs_t *  ocs)
inlinestatic

Definition at line 187 of file ocs_drv_fc.h.

static int32_t ocs_device_lock_try ( ocs_t *  ocs)
inlinestatic

Definition at line 197 of file ocs_drv_fc.h.

static int32_t ocs_device_lock_try_timeout ( ocs_t *  ocs,
uint32_t  timeout_ms,
uint8_t  retries 
)
inlinestatic

Definition at line 202 of file ocs_drv_fc.h.

static void ocs_device_unlock ( ocs_t *  ocs)
inlinestatic

Definition at line 223 of file ocs_drv_fc.h.

int32_t ocs_get_bus_dev_func ( ocs_t *  ocs,
uint8_t *  bus,
uint8_t *  dev,
uint8_t *  func 
)
ocs_t* ocs_get_instance ( uint32_t  index)

Returns a pointer to the ocs structure given the instance index.

A pointer to an ocs structure is returned given an instance index.
Parameters
indexIndex to ocs_devices array.
Returns
Returns ocs pointer.

Definition at line 141 of file ocs_driver.c.

static ocs_io_t* ocs_io_alloc ( ocs_t *  ocs)
inlinestatic

Definition at line 232 of file ocs_drv_fc.h.

static void ocs_io_free ( ocs_t *  ocs,
ocs_io_t *  io 
)
inlinestatic

Definition at line 238 of file ocs_drv_fc.h.

int32_t ocs_start_event_processing ( ocs_os_t *  ocs_os)
void ocs_stop_event_processing ( ocs_os_t *  ocs_os)