Go to the source code of this file.
Classes | |
struct | BootloaderSt |
struct | byn_head_multi |
struct | byn_head_sign |
struct | byn_head_v4 |
struct | byn_head_v5 |
struct | byn_head_v6 |
struct | byn_zone |
struct | FIRMWARE_CONTEXT |
struct | flashzone |
struct | newmemzones |
struct | romzone |
Typedefs | |
typedef yInterfaceSt | ProgIface |
Enumerations | |
enum | FLASH_DEVICE_STATE { FLASH_FIND_DEV = 0, FLASH_CONNECT, FLASH_GET_INFO, FLASH_VALIDATE_BYN, FLASH_ERASE, FLASH_WAIT_ERASE, FLASH_DOFLASH, FLASH_GET_INFO_BFOR_REBOOT, FLASH_REBOOT, FLASH_REBOOT_VALIDATE, FLASH_AUTOFLASH, FLASH_SUCCEEDED, FLASH_DISCONNECT, FLASH_DONE } |
enum | FLASH_ZONE_STATE { FLASH_ZONE_START, FLASH_ZONE_PROG, FLASH_ZONE_READ, FLASH_ZONE_RECV_OK } |
enum | YPROG_RESULT { YPROG_DONE = 0u, YPROG_WAITING } |
Functions | |
int | BlockingRead (BootloaderSt *dev, USB_Packet *pkt, int maxwait, char *errmsg) |
int | IsValidBynFile (const byn_head_multi *head, u32 size, const char *serial, u16 flags, char *errmsg) |
int | IsValidBynHead (const byn_head_multi *head, u32 size, u16 flags, char *errmsg) |
const char * | prog_GetCPUName (BootloaderSt *dev) |
int | SendDataPacket (BootloaderSt *dev, int program, u32 address, u8 *data, int nbinstr, char *errmsg) |
YPROG_RESULT | uFlashDevice (void) |
int | ValidateBynCompat (const byn_head_multi *head, u32 size, const char *serial, u16 flags, BootloaderSt *dev, char *errmsg) |
YRETCODE | yapiCheckFirmware_internal (const char *serial, const char *rev, u32 flags, const char *path, char *buffer, int buffersize, int *fullsize, char *errmsg) |
YRETCODE | yapiGetBootloadersDevs (char *serials, unsigned int maxNbSerial, unsigned int *totalBootladers, char *errmsg) |
YRETCODE | yapiUpdateFirmware_internal (const char *serial, const char *firmwarePath, const char *settings, int force, int startUpdate, char *msg) |
int | yNetHubGetBootloaders (const char *hubserial, char *buffer, char *errmsg) |
int | ypBootloaderShutdown (BootloaderSt *dev) |
int | ypGetBootloaderReply (BootloaderSt *dev, USB_Packet *pkt, char *errmsg) |
int | ypIsSendBootloaderBusy (BootloaderSt *dev) |
void | yProgFree (void) |
void | yProgInit (void) |
int | ypSendBootloaderCmd (BootloaderSt *dev, const USB_Packet *pkt, char *errmsg) |
Variables | |
FIRMWARE_CONTEXT | fctx |
BootloaderSt | firm_dev |
USB_Packet | firm_pkt |
#define BYN_HEAD_SIZE_V4 (sizeof(byn_head_sign)+sizeof(byn_head_v4)) |
#define BYN_HEAD_SIZE_V5 (sizeof(byn_head_sign)+sizeof(byn_head_v5)) |
#define BYN_HEAD_SIZE_V6 (sizeof(byn_head_sign)+sizeof(byn_head_v6)) |
#define BYN_MD5_OFS_V6 (sizeof(byn_head_sign)+16) |
#define BYN_SIGN ((u32) ('B'| ((u16)'Y'<<8) | ((u32)'N'<<16) )) |
#define FLASH_ERRMSG_LEN YOCTO_ERRMSG_LEN |
#define uGetFirmware | ( | ofs, | |
dst, | |||
size | |||
) | yGetFirmware(ofs, dst, size) |
#define uGetFirmwareBynHead | ( | head_ptr | ) | {uGetFirmware(0, (u8*)(head_ptr), sizeof(byn_head_multi));decode_byn_head_multi(head_ptr);} |
#define uGetFirmwareBynZone | ( | offset, | |
zone_ptr | |||
) | {uGetFirmware(offset,(u8*)(zone_ptr),sizeof(byn_zone)); decode_byn_zone(zone_ptr);} |
typedef yInterfaceSt ProgIface |
enum FLASH_DEVICE_STATE |
enum FLASH_ZONE_STATE |
enum YPROG_RESULT |
int BlockingRead | ( | BootloaderSt * | dev, |
USB_Packet * | pkt, | ||
int | maxwait, | ||
char * | errmsg | ||
) |
int IsValidBynFile | ( | const byn_head_multi * | head, |
u32 | size, | ||
const char * | serial, | ||
u16 | flags, | ||
char * | errmsg | ||
) |
int IsValidBynHead | ( | const byn_head_multi * | head, |
u32 | size, | ||
u16 | flags, | ||
char * | errmsg | ||
) |
const char* prog_GetCPUName | ( | BootloaderSt * | dev | ) |
int SendDataPacket | ( | BootloaderSt * | dev, |
int | program, | ||
u32 | address, | ||
u8 * | data, | ||
int | nbinstr, | ||
char * | errmsg | ||
) |
YPROG_RESULT uFlashDevice | ( | void | ) |
int ValidateBynCompat | ( | const byn_head_multi * | head, |
u32 | size, | ||
const char * | serial, | ||
u16 | flags, | ||
BootloaderSt * | dev, | ||
char * | errmsg | ||
) |
YRETCODE yapiCheckFirmware_internal | ( | const char * | serial, |
const char * | rev, | ||
u32 | flags, | ||
const char * | path, | ||
char * | buffer, | ||
int | buffersize, | ||
int * | fullsize, | ||
char * | errmsg | ||
) |
YRETCODE yapiGetBootloadersDevs | ( | char * | serials, |
unsigned int | maxNbSerial, | ||
unsigned int * | totalBootladers, | ||
char * | errmsg | ||
) |
YRETCODE yapiUpdateFirmware_internal | ( | const char * | serial, |
const char * | firmwarePath, | ||
const char * | settings, | ||
int | force, | ||
int | startUpdate, | ||
char * | msg | ||
) |
int yNetHubGetBootloaders | ( | const char * | hubserial, |
char * | buffer, | ||
char * | errmsg | ||
) |
int ypBootloaderShutdown | ( | BootloaderSt * | dev | ) |
int ypGetBootloaderReply | ( | BootloaderSt * | dev, |
USB_Packet * | pkt, | ||
char * | errmsg | ||
) |
int ypIsSendBootloaderBusy | ( | BootloaderSt * | dev | ) |
int ypSendBootloaderCmd | ( | BootloaderSt * | dev, |
const USB_Packet * | pkt, | ||
char * | errmsg | ||
) |
FIRMWARE_CONTEXT fctx |
BootloaderSt firm_dev |
USB_Packet firm_pkt |