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

Go to the source code of this file.

Macros

#define DEFAULT_OUTPUT_FILE_NAME   "fat.data"
 

Enumerations

enum  data_type_req_t {
  NO_SPECIFIC_REQ, FAT_DATA, EFD_DATA, ECD_DATA,
  LANCER_DUMP
}
 

Functions

int ext_fat_capabilities_upld (elxu_device_t *device_p)
 Displays EXT FAT capabilities. More...
 
int hba_data_upload (elxu_device_t *device_p, char const *fname_p, data_type_req_t req)
 FAT data upload functionality. More...
 
int hba_data_object_upload (elxu_device_t *device, char const *objname_p, char const *fname_p)
 
int elxu_core_dump (elxu_device_t *, char *, int)
 Core Dump functionality. More...
 
int lancer_gen_dump (elxu_device_t *host_p, int)
 Trigger dump generation on Lancer. More...
 
int lancer_dump_to_host (elxu_device_t *host_p, const char *fname, int)
 Trigger dump-to-host on Lancer. More...
 
void elxu_driver_dump (elxu_device_t *device, int bufsize, ocs_ioctl_ddump_arg_t *arg)
 
int elxu_get_fw_diagnostic_log (elxu_device_t *device_p, char const *fname)
 gather firmware diagnostic logs More...
 
void os_cfg_read8 (void *ctx, uint32_t offset, uint32_t *pdata)
 
void os_cfg_read16 (void *ctx, uint32_t offset, uint32_t *pdata)
 
void os_cfg_read32 (void *ctx, uint32_t offset, uint32_t *pdata)
 
void os_cfg_write8 (void *ctx, uint32_t offset, uint32_t pdata)
 
void os_cfg_write16 (void *ctx, uint32_t offset, uint32_t pdata)
 
void os_cfg_write32 (void *ctx, uint32_t offset, uint32_t pdata)
 
void os_bar_read8 (void *ctx, uint32_t bar, uint32_t offset, uint32_t *pdata)
 
void os_bar_read16 (void *ctx, uint32_t bar, uint32_t offset, uint32_t *pdata)
 
void os_bar_read32 (void *ctx, uint32_t bar, uint32_t offset, uint32_t *pdata)
 
void os_bar_write8 (void *ctx, uint32_t bar, uint32_t offset, uint32_t pdata)
 
void os_bar_write16 (void *ctx, uint32_t bar, uint32_t offset, uint32_t pdata)
 
void os_bar_write32 (void *ctx, uint32_t bar, uint32_t offset, uint32_t pdata)
 

Macro Details

#define DEFAULT_OUTPUT_FILE_NAME   "fat.data"

Definition at line 36 of file elxu_dump.h.

Enumeration Details

Enumerator
NO_SPECIFIC_REQ 
FAT_DATA 
EFD_DATA 
ECD_DATA 
LANCER_DUMP 

Definition at line 40 of file elxu_dump.h.

Function Details

int elxu_core_dump ( elxu_device_t *  device_p,
char *  fname_p,
int  test_dump 
)

Core Dump functionality.

Handle the request to retrieve the core dump from Skyhawk.

Parameters
device_pThe pointer to the HBA descriptor structure.
fname_pfile name of file to to which dump is written

Definition at line 855 of file elxu_dump.c.

void elxu_driver_dump ( elxu_device_t *  device,
int  bufsize,
ocs_ioctl_ddump_arg_t *  arg 
)

Definition at line 163 of file elxu_dump.c.

int elxu_get_fw_diagnostic_log ( elxu_device_t *  device_p,
char const *  fname 
)

gather firmware diagnostic logs

The functionality to extract firmware diagnostic logs to a file

Parameters
device_pPointer to HBA descriptor structure.
fnameOutput file name.

Definition at line 765 of file elxu_dump.c.

int ext_fat_capabilities_upld ( elxu_device_t *  device_p)

Displays EXT FAT capabilities.

Parameters
device_pThe pointer to the HBA descriptor structure.

Definition at line 309 of file elxu_dump.c.

int hba_data_object_upload ( elxu_device_t *  device,
char const *  objname_p,
char const *  fname_p 
)

Definition at line 564 of file elxu_dump.c.

int hba_data_upload ( elxu_device_t *  device_p,
char const *  fname_p,
data_type_req_t  req 
)

FAT data upload functionality.

The functionality which is handling the request to retrieve the FAT data from Skyhawk.

Parameters
device_pThe pointer to the HBA descriptor structure.
fname_pThe pointer to the file name string.
reqThe request data type.

Definition at line 822 of file elxu_dump.c.

int lancer_dump_to_host ( elxu_device_t *  device_p,
const char *  fname,
int  fdb_dump 
)

Trigger dump-to-host on Lancer.

This function uses Lancer's dump-to-host capability to cause a dump to be generated and to transfer that dump into host memory. The transfered dump is stored in a file.

Parameters
device_pThe pointer to the HBA descriptor structure.

Definition at line 660 of file elxu_dump.c.

int lancer_gen_dump ( elxu_device_t *  device_p,
int  fdb_dump 
)

Trigger dump generation on Lancer.

The functionality to generate a dump on Lancer.

Parameters
device_pThe pointer to the HBA descriptor structure.

Definition at line 630 of file elxu_dump.c.

void os_bar_read16 ( void *  ctx,
uint32_t  bar,
uint32_t  offset,
uint32_t *  pdata 
)

Definition at line 1203 of file elxu_dump.c.

void os_bar_read32 ( void *  ctx,
uint32_t  bar,
uint32_t  offset,
uint32_t *  pdata 
)

Definition at line 1237 of file elxu_dump.c.

void os_bar_read8 ( void *  ctx,
uint32_t  bar,
uint32_t  offset,
uint32_t *  pdata 
)

Definition at line 1169 of file elxu_dump.c.

void os_bar_write16 ( void *  ctx,
uint32_t  bar,
uint32_t  offset,
uint32_t  pdata 
)

Definition at line 1302 of file elxu_dump.c.

void os_bar_write32 ( void *  ctx,
uint32_t  bar,
uint32_t  offset,
uint32_t  pdata 
)

Definition at line 1333 of file elxu_dump.c.

void os_bar_write8 ( void *  ctx,
uint32_t  bar,
uint32_t  offset,
uint32_t  pdata 
)

Definition at line 1271 of file elxu_dump.c.

void os_cfg_read16 ( void *  ctx,
uint32_t  offset,
uint32_t *  pdata 
)

Definition at line 1019 of file elxu_dump.c.

void os_cfg_read32 ( void *  ctx,
uint32_t  offset,
uint32_t *  pdata 
)

Definition at line 1050 of file elxu_dump.c.

void os_cfg_read8 ( void *  ctx,
uint32_t  offset,
uint32_t *  pdata 
)

Definition at line 989 of file elxu_dump.c.

void os_cfg_write16 ( void *  ctx,
uint32_t  offset,
uint32_t  pdata 
)

Definition at line 1112 of file elxu_dump.c.

void os_cfg_write32 ( void *  ctx,
uint32_t  offset,
uint32_t  pdata 
)

Definition at line 1140 of file elxu_dump.c.

void os_cfg_write8 ( void *  ctx,
uint32_t  offset,
uint32_t  pdata 
)

Definition at line 1083 of file elxu_dump.c.