Emulex Logo
OneCoreā„¢ Storage SDK Release 11.2
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
elxu_dwnld.h File Reference
#include <sys/stat.h>
#include "elxu_ufi.h"

Go to the source code of this file.

Data Structures

struct  dwnld_file_desc_t
 

Macros

#define SWAP_2BYTES(x)   ((((x) & 0xFF00 ) >> 8) | (((x) & 0x00FF ) << 8))
 
#define SWAP_4BYTES(x)   (SWAP_2BYTES(((x) & 0xFFFF0000) >> 16) | (SWAP_2BYTES((x) & 0xFFFF) << 16))
 
#define HBA_FILE_LANCER   1
 
#define HBA_FILE_SKYHAWK   2
 
#define HBA_FILE_PRISM   3
 
#define FILE_TYPE_UFI   1
 
#define FILE_TYPE_GRP   2
 

Enumerations

enum  { FW_FILE_DOWNLOAD = 1, FW_FILE_DISPLAY_INFO, FW_FILE_VERIFY, FW_FILE_UPLOAD_DUMP }
 
enum  fFormat_t { UNKNOWN, SKYHAWK_UFI, LANCER, PRISM }
 

Functions

void display_ufi_flash_directory (dwnld_file_desc_t *fdesc)
 Displays content of UFI flash directory header. More...
 
void init_image_table (dwnld_file_desc_t *fdesc)
 
int file_handler (elxu_device_t *device_p, char const *file_name_p, int download_flag)
 File manipulating functionality. More...
 
int hba_dump_upload (elxu_device_t *device_p, char const *file_name_p)
 

Macro Details

#define FILE_TYPE_GRP   2

Definition at line 71 of file elxu_dwnld.h.

#define FILE_TYPE_UFI   1

Definition at line 70 of file elxu_dwnld.h.

#define HBA_FILE_LANCER   1

Definition at line 65 of file elxu_dwnld.h.

#define HBA_FILE_PRISM   3

Definition at line 67 of file elxu_dwnld.h.

#define HBA_FILE_SKYHAWK   2

Definition at line 66 of file elxu_dwnld.h.

#define SWAP_2BYTES (   x)    ((((x) & 0xFF00 ) >> 8) | (((x) & 0x00FF ) << 8))

Definition at line 40 of file elxu_dwnld.h.

#define SWAP_4BYTES (   x)    (SWAP_2BYTES(((x) & 0xFFFF0000) >> 16) | (SWAP_2BYTES((x) & 0xFFFF) << 16))

Definition at line 41 of file elxu_dwnld.h.

Enumeration Details

anonymous enum
Enumerator
FW_FILE_DOWNLOAD 
FW_FILE_DISPLAY_INFO 
FW_FILE_VERIFY 
FW_FILE_UPLOAD_DUMP 

Definition at line 44 of file elxu_dwnld.h.

enum fFormat_t
Enumerator
UNKNOWN 
SKYHAWK_UFI 
LANCER 
PRISM 

Definition at line 51 of file elxu_dwnld.h.

Function Details

void display_ufi_flash_directory ( dwnld_file_desc_t *  fdesc)

Displays content of UFI flash directory header.

This function is in part used for debugging and determining what sections exist in a given UFI file

Parameters
flash_dirUFI flash directory structure pointer.

Definition at line 309 of file elxu_dwnld.c.

int file_handler ( elxu_device_t *  device_p,
char const *  file_name_p,
int  action 
)

File manipulating functionality.

This functionality is called by a CLI to request a particular file manipulation operation.

Parameters
device_pThe pointer to the HBA descriptor structure.
memFdsc_pThe pointer to the memory file descriptor structure.
actionThe requested action.

Definition at line 966 of file elxu_dwnld.c.

int hba_dump_upload ( elxu_device_t *  device_p,
char const *  file_name_p 
)
void init_image_table ( dwnld_file_desc_t *  fdesc)