25 #ifndef __M2MB_XFP_H__    26 #define __M2MB_XFP_H__    54 #define XFP_OPERATION_IN_PROGRESS                               0    55 #define XFP_OPERATION_BOOTCHARS_DETECTED                1    56 #define XFP_OPERATION_DONE                                              2    57 #define XFP_OPERATION_FAILED                                    3        
INT32 m2mb_xfp_open(xfp_io_write io_write_cb, M2MB_FWUP_USER_CB_T user_cb, void *user_cb_ctx)
m2mb_xfp_init is called to initialize XFP module. 
M2MB_OS_RESULT_E(* xfp_io_write)(UINT8 *p, UINT32 length)
IO write callback for XFP. 
enum M2MB_OS_RESULT M2MB_OS_RESULT_E
VOID(* fwup_xfp_user_cb)(UINT32 response_code)
This function prototype is Firmware Upgrade callback for XFP user. 
INT32 m2mb_xfp_io_read(uint8_t *buff, uint32_t size)
m2mb_xfp_io_read reads the XFP data sent by the XFP tool. 
VOID(* M2MB_FWUP_USER_CB_T)(void *user_ctx, M2MB_FWUP_STATUS_CODE_T resp_code)
Firmware Upgrade user call back prototype.