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

Go to the source code of this file.

Detailed Description

HAL workarounds

This file contains the declarations that allow run-time selection of workarounds based on the asic type and revision, and range of fw revision.

Definition in file ocs_hal_workaround.h.

Data Structures

struct  ocs_hal_workaround_t
 

Macros

#define HAL_FWREV(a, b, c, d)   (((a) << 28) | ((b) << 24) | ((c) << 8) | (d))
 pack fw revision values into a single uint32_t More...
 
#define HAL_FWREV_1(x)   HAL_FWREV(x)
 
#define OCS_FW_VER_STR2(a, b, c, d)   #a "." #b "." #c "." #d
 
#define OCS_FW_VER_STR(x)   OCS_FW_VER_STR2(x)
 

Functions

void ocs_hal_workaround_setup (struct ocs_hal_s *hal)
 Setup HAL runtime workarounds. More...
 

Macro Details

#define HAL_FWREV (   a,
  b,
  c,
  d 
)    (((a) << 28) | ((b) << 24) | ((c) << 8) | (d))

pack fw revision values into a single uint32_t

Definition at line 49 of file ocs_hal_workaround.h.

#define HAL_FWREV_1 (   x)    HAL_FWREV(x)

Definition at line 50 of file ocs_hal_workaround.h.

#define OCS_FW_VER_STR (   x)    OCS_FW_VER_STR2(x)

Definition at line 53 of file ocs_hal_workaround.h.

#define OCS_FW_VER_STR2 (   a,
  b,
  c,
  d 
)    #a "." #b "." #c "." #d

Definition at line 52 of file ocs_hal_workaround.h.

Function Details

void ocs_hal_workaround_setup ( struct ocs_hal_s *  hal)

Setup HAL runtime workarounds.

The function is called at the end of ocs_hal_setup() to setup any runtime workarounds based on the HAL/SLI setup.

Parameters
halPointer to HAL structure
Returns
none

Definition at line 173 of file ocs_hal_workaround.c.