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

Go to the source code of this file.

Data Structures

struct  ocs_fw_dump
 

Macros

#define OCS_MAX_HBA_PORTS   4
 
#define OCS_FW_DUMP_STATUS_SUCCESS   0
 
#define OCS_FW_DUMP_STATUS_IN_PROGRESS   1
 
#define OCS_FW_DUMP_STATUS_SKIP   2
 
#define OCS_FW_DUMP_STATUS_FAILED   -1
 
#define FW_DUMP_LEVEL_NONE   0
 
#define FW_CHIP_LEVEL_DUMP   1
 
#define FW_FUNC_DESC_DUMP   2
 
#define FW_DUMP_STATE_NONE   0
 
#define FW_CHIP_DUMP_STATE_VALID   1
 
#define FW_FUNC_DUMP_STATE_VALID   2
 
#define FW_DUMP_TYPE_DUMPTOHOST   1
 
#define FW_DUMP_TYPE_FLASH   2
 
#define FW_DUMP_READY_STATUS_NOT_READY   0
 
#define FW_DUMP_READY_STATUS_DD_PRESENT   1
 
#define FW_DUMP_READY_STATUS_FDB_PRESENT   2
 
#define FW_DUMP_READY_STATUS_SKIP_DUMP   3
 
#define FW_DUMP_READY_STATUS_FAILED   -1
 

Functions

int ocs_gen_dump (ocs_t *ocs)
 
void ocs_fw_dump_init (ocs_t *ocs, int32_t fw_dump_type)
 Initialize fw dump context. More...
 
void ocs_fw_dump_state_set (ocs_t *ocs, uint32_t state)
 Set fW dump state. More...
 
int32_t ocs_fw_dump_state_check (ocs_t *ocs, uint32_t state)
 Check the fw dump state. More...
 
int32_t ocs_adapter_reset (ocs_t *ocs)
 
int32_t ocs_port_reset (ocs_t *ocs)
 
int32_t ocs_fw_reset (ocs_t *ocs)
 
int32_t ocs_trigger_dump (ocs_t *ocs, uint8_t dump_level)
 

Macro Details

#define FW_CHIP_DUMP_STATE_VALID   1

Definition at line 60 of file ocs_gendump.h.

#define FW_CHIP_LEVEL_DUMP   1

Definition at line 55 of file ocs_gendump.h.

#define FW_DUMP_LEVEL_NONE   0

Definition at line 54 of file ocs_gendump.h.

#define FW_DUMP_READY_STATUS_DD_PRESENT   1

Definition at line 69 of file ocs_gendump.h.

#define FW_DUMP_READY_STATUS_FAILED   -1

Definition at line 72 of file ocs_gendump.h.

#define FW_DUMP_READY_STATUS_FDB_PRESENT   2

Definition at line 70 of file ocs_gendump.h.

#define FW_DUMP_READY_STATUS_NOT_READY   0

Definition at line 68 of file ocs_gendump.h.

#define FW_DUMP_READY_STATUS_SKIP_DUMP   3

Definition at line 71 of file ocs_gendump.h.

#define FW_DUMP_STATE_NONE   0

Definition at line 59 of file ocs_gendump.h.

#define FW_DUMP_TYPE_DUMPTOHOST   1

Definition at line 64 of file ocs_gendump.h.

#define FW_DUMP_TYPE_FLASH   2

Definition at line 65 of file ocs_gendump.h.

#define FW_FUNC_DESC_DUMP   2

Definition at line 56 of file ocs_gendump.h.

#define FW_FUNC_DUMP_STATE_VALID   2

Definition at line 61 of file ocs_gendump.h.

#define OCS_FW_DUMP_STATUS_FAILED   -1

Definition at line 51 of file ocs_gendump.h.

#define OCS_FW_DUMP_STATUS_IN_PROGRESS   1

Definition at line 49 of file ocs_gendump.h.

#define OCS_FW_DUMP_STATUS_SKIP   2

Definition at line 50 of file ocs_gendump.h.

#define OCS_FW_DUMP_STATUS_SUCCESS   0

Definition at line 48 of file ocs_gendump.h.

#define OCS_MAX_HBA_PORTS   4

Definition at line 45 of file ocs_gendump.h.

Function Details

int32_t ocs_adapter_reset ( ocs_t *  ocs)

Definition at line 63 of file ocs_gendump.c.

void ocs_fw_dump_init ( ocs_t *  ocs,
int32_t  fw_dump_type 
)

Initialize fw dump context.

Definition at line 762 of file ocs_recovery.c.

int32_t ocs_fw_dump_state_check ( ocs_t *  ocs,
uint32_t  state 
)

Check the fw dump state.

Returns
TRUE if the state is set, FALSE otherwise

Definition at line 277 of file ocs_gendump.c.

void ocs_fw_dump_state_set ( ocs_t *  ocs,
uint32_t  state 
)

Set fW dump state.

Returns
void

Definition at line 231 of file ocs_recovery.c.

int32_t ocs_fw_reset ( ocs_t *  ocs)

Definition at line 86 of file ocs_gendump.c.

int ocs_gen_dump ( ocs_t *  ocs)

Definition at line 246 of file ocs_gendump.c.

int32_t ocs_port_reset ( ocs_t *  ocs)

Definition at line 39 of file ocs_gendump.c.

int32_t ocs_trigger_dump ( ocs_t *  ocs,
uint8_t  dump_level 
)

Definition at line 203 of file ocs_gendump.c.